# AnyAPI Twitter/X Search

> AnyAPI Twitter/X Search is a paid API for AI agents from api.getanyapi.com, paid per call via x402, $0.0056/call, status unknown (last checked 2026-10-12, last successful call 2026-07-06).

Searches X (Twitter) using advanced query syntax and returns matching tweets with author profiles, timestamps, and engagement metrics

## Facts

- Endpoint: POST https://api.getanyapi.com/v1/run/twitter.search?utm_source=zero.xyz
- Price: $0.0056/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Last successful call: 2026-07-06
- Success rate: 100% of calls made through Zero
- Rating: 4.3 / 5 from 1 review
- Activations on Zero: 5
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anyapi-twitter-x-search-124b68e7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gxsfylVg0_xPC69jkuQfW

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 anyapi-twitter-x-search-124b68e7 -d '<json body>'
```

Example prompt: Search X for the latest 20 English-language tweets about 'SpaceX Starship' posted since 2025-01-01 — sort by Latest so I can see the most recent ones first.

## When to prefer this

Use this endpoint when you need to search and retrieve real-time or recent tweets from X (Twitter) using advanced search syntax, especially when you want control over result count, language filtering, and ranking type (Latest, Top, Photos, Videos). Prefer this over general web search when the task specifically requires Twitter/X content with engagement metrics.

## Known failure modes

- No tweets found for the query — 'found' is false and 'data' is null
- Invalid query syntax causes an empty or error response
- Language code not recognized — may return empty results
- Limit out of range (must be 1–50) causes a validation error
- queryType value not in allowed set ('Latest','Top','Photos','Videos') causes an error
- Rate limiting or upstream X API unavailability causes a failure response

## How this service works

1,200+ scraping and data APIs behind one key. Pay per request in real dollars. No subscriptions, nothing monthly, nothing to cancel.

## Output

Returns a list of up to 50 tweet records, each containing the tweet text, author profile information, timestamp, and engagement metrics (likes, retweets, replies, views), along with a boolean indicating whether results were found and the USD cost of the call.

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anyapi-twitter-x-search-124b68e7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.getanyapi.com](https://www.zero.xyz/host/api.getanyapi.com/llms.txt)
