<p class="crumbs"><a href="/apis/">Data APIs</a> / <a href="/apis/x/">X (Twitter)</a></p>

# 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; `label` is 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

```bash
curl "https://api.feedmcp.com/v1/x/trends/list" \
  -H "Authorization: Bearer $FEEDMCP_API_KEY"
```

### Python

```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

```js
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:

```json
{
  "endpoint": "x.trends.list",
  "params": {},
  "max_price": "0.002"
}
```

## Response

The data below is made up; the shape is the real one.

```json
{
  "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](/docs/errors/): each says whether you were charged (`charged`) and whether to retry (`retry`).

## Other X (Twitter) endpoints

- [X post search](/apis/x/posts/search/)：$0.002
- [X post](/apis/x/posts/get/)：$0.002
- [X post replies](/apis/x/posts/replies/list/)：$0.002
- [X profile](/apis/x/users/get/)：$0.002
- [X account posts](/apis/x/users/posts/list/)：$0.002
- [X user followers](/apis/x/users/followers/list/)：$0.002
- [X user following](/apis/x/users/following/list/)：$0.002
- [X post retweeters](/apis/x/posts/retweeters/list/)：$0.002
- [X community](/apis/x/communities/get/)：$0.002
- [X community members](/apis/x/communities/members/list/)：$0.002
- [X community posts](/apis/x/communities/posts/list/)：$0.002
- [X list posts](/apis/x/lists/posts/list/)：$0.002
- [X list members](/apis/x/lists/members/list/)：$0.002
- [X list followers](/apis/x/lists/followers/list/)：$0.002
- [X post quotes](/apis/x/posts/quotes/list/)：$0.0003 per item ($0.0003–0.006 a call)
- [X user mentions](/apis/x/users/mentions/list/)：$0.0003 per item ($0.0003–0.006 a call)
- [X thread](/apis/x/posts/thread/list/)：$0.0003 per item ($0.0003–0.015 a call)
- [X article](/apis/x/posts/article/get/)：$0.002
- [X account search](/apis/x/users/search/)：$0.0004 per item ($0.0004–0.008 a call)
- [X video transcript](/apis/x/posts/transcript/get/)：$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](/mcp/) and ask; your AI calls `x.trends.list`.

---

HTML version: https://feedmcp.com/apis/x/trends/list/
