X (Twitter) API

Twitter (X) Search Scraper API

Search posts with the operators you use on x.com: from:, since:, exact phrases, hashtags, lang:. Newest or most engaged first.

  • No card needed
  • Failed calls are free
  • Pack credits never expire
Query
Endpoint
curl "https://api.toolzerhub.com/v1/x/search?query=openai" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
200 OK
Real response, 27 Nov 2026. Author handles are hidden on this page. The API returns them.
{
  "data": {
    "count": 20,
    "cursor": "ab~DAADDAABCgABHYHF8wGaodUKAAIdgcVMxFtQ5wAIAAIAAAACCAADAAAAAAgABAAAAAAKAAUdgcYGIEAnEAoABh2BxgYgP9jwCwAHAAAA8EVtUEM2d0FBQWZRL2dHSk4wdkdwL0…",
    "has_more": true,
    "posts": [
      {
        "id": "2126198146590220757",
        "url": "https://…",
        "text": "@gao9498 Grok BotsやOpenAI DotsにGoogleも参入となると、エージェントの主戦場が「モデル」から「常駐するBot」へ移りつつある感じですね。Gemini 4 Neonの発表(11/18)が事実なら、Bot化はその延長線として自然。権限管理と誤作…",
        "created_at": "2026-11-27T06:15:15.000Z",
        "like_count": 0,
        "repost_count": 0,
        "view_count": 0,
        "author": {
          "handle": "hidden"
        }
      },
      {
        "id": "2126198082714877968",
        "url": "https://…",
        "text": "📌 ChatGPT kullanım limitlerinde değişiklik: Sınıra ulaşma riski arttı\n\nOpenAI, ChatGPT’deki Sohbet (Chat) ve İş (Work) deneyimlerini tek …",
        "created_at": "2026-11-27T06:15:00.000Z",
        "like_count": 0,
        "repost_count": 0,
        "view_count": 9,
        "author": {
          "handle": "hidden"
        }
      },
      {
        "id": "2126198082501017700",
        "url": "https://…",
        "text": "盘完这周的牌桌,才发现奥特曼现在已经彻底被逼到墙角了:\n\n最大金主微软偷偷掏出只要 5% 价格的 MAI Code 2 背刺;谷歌反手上线官方蒸馏服务,直接帮全行业合法白嫖推理能力;国内开源模型把 OpenRouter 69% 的账单全吃干抹净。\n\n产品打不过、价格卷不动,…",
        "created_at": "2026-11-27T06:15:00.000Z",
        "like_count": 0,
        "repost_count": 0,
        "view_count": 0,
        "author": {
          "handle": "hidden"
        }
      }
    ]
  }
}
5
credits per call
20
posts per call
$0.42
per 1,000 posts on the 3K pack
$0.23
per 1,000 posts on the largest plan

10 of 10 live calls with different queries returned data (27 Nov 2026).

Inputs

What you send

GET /v1/x/search with your key in the x-api-key header.

ParameterExampleNotes
queryrequiredopenaiAny X search, operators included.
sortlatestlatest or top.
cursorab~DAAD…From the previous response.

Limits

Good to know

  • sort=latest returns newest first; narrow broad queries with since: and until:.

How it works

From key to JSON

  1. 01x-api-key••••••••••Get a key100 free credits a month, no card
  2. 02GET/v1/x/searchSend a requestAny HTTP client, no SDK needed
  3. 03{ data, status }200Get JSONFailed calls cost nothing

Pricing

1,000 posts cost $0.42

50 calls at 5 credits each is 250 credits: $0.42 on the $5 3K pack, down to $0.23 on the largest plan. The free 100 credits a month cover about 400 posts, and failed calls are not charged.

All plans and packs

FAQ

Questions

Which operators work?
The ones x.com search accepts, such as from:NASA, "exact phrase", since:2026-10-01, #hashtag and lang:en.
What does monitoring a brand cost?
One page every hour is 24 calls a day at 5 credits: 120 credits a day, about 3,600 a month, inside the $29 Starter plan.
Can I search profiles instead?
Yes, /v1/x/search/profiles finds accounts by name, handle or keyword.

Try the Twitter (X) Search API free

Every new workspace gets 100 credits a month. Buy credits only when you need more.

Get free API key(opens in new tab)