Endpoints
| Endpoint | Returns and price |
|---|---|
GET /v1/trends/{category}Trends | Page of trends · $0.10 per 1,000 records |
All routes take Authorization: Bearer $TWITTERXAPI_KEY and level. Collections return one page; continue with the cursor.
Pick a category
- Use
trending,news,sport,entertainmentor an X timeline ID. For the posts behind a trend, use trend search.
GET/v1/trends/{category}Page of trends
Trends
One page of trends. Each trend has an id and name; Contentful adds rank, description, category and related trends when X provides them.
| Parameter | In | Description |
|---|---|---|
category requiredstring | path | trending, news, sport, entertainment, or an X timeline ID. |
cursorstring | query | Value of pagination.next_cursor from the previous page. Omit for the first page. |
levelraw | moderate | contentful | query | Response level. Defaults to moderate. |
Returns: Page of trends · Price: $0.10 per 1,000 records
cURL
curl "https://twitterxapi.com/api/v1/trends/trending" \
-H "Authorization: Bearer $TWITTERXAPI_KEY"