# Twitter/X Trending Topics by WOEID

> Twitter/X Trending Topics by WOEID is a paid API for AI agents from twitter.surf.cascade.fyi, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns the top trending topics on Twitter/X for a given location, identified by Yahoo Where On Earth ID (WOEID).

## Facts

- Endpoint: POST https://twitter.surf.cascade.fyi/api/v1/twitter/trends
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/twitter-x-trending-topics-by-woeid-9c55cdec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VlSjAnkgu_sjHB1wl7wg6

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability twitter-x-trending-topics-by-woeid-9c55cdec -d '<json body>'
```

Example prompt: What are the top 20 trending topics on Twitter worldwide right now? Give me the ranked list with their names.

## When to prefer this

Use this endpoint when you need real-time ranked Twitter/X trending topics for a specific location or globally. Prefer this over manual scraping or general news APIs when you specifically need Twitter trend signals with rank ordering and WOEID-based geographic filtering.

## Known failure modes

- Invalid or unsupported WOEID returns empty trends array or error
- Count parameter out of range may be rejected or clamped
- Twitter API rate limits on the backend may cause temporary failures
- Location has no available trend data (some small WOEIDs are unsupported)
- Payment failure due to insufficient USDC balance returns 402

## How this service works

Trending topics

## Output

An array of trending topic objects each containing the trend name, its rank, and a target URL, along with metadata showing the total result count. Results are ordered by rank and scoped to the requested WOEID location.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "woeid": {
       "default": 1,
       "description": "Yahoo Where On Earth ID. Defaults to 1 for worldwide trends.",
       "type": "integer",
       "minimum": -9007199254740991,
       "maximum": 9007199254740991
      },
      "count": {
       "default": 30,
       "description": "Maximum trends to return",
       "type": "integer",
       "minimum": 1,
       "maximum": 9007199254740991
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "name": {
          "type": "string"
         },
         "target": {
          "type": "string"
         },
         "rank": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
         }
        },
        "required": [
         "name"
        ]
       }
      },
      "meta": {
       "type": "object",
       "properties": {
        "result_count": {
         "type": "integer",
         "minimum": -9007199254740991,
         "maximum": 9007199254740991
        }
       },
       "required": [
        "result_count"
       ]
      }
     },
     "required": [
      "data",
      "meta"
     ]
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twitter-x-trending-topics-by-woeid-9c55cdec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twitter.surf.cascade.fyi](https://www.zero.xyz/host/twitter.surf.cascade.fyi/llms.txt)
