X (Twitter) search API for your agent. One call per search.
The short answer
The short answer
X (Twitter) search API for an agent: it sends a search query with optional operators to a catalog endpoint and reads post text, author and likes back. Several providers sell the call, so the agent tries the cheapest first. You pay per call, and a failed call costs nothing.
Updated
- Post text
- Author
- Likes, replies and reposts
- Post date
- Post link
The job
What the X (Twitter) search API gives your agent
X search finds what people are saying, with the operators power users know: from:, since:, until: and a minimum like count. Your agent sends the query and reads back the posts with their text, author and engagement. It is the base for brand monitoring, customer research and finding the posts worth replying to.
Three providers answer. One accepts the full advanced-search syntax inline and returns about 20 posts per page. One takes the filters as separate fields: exact phrase, any of these words, from these accounts, language, media type and a minimum of likes or replies. One takes a keyword and a search type.
You give
a search query with optional operators
claude code min_faves:50
You get
- Post text
- Author
- Likes, replies and reposts
- Post date
- Post link
Providers, cheapest first
What actually differs between providers
Today the price runs from $0.00075 to $0.0010 across 2 endpoints. The dearest costs about 1.3 times the cheapest. Price is only one difference. Each entry below says what that endpoint takes or returns that the others do not.
AnyAPI$0.00075 / callAccepts the full X advanced-search syntax in the query, returns posts with text, author and engagement, and pages with a cursor.
anyapi-run-twitter-search
TikHub$0.0010 / callTakes a keyword and a search type and pages with a cursor.
tikhub-api-twitter-web-fetch-search-timeline- Any Site APIprice on request
Takes separate filters for exact phrase, any of these words, accounts, language, media type and minimum likes or replies, and bills per result.
anysite-api-twitter-search-posts
Cost
What 100 X (Twitter) search runs cost
$0.0750
100 searches cost about $0.0750 through the cheapest endpoint, at AnyAPI, and about $0.1000 through the dearest. Each run is one call.
Sample calls
The request and what comes back
Each run is one POST to /v1/runs with an endpoint id and an input. These are illustrative calls with generic values. The run's result holds the provider's own fields.
{"endpointId":"anyapi-run-twitter-search","input":{"query":"claude code min_faves:50","limit":20},"wait":30}// POST /v1/runs, then read run.status and run.result // result: accepts the full X advanced-search syntax in the query, returns posts with text, author and engagement, and pages with a cursor
The prompt
Copy one prompt, give it to your agent.
Edit the names and numbers, paste it, and the agent runs the job and shows the cost.
- One run is one search.
- 1 step across 3 providers.
- Runs on demand, whenever you ask.
set up looot for X (Twitter) search API - https://looot.ai/use-cases/twitter-search-api/skill.mdBefore you start
Settle these before the first run
- Write the query with operators. Bare terms match broadly, and from:, min_faves: and a date window cut a search to the posts that matter.
- Page with a cursor. A page holds about 20 posts on one provider, and a longer pull means several calls.
- Be careful with replies. A search that mixes posts and replies is noisy, so use the media and engagement filters.
FAQ
Questions people ask
More ways to run this job
- use case
- X (Twitter) search API
- run
- search
- schedule
- on demand
- step
- Search posts on X: anyapi anysite tikhub
- setup
- https://looot.ai/use-cases/twitter-search-api/skill.md
- llms.txt
- https://looot.ai/llms.txt
- updated
- 2026-10-04
Try X (Twitter) search with your own agent.
Start your workspace, top up, and paste the prompt into the agent you already use.