> ## Documentation Index
> Fetch the complete documentation index at: https://x-preview-mintlify-562c1c4b.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Trends by WOEID

> The Trends by WOEID endpoint returns trending topics for a specific geographic location. Reference for the X API v2 standard tier covering trends by woeid.

export const Button = ({href, children}) => {
  return <div className="not-prose">
    <a href={href}>
      <button className="x-btn">
        <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 Trends by WOEID endpoint returns trending topics for a specific geographic location, identified by a Yahoo! Where On Earth ID (WOEID).

## Overview

<CardGroup cols={2}>
  <Card title="Location-specific" icon="location-dot">
    Trends for any supported location
  </Card>

  <Card title="Global coverage" icon="globe">
    Countries, cities, and regions
  </Card>

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

***

## Endpoint

| Method | Endpoint                                                      | Description            |
| :----- | :------------------------------------------------------------ | :--------------------- |
| GET    | [`/2/trends/by/woeid/:id`](/x-api/trends/get-trends-by-woeid) | Get trends for a WOEID |

***

## Common WOEIDs

| Location       | WOEID    |
| :------------- | :------- |
| Worldwide      | 1        |
| United States  | 23424977 |
| United Kingdom | 23424975 |
| Japan          | 23424856 |
| New York       | 2459115  |
| Los Angeles    | 2442047  |
| London         | 44418    |
| Tokyo          | 1118370  |

***

## Example request

```bash theme={null}
curl "https://api.x.com/2/trends/by/woeid/1" \
  -H "Authorization: Bearer $BEARER_TOKEN"
```

## Example response

```json title="Example response" lines wrap icon="https://mintcdn.com/x-preview-mintlify-562c1c4b/6CXpC1KK5W02KjTq/icons/xds/icon-brackets.svg?fit=max&auto=format&n=6CXpC1KK5W02KjTq&q=85&s=a2790cf5d0d9f8ea76c8563c2e54e781" theme={null}
{
  "data": [
    {
      "trend_name": "#AI"
    },
    {
      "trend_name": "Breaking News"
    }
  ]
}
```

***

## 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
  * Your App's [Bearer Token](/resources/fundamentals/authentication)
</Note>

<CardGroup cols={2}>
  <Card title="Personalized trends" icon="https://mintcdn.com/x-preview-mintlify-562c1c4b/dcX8wK7vQMsA3RIR/icons/xds/icon-person.svg?fit=max&auto=format&n=dcX8wK7vQMsA3RIR&q=85&s=83befc9d1b541cfffd8f2a86693acea3" href="/x-api/trends/personalized-trends/introduction" width="24" height="24" data-path="icons/xds/icon-person.svg">
    Get trends for the authenticated user
  </Card>

  <Card title="API Reference" icon="https://mintcdn.com/x-preview-mintlify-562c1c4b/Yc8f_tvZhH1u1Fpy/icons/xds/icon-code.svg?fit=max&auto=format&n=Yc8f_tvZhH1u1Fpy&q=85&s=0a5156c35d712709b15780cd28b0616d" href="/x-api/trends/trends-by-woeid" width="24" height="24" data-path="icons/xds/icon-code.svg">
    Full endpoint documentation
  </Card>
</CardGroup>
