# How do I get X (Twitter) trends for a country?

Call OneFeedAPI's X (Twitter) trends with the country's two-letter code as region, and you get its top 30 trends with their rank. Ten countries are covered: US, GB, CA, AU, IN, JP, DE, FR, BR and MX; without region the list is worldwide. OneFeedAPI reads X (Twitter) with 21 endpoints, from $0.0003 a call; a failed call is not charged, and the free trial covers up to 333 calls.

## What a list has

Each trend has its `name` and `rank`, and nothing else: no count of posts, no heat, no ID. A list is a snapshot refreshed every five minutes, and `meta.fetched_at` says when it was taken.

To see what is behind a trend, search X posts with its name.

## Countries not on the list

Only these ten countries and worldwide are offered. Any other code is refused as an invalid parameter and not run.

## Why OneFeedAPI

- Steady: endpoints were available 100% of the last 30 days, on a public status page you can check.
- Fast: a paid call took 2.1 seconds at the median over the last 7 days (counted 2026-11-06).
- Fewer tokens: across 21 endpoints on X (Twitter), one recorded real response each, the platform's own JSON comes to 247k tokens and what an AI reads through OneFeedAPI's MCP server to 60k, 76% fewer; the JSON of a direct API call is 61% fewer too (counted 2026-11-06). Every platform answers in one shape: the author in `author`, counts in `metrics`, the next page in `page.next_cursor`, so another platform needs no new parser.
- See before you pay: every endpoint's page shows a recorded real response, field by field.
- Spending you control: a failed call is not charged; each key can have a limit, `X-Max-Price` caps one call, and the same `Idempotency-Key` within 24 hours is never charged twice.
- Ready for AI: a remote MCP server listed in the official MCP registry as `com.onefeedapi/mcp`, usable from Claude, Cursor and ChatGPT.
- Free trial of up to 333 calls, no card.

## Endpoints

- [X trends](https://onefeedapi.com/apis/x/trends/list/) ($0.0090 / a call): Get the top 30 of what is trending on X now, with rank: worldwide, or in one country.
- [X post search](https://onefeedapi.com/apis/x/posts/search/) ($0.0020 / a call): Find X posts by search terms, most popular or newest first; the terms may use X's own search operators, such as from:handle.

## How-to guides

- [How to get X (Twitter) trending topics by country](https://onefeedapi.com/guides/x-trends-by-country/)

## More about X (Twitter)

- [X (Twitter) API](https://onefeedapi.com/apis/x/)
- [Watching X (Twitter) accounts, and the official API costs too much: what now? (2026)](https://onefeedapi.com/answers/watch-x-accounts-official-api-too-expensive/)
- [X (Twitter) API for AI agents and LLMs: fewer tokens, called from Claude and Cursor (2026)](https://onefeedapi.com/answers/x-twitter-api-for-ai-agents/)
- [How to get only an X account's own posts, without retweets (2026)](https://onefeedapi.com/answers/x-own-posts-without-retweets/)
- [How to search X (Twitter) posts by keyword](https://onefeedapi.com/guides/x-search-posts-by-keyword/)
- [How to get replies to an X (Twitter) post](https://onefeedapi.com/guides/x-post-replies/)

---

Catalog revision dc959672dd18e2d0. [HTML version](https://onefeedapi.com/answers/how-to-get-x-trends-for-a-country/)
