X Get Trending
Retrieve trending data on X (Twitter) for a selected country. Input: - country (optional string): Country identifier; defaults to UnitedStates when omitted. Use the documented spelling, for example UnitedStates, UnitedKingdom, Japan, India, China, or Germany. - No date, pagination, or result-limit inputs are available. Returns: - A response containing the country's trending data in data, with status and response metadata. The detailed structure of the trending data is not specified, and data may be null; specific fields such as ranks or post counts are not guaranteed. Example: {"country":"UnitedStates"}
Pricing
| Condition | Charge |
|---|---|
| Each call | 2.07 credits/call |
A fixed charge of 2.07 credits applies per call. Charges are per query. A successful query is billed even if it returns no results.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
country | string | No | 国家/Country | UnitedStates |
Invocation example
Copy the request and explore its response example.
/agent-api/v1/tool/executeX-Api-Keycurl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_x_get_trending' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"country": "UnitedStates"
}
}'{
"code": 200,
"data": {
"trends": [
{
"context": "Business and finance · Trending",
"description": null,
"name": "Jensen"
}
]
},
"docs": "https://api.tikhub.io/#/Twitter-Web-API/fetch_trending_api_v1_twitter_web_fetch_trending_get",
"message": "Request successful. This request will incur a charge.",
"message_zh": "请求成功,本次请求将被计费。",
"params": {
"country": "UnitedStates"
}
}This example shows part of the response. Copied content is valid JSON.





