X API by X Corp.
Read and search posts, users and trends on X, and publish posts or DMs programmatically.
Web search APIs Official MCP server
Price
$5 / 1k requests
list price
Free tier
No
SDK downloads
—
npm @xdevplatform/xdk · PyPI xdk
Pricing
| Free tier | — |
|---|---|
| Cheapest paid plan | — |
| Usage price | Posts: Read $0.005 per resource; User: Read $0.010 per resource; Post: Create $0.015 per request; Post: Create (with URL) $0.200 per request; Owned Reads $0.001 per resource |
| Good to know | Pay-per-use with no subscriptions; resources deduplicated within a 24-hour UTC window; capped at 3 million Post reads per monthly billing cycle (Enterprise above). Promo: $20 in API credits after saving a payment card. |
From the official pricing page, checked Oct 10, 2026. Prices change: confirm before you buy.
Use it from an agent
| MCP server | Official: https://docs.x.com/tools/mcp |
|---|---|
| npm | npm install @xdevplatform/xdk |
| PyPI | pip install xdk |
Alternatives to X API
| API | Free | Price | SDK downloads / wk | GitHub stars | MCP |
|---|---|---|---|---|---|
| Serply Web search API that returns Google search results and SERP data. |
2,500 credits (2,500 requests) for 30 days,... | $0.75 / 1k requests · free tier | — | — | |
| SERP House Retrieves search engine results from Google, Bing, and Yahoo via API. |
4,000 API credits/month | $0.75 / 1k requests · free tier | — | — | |
| Serper Fast, low-cost Google SERP API returning search, news, images, places and more as JSON. |
2,500 free queries, no credit card | $1 / 1k requests · free tier | — | — | MCP (community) |
| Value SERP Provides real-time Google search results data in JSON, HTML, or CSV formats. |
— | $1 / 1k requests | — | — | |
| OpenAlex API Open catalog API of scholarly works, authors, institutions and citations for literature search. |
$1 of usage per day with a free API key | $1 / 1k requests · free tier | — | — | MCP (community) |
| SearchAPI SERP API for retrieving search engine results with location targeting and proxy support. |
100 free requests | $4 / 1k requests · free tier | — | — |