X / Twitter Search
From AnyAPI, through Joshu Data Bodega.
Part of X (Twitter) search posts.
- Price
- $0.000825 per call$0.82 per 1,000 calls
- Success, 30 days
- 100%
- Median latency
- 4.0 s
Prices include the router's 10% markup and are paid from the usage wallet. Checked on November 11, 2026.
Inputs
jqstring, optionaljq expression over the result envelope; its output replaces `output`. A failed expression returns the full result with `jqError`.
limitinteger, optionalPage size to ask for (1-50, default 20). Some sources honor it; others always return their whole native page of about 20. A page is never trimmed after the call, so follow nextCursor to continue exactly where this response ended.
querystring, requiredSearch query using X (Twitter) advanced-search syntax. IMPORTANT: bare terms are ANDed - a tweet must contain EVERY word, so a list of loosely related keywords matches nothing; use one short phrase or OR between alternatives (e.g. 'anyapi OR getanyapi'). You can embed X advanced-search operators...
cursorstring, optionalOpaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it to fetch the next page of search results.
fieldsstring, optionalComma-separated keys (dotted paths descend) to keep on each result item. Trims the response, not the charge.
summaryboolean, optional`true` returns only an outline: keys, item counts, per-field sizes.
max_itemsinteger, optionalCaps the result rows returned; `_truncated` says how many were withheld. Not the charge.
queryTypestring, optionalResult ranking: 'Latest', 'Top', 'Photos', or 'Videos' (e.g. Latest).
Call it
curl https://hello.joshu.me/api/router/call \
-H "Authorization: Bearer $JOSHU_ROUTER_KEY" \
-H "Content-Type: application/json" \
-d '{
"endpoint": "anyapi.x.search.posts",
"params": {
"limit": 20,
"query": "openai"
}
}'