# glim.sh Twitter Trending Tweets

> glim.sh Twitter Trending Tweets is a paid API for AI agents from glim.sh, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-13).

Fetches live trending tweets from Twitter/X for a specified geographic location using a Yahoo WOEID

## Facts

- Endpoint: POST https://glim.sh/api/v1/twitter/tweets
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glim-sh-twitter-trending-tweets-d1dc43a2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r8bcXSciFZWT1xlKIk3jT

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-trending-tweets-d1dc43a2 -d '<json body>'
```

Example prompt: What are the top 20 trending tweets worldwide on Twitter right now? Use WOEID 1 for global trends.

## When to prefer this

Use this endpoint when you need live, real-time Twitter trending data without managing your own Twitter API keys or scraping infrastructure. Ideal for agents that need geographic-specific Twitter trends via WOEID, pay-per-call pricing with no subscription commitment, and zero setup overhead. Prefer over direct Twitter API integration when you want instant access with crypto micropayments.

## Known failure modes

- Invalid or unsupported WOEID returns empty or error response
- Count exceeding available trends returns fewer results than requested
- Payment failure (402) if USDC balance is insufficient
- Rate limiting or upstream Twitter API unavailability causes 5xx errors
- Malformed request body returns 400 validation error

## How this service works

Batch fetch tweets by IDs

## Output

A JSON object with a 'data' array of tweet objects (each containing tweet ID and text) and a 'meta' object with result_count. Returns up to the requested number of trending tweets for the specified 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": {
      "ids": {
       "type": "string",
       "description": "Comma-separated tweet IDs"
      }
     },
     "required": [
      "ids"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "array",
       "items": {
        "type": "object",
        "propertyNames": {
         "type": "string"
        },
        "additionalProperties": {}
       }
      },
      "meta": {
       "type": "object",
       "properties": {
        "result_count": {
         "type": "integer",
         "minimum": -9007199254740991,
         "maximum": 9007199254740991
        },
        "has_next_page": {
         "type": "boolean"
        },
        "next_cursor": {
         "type": "string"
        }
       },
       "required": [
        "result_count"
       ]
      },
      "summary": {
       "type": "object",
       "propertyNames": {
        "type": "string"
       },
       "additionalProperties": {}
      }
     },
     "required": [
      "data",
      "meta"
     ]
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "id": "1234567890",
    "text": "Example tweet"
   }
  ],
  "meta": {
   "result_count": 1
  }
 }
}
```

## More

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