Skip to main content
The Trends by WOEID endpoint returns trending topics for a specific geographic location, identified by a Yahoo! Where On Earth ID (WOEID).

Overview

Location-specific

Trends for any supported location

Global coverage

Countries, cities, and regions

Real-time

Current trending topics

Endpoint

MethodEndpointDescription
GET/2/trends/by/woeid/:idGet trends for a WOEID

Common WOEIDs

LocationWOEID
Worldwide1
United States23424977
United Kingdom23424975
Japan23424856
New York2459115
Los Angeles2442047
London44418
Tokyo1118370

Example request

curl "https://api.x.com/2/trends/by/woeid/1" \
  -H "Authorization: Bearer $BEARER_TOKEN"

Example response

{
  "data": [
    {
      "trend_name": "#AI",
      "tweet_count": 250000
    },
    {
      "trend_name": "Breaking News",
      "tweet_count": 180000
    }
  ]
}

Getting started

Prerequisites