X / Twitter Search

From AnyAPI, through Joshu Data Bodega.

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, optional

    jq expression over the result envelope; its output replaces `output`. A failed expression returns the full result with `jqError`.

  • limitinteger, optional

    Page 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, required

    Search 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, optional

    Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it to fetch the next page of search results.

  • fieldsstring, optional

    Comma-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, optional

    Caps the result rows returned; `_truncated` says how many were withheld. Not the charge.

  • queryTypestring, optional

    Result ranking: 'Latest', 'Top', 'Photos', or 'Videos' (e.g. Latest).

Call it

Router call with a router API key
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"
    }
  }'