> ## 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.

# 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 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 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 theme={null}
{
  "data": [
    {
      "trend_name": "#AI",
      "tweet_count": 250000
    },
    {
      "trend_name": "Breaking News",
      "tweet_count": 180000
    }
  ]
}
```

***

## 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="user" href="/x-api/trends/personalized-trends/introduction">
    Get trends for the authenticated user
  </Card>

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