Skip to content
Agents tracked: 378 Downloads (7d): 242M down 5.8% GitHub stars: 8.3M VS Code installs: 151M Releases (7d): 389 Agent status: 1 with issues Updated Oct 10, 2026

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
Status
—

Pricing

Free tier—
Cheapest paid plan—
Usage pricePosts: 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 knowPay-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 serverOfficial: https://docs.x.com/tools/mcp
npmnpm install @xdevplatform/xdk
PyPIpip install xdk

Alternatives to X API

All web search apis

APIFreePrice SDK downloads / wkGitHub starsMCP
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 — —
Is X API right for you? Ask AgentGid →