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

Overview

Personalized

Trends tailored to the user

Location-aware

Based on user’s location

Real-time

Current trending topics

Endpoint

MethodEndpointDescription
GET/2/users/personalized_trendsGet personalized trends

Example request

curl "https://api.x.com/2/users/personalized_trends" \
  -H "Authorization: Bearer $USER_ACCESS_TOKEN"

Example response

{
  "data": [
    {
      "trend_name": "#AI",
      "tweet_count": 125000
    },
    {
      "trend_name": "Machine Learning",
      "tweet_count": 85000
    }
  ]
}

Getting started

Prerequisites