# Surf Twitter Advanced Search

> Surf Twitter Advanced Search 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-11-18).

Search Twitter/X tweets using advanced query operators (from:, min_faves:, date filters, etc.) with pay-per-use micropayments

## Facts

- Endpoint: POST https://twitter.surf.cascade.fyi/api/v1/twitter/search?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/surf-twitter-advanced-search-43fd73f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fDRNOwZHt7em3Bk7ePI-y

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 surf-twitter-advanced-search-43fd73f8 -d '<json body>'
```

Example prompt: Search Twitter for the top tweets from @elonmusk about AI that have at least 100 likes, sorted by most engaged, from the past week.

## When to prefer this

Prefer this endpoint when you need to search Twitter/X with advanced operators (from:, min_faves:, min_retweets:, since:, until:, filter:links, etc.) and want pay-per-use pricing without a Twitter API subscription. It is especially useful for agents that need targeted, operator-rich tweet retrieval — such as filtering by specific users, engagement thresholds, or date ranges — rather than simple keyword search. Choose over alternatives when x402 micropayments fit your payment infrastructure and you want flexible, on-demand access.

## Known failure modes

- Invalid or malformed query string returns an error
- Rate limits or quota exceeded if too many calls in short succession
- Micropayment failure (x402) if wallet has insufficient USDC balance
- Empty result set if query is too restrictive or no matching tweets exist
- Invalid date format causes query rejection
- Cursor from a different query used for pagination returns unexpected results

## How this service works

Search tweets with advanced operators (recommended). Body param is `query` (not q), e.g. {"query":"from:elonmusk AI min_faves:100"}

## Output

Returns a list of tweets matching the query, each including tweet text, author info, engagement metrics (likes, retweets, replies), timestamps, and URLs. Also returns a pagination cursor for fetching additional results pages.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "sort": {
   "enum": [
    "latest",
    "top"
   ],
   "type": "string",
   "description": "Sort order: \"top\" (most engaged matching tweets) or \"latest\" (newest first). Default: \"top\"."
  },
  "query": {
   "type": "string",
   "maxLength": 1000,
   "minLength": 1,
   "description": "Search query with advanced operators"
  },
  "cursor": {
   "type": "string",
   "maxLength": 500,
   "description": "Pagination cursor"
  },
  "end_date": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:?\\d{2}))?$",
   "description": "Only tweets before this time. YYYY-MM-DD (inclusive through end of day UTC) or ISO 8601 datetime with Z/offset (e.g. 2026-04-13T14:30:00Z)"
  },
  "start_date": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:?\\d{2}))?$",
   "description": "Only tweets on or after this time. YYYY-MM-DD (UTC midnight) or ISO 8601 datetime with Z/offset (e.g. 2026-04-13T14:30:00Z)"
  },
  "expand_urls": {
   "type": "boolean",
   "default": false,
   "description": "When true, auto-crawl entity URLs and attach crawled_content to tweets. Off by default: responses can grow by up to 4KB per expanded URL. Use glim_web_crawl(url) for targeted crawls instead."
  }
 }
}
```

## More

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