X trends API
What is trending on X in a country right now, with its category.
| Item | Value |
|---|---|
| Endpoint | GET https://api.feedmcp.com/v1/x/trends/list |
| ID | x.trends.list |
| Price | $0.002 / call |
| Returns | A page of Trend objects |
| Auth | Authorization: Bearer $FEEDMCP_API_KEY |
No heat score;
labelis the category X shows, such as "Sports · Trending".
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
country |
string | no | Country name without spaces, such as UnitedStates, UnitedKingdom, Japan, India, Brazil or Germany; default UnitedStates |
Every endpoint also takes view=full to include the platform's raw data as raw, at the same price.
Returned fields
data.items is a list of Trend objects, with the same fields on every platform:
| Field | Type | Description |
|---|---|---|
rank |
number | Rank; 0 means pinned |
platform |
string | Platform |
keyword |
string | Term |
heat |
number | null | Heat (each platform counts its own way) |
label |
string | null | Label, such as pinned or hot |
url |
string | null | Search link on the platform |
When you are charged
$0.002 per call that returns the list. An empty list (the platform did not answer), platform errors and timeouts are free; just retry.
Each answer carries meta.billing: what this call cost and the balance left.
Request
cURL
curl "https://api.feedmcp.com/v1/x/trends/list" \
-H "Authorization: Bearer $FEEDMCP_API_KEY"
Python
import os, requests
r = requests.get(
"https://api.feedmcp.com/v1/x/trends/list",
params={},
headers={"Authorization": f"Bearer {os.environ['FEEDMCP_API_KEY']}"},
timeout=30,
)
print(r.json())
JavaScript
const res = await fetch("https://api.feedmcp.com/v1/x/trends/list", {
headers: { Authorization: `Bearer ${process.env.FEEDMCP_API_KEY}` },
});
console.log(await res.json());
MCP
From an AI with FeedMCP installed, the call tool:
{
"endpoint": "x.trends.list",
"params": {},
"max_price": "0.002"
}
Response
The data below is made up; the shape is the real one.
{
"code": "ok",
"request_id": "req_7Qm2kXb9TzLp",
"data": {
"items": [
{
"rank": 1,
"platform": "x",
"keyword": "#FirstSnow",
"heat": null,
"label": "Trending",
"url": "https://x.com/search?q=%23FirstSnow"
},
{
"rank": 2,
"platform": "x",
"keyword": "Yosemite",
"heat": null,
"label": "Travel · Trending",
"url": "https://x.com/search?q=Yosemite"
}
]
},
"page": {
"next_cursor": null,
"has_more": false
},
"warnings": [],
"meta": {
"endpoint": "x.trends.list",
"platform": "x",
"fetched_at": "2026-11-19T08:00:00.000Z",
"source": "FeedMCP",
"catalog_revision": "d09a736bd39e8b3f",
"billing": {
"charged": true,
"amount": "0.002",
"currency": "USD",
"balance": "9.98"
}
}
}
Errors are described in Errors: each says whether you were charged (charged) and whether to retry (retry).
Other X (Twitter) endpoints
- X post search:$0.002
- X post:$0.002
- X post replies:$0.002
- X profile:$0.002
- X account posts:$0.002
- X user followers:$0.002
- X user following:$0.002
- X post retweeters:$0.002
- X community:$0.002
- X community members:$0.002
- X community posts:$0.002
- X list posts:$0.002
- X list members:$0.002
- X list followers:$0.002
- X post quotes:$0.0003 per item ($0.0003–0.006 a call)
- X user mentions:$0.0003 per item ($0.0003–0.006 a call)
- X thread:$0.0003 per item ($0.0003–0.015 a call)
- X article:$0.002
- X account search:$0.0004 per item ($0.0004–0.008 a call)
- X video transcript:$0.002
Questions
How much does the X trends endpoint cost?
$0.002 per call that returns the list. An empty list (the platform did not answer), platform errors and timeouts are free; just retry.
Do I need a platform account?
No. Only public data is read.
Where do I find the ID or link?
A post ID is the number after /status/ in a link; an account is the username after @ (without the @).
How do I get more items?
When the answer has page.next_cursor, pass it back as cursor for the next page. Each page is billed on its own.
How do I use it from an AI?
Install the MCP server and ask; your AI calls x.trends.list.