Get Trends
tweetapi_trendsFetch trending topics on X worldwide, by country code, or by WOEID location. Omit both parameters to retrieve global trends.
Instructions
Fetch the trending topics X shows worldwide, in a country, or at a location. Pass country (a two-letter code such as US) or woeid (from tweetapi_trend_locations), not both; omit both for worldwide. Not every country is supported, and an unsupported one returns not found instead of worldwide trends. Read-only. Needs a TweetAPI API key and makes one TweetAPI request per call, usually costing 1 unit; each result includes a cost estimate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| woeid | No | Where On Earth ID of a location from tweetapi_trend_locations, or 1 for worldwide. Cannot be combined with country. | |
| country | No | Two-letter country code such as US or IT (case-insensitive). Cannot be combined with woeid. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | ||
| mode | Yes | ||
| tool | Yes | ||
| notice | Yes | ||
| output | Yes | ||
| result | Yes | ||
| endpoint | Yes | ||
| usageDocs | No | ||
| pagination | No | Pagination exactly as TweetAPI returned it. | |
| statusCode | Yes | ||
| retrievedAt | Yes | When the MCP server received this response (ISO 8601). Not the post or profile date, and not a promise that X's data was fresh at that moment. | |
| completeness | Yes | ||
| resolvedInput | No | Identifiers the MCP server parsed from links or @handles before calling TweetAPI. |