# glim.sh Twitter Trends

> glim.sh Twitter Trends is a paid API for AI agents from surf.cascade.fyi, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Fetches live Twitter/X trending topics with rank and name data, without requiring API keys

## Facts

- Endpoint: POST https://surf.cascade.fyi/api/v1/twitter/trends
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glim-sh-twitter-trends-a42db14b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1CmrPDg0e0MoOc_nuxlha

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 glim-sh-twitter-trends-a42db14b -d '<json body>'
```

Example prompt: What's trending on Twitter/X right now? Give me the top trends with their rankings.

## When to prefer this

Choose this endpoint when you need live, real-time Twitter/X trending data without managing your own Twitter API credentials or scraping infrastructure. Ideal for agents that need to monitor social media trends on-demand, paying only per call via x402/USDC micropayments rather than maintaining a monthly API subscription.

## Known failure modes

- Payment not received — returns 402 Payment Required if USDC payment is not attached
- Twitter API downtime — upstream data unavailable, returns 503 or error
- Rate limiting — too many requests in a short window may be rejected
- Empty trends — if no trends are available for the requested region, result_count may be 0
- Invalid request body — malformed POST payload may return 400 Bad Request

## How this service works

Trending topics

## Output

A JSON object containing an array of trending topics, each with a name and rank, plus metadata including result count. Example: {data: [{name: 'x402', rank: 1}], meta: {result_count: 1}}

## Example request

```json
{
 "ref": "https://x.com/home"
}
```

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "name": "x402",
    "rank": 1
   }
  ],
  "meta": {
   "result_count": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glim-sh-twitter-trends-a42db14b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from surf.cascade.fyi](https://www.zero.xyz/host/surf.cascade.fyi/llms.txt)
