# glim.sh Twitter Tweet Search

> glim.sh Twitter Tweet Search is a paid API for AI agents from glim.sh, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Search Twitter/X for tweets matching a query and return live results without requiring API keys

## Facts

- Endpoint: POST https://glim.sh/api/v1/twitter/tweets/search
- Price: $0.005/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-tweet-search-e9dace75
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7hWLurnigc3qrkxb6Ad_l

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-tweet-search-e9dace75 -d '<json body>'
```

Example prompt: Search Twitter for up to 20 recent tweets about 'AI agents' and show me what people are saying right now.

## When to prefer this

Use this endpoint when your agent needs live tweet data without setting up Twitter API credentials or a scraping infrastructure. Ideal for agents that need real-time social sentiment, trending mentions, or keyword monitoring on X/Twitter and want a simple pay-per-call model with no key management.

## Known failure modes

- Query returns zero results if no matching tweets exist
- Rate limiting or quota exceeded returns an error response
- Invalid or missing query parameter causes a 400-level error
- Twitter platform downtime may cause upstream failures
- Count exceeding platform limits may be capped silently

## How this service works

Search tweets, X-API-style raw shape. Body: {"q":"x402","sort":"Latest","limit":20} - the param is q, not query

## Output

Returns a JSON object with a 'data' array of tweet objects (each containing an 'id' and 'text' field) and a 'meta' object with the result_count — providing live tweets matching the search query.

## 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": {
      "q": {
       "type": "string",
       "minLength": 1,
       "description": "Twitter search query with operators"
      },
      "sort": {
       "default": "Top",
       "description": "Sort order",
       "type": "string",
       "enum": [
        "Latest",
        "Top"
       ]
      },
      "limit": {
       "default": 20,
       "description": "Maximum tweets to return",
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      },
      "cursor": {
       "description": "Pagination cursor. Ranking is strongest on page 1 - paged results under sort=Top trend toward recency (upstream behavior).",
       "type": "string"
      }
     },
     "required": [
      "q"
     ]
    }
   },
   "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-tweet-search-e9dace75/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)
