> ## Documentation Index
> Fetch the complete documentation index at: https://docs.x.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Personalized Trends

> The X API v2 Personalized Trends endpoint returns trending topics tailored to the authenticated user based on their location, interests, and account activity.

export const Button = ({href, children}) => {
  return <div className="not-prose group">
    <a href={href}>
      <button className="flex items-center space-x-2.5 py-1 px-4 bg-primary-dark dark:bg-white text-white dark:text-gray-950 rounded-full group-hover:opacity-[0.9] font-medium">
        <span>
          {children}
        </span>
        <svg width="3" height="24" viewBox="0 -9 3 24" class="h-6 rotate-0 overflow-visible"><path d="M0 0L3 3L0 6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg>
      </button>
    </a>
  </div>;
};

The Personalized Trends endpoint returns trending topics tailored to the authenticated user, based on their location and interests.

## Overview

<CardGroup cols={2}>
  <Card title="Personalized" icon="user">
    Trends tailored to the user
  </Card>

  <Card title="Location-aware" icon="location-dot">
    Based on user's location
  </Card>

  <Card title="Real-time" icon="bolt">
    Current trending topics
  </Card>
</CardGroup>

***

## Endpoint

| Method | Endpoint                       | Description             |
| :----- | :----------------------------- | :---------------------- |
| GET    | `/2/users/personalized_trends` | Get personalized trends |

***

## Example request

```bash theme={null}
curl "https://api.x.com/2/users/personalized_trends" \
  -H "Authorization: Bearer $USER_ACCESS_TOKEN"
```

## Example response

```json theme={null}
{
  "data": [
    {
      "trend_name": "#AI",
      "tweet_count": 125000
    },
    {
      "trend_name": "Machine Learning",
      "tweet_count": 85000
    }
  ]
}
```

***

## Getting started

<Note>
  **Prerequisites**

  * An approved [developer account](https://developer.x.com/en/portal/petition/essential/basic-info)
  * A [Project and App](/resources/fundamentals/developer-apps) in the Developer Console
  * User Access Tokens via [OAuth 2.0 PKCE](/resources/fundamentals/authentication#oauth-2-0-authorization-code-flow-with-pkce-2)
  * Premium User Subscription
</Note>

<CardGroup cols={2}>
  <Card title="Trends by WOEID" icon="globe" href="/x-api/trends/trends-by-woeid/introduction">
    Get trends for a specific location
  </Card>

  <Card title="API Reference" icon="code" href="/x-api/trends/personalized-trends">
    Full endpoint documentation
  </Card>
</CardGroup>
