X Twitter Gettrendsbywoeid

From 5.4 credits/call
ae_x_twitter_gettrendsbywoeid

Get trending topics for a location with the requested count.

SocialNews
From 5.4 credits/call

Pricing

From 5.4 credits/call
ConditionCharge
Per requested trend0.18 credits/requested trend

Charges depend on requested trend count.

The starting price uses requested trend count 30.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
countintegerYes希望返回的趋势数量,最少30条;实际结果可能较少。 Requested number of trends, minimum 30; actual results may be fewer.—
woeidintegerYes地区标识WOEID,例如1表示全球。 Location WOEID; 1 selects worldwide trends.—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_x_twitter_gettrendsbywoeid' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "count": 50,
    "woeid": 1
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "metadata": {
    "context_mode": "full",
    "refresh_interval_millis": 300000,
    "timestamp": 1794530027311,
    "woeid": {
      "id": 1,
      "name": "Worldwide"
    }
  },
  "msg": "success",
  "status": "success",
  "trends": [
    {
      "trend": {
        "name": "Outlook",
        "rank": 1,
        "target": {
          "query": "Outlook"
        }
      }
    }
  ]
}

This example shows part of the response. Copied content is valid JSON.