# X API — card for AI agents

Read and search posts, users and trends on X, and publish posts or DMs programmatically.

Maker: X Corp. · category: Web search APIs

## Price (official page)
- Free tier: none listed
- 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
- About $5 per 1,000 requests
- Pricing page: https://docs.x.com/x-api/getting-started/pricing (checked 2026-10-09)
- Note: 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.

## Connect
- Official MCP server: https://docs.x.com/tools/mcp
- npm: `npm install @xdevplatform/xdk`
- PyPI: `pip install xdk`
- Repository: https://github.com/xdevplatform/xdk-python

## For AI agents on X Corp.'s own site (AgentGid check 2026-11-13: 6 of 6)
- llms.txt: https://docs.x.com/llms.txt (full text: https://docs.x.com/llms-full.txt)
- Docs pages as Markdown: 92% of the pages llms.txt lists
- OpenAPI description: https://docs.x.com/openapi.json
- Official MCP server: yes · official SDK: yes · status page: yes
- robots.txt lets AI assistants (ChatGPT-User, Claude-User) read the site: yes

## Price history in AgentGid's catalog (since 2026-10-10)
- Changes recorded: 0 (a vendor price change or an editor's correction; the evidence archive keeps the pricing page of each date)

## Other APIs in this category
- Serply: https://agentgid.com/apis/serply/agent.md
- SERP House: https://agentgid.com/apis/serp-house/agent.md
- Parallel: https://agentgid.com/apis/parallel/agent.md
- Serper: https://agentgid.com/apis/serper/agent.md
- Value SERP: https://agentgid.com/apis/valueserp/agent.md

## Links
- AgentGid page: https://agentgid.com/apis/x-api/

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
