# Twitter/X Tweet Search API (twitter.surf)

> Twitter/X Tweet Search API (twitter.surf) is a paid API for AI agents from twitter.surf.cascade.fyi, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Search Twitter/X tweets by keyword or query string, returning results in X-API-style shape sorted by latest or relevance.

## Facts

- Endpoint: POST https://twitter.surf.cascade.fyi/api/v1/twitter/tweets/search
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/twitter-x-tweet-search-api-twitter-surf-ee2c9f7a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7mWI5yvBqai57L7mpg2fU

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-tweet-search-api-twitter-surf-ee2c9f7a -d '<json body>'
```

Example prompt: Search Twitter for the latest 20 tweets about 'x402', sorted by most recent, and summarize what people are saying.

## When to prefer this

Use this endpoint when you need real-time or recent Twitter/X tweet search results via a simple paid API without requiring OAuth credentials — particularly suited for agents that need social media signal gathering, trend monitoring, or keyword listening on X without managing Twitter developer accounts.

## Known failure modes

- Query returns no results if the keyword is too obscure or misspelled
- Rate limits or payment failures return 402 or 429 errors
- Invalid sort value or missing 'q' parameter may result in a 400 bad request
- Service may return stale or incomplete results if the underlying Twitter data source lags

## 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

A list of tweets matching the query in X-API-style JSON format, including tweet content, metadata, and author info, ordered by the specified sort (Latest or Top), limited to the requested count.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twitter-x-tweet-search-api-twitter-surf-ee2c9f7a/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)
