Skip to main content

Products

Choose the access level that fits your needs.

X API — Pay-per-use

Flexible, credit-based pricing with no subscriptions or commitments. Access posts, users, spaces, DMs, lists, trends, media, and more. Pay only for what you use and scale up or down anytime.

X API — Enterprise

Everything in the pay-per-use API plus exclusive high-volume endpoints like the full firehose, volume streams, likes streams, engagement metrics, and Powerstream. Includes dedicated account management, custom rate limits, and tailored packages.
Earn free xAI API credits when you purchase X API credits — up to 20% back based on your spend. Learn more

Get started

X Activity API: Now Generally Available

X logo
The X Activity API is officially out of beta. Subscribe to real-time activity events like profile updates, follows, and more with sub-second delivery via streaming or webhooks.

Quickstart

Get your API keys and make your first request in minutes.

API Reference

Explore endpoints for posts, users, spaces, DMs, lists, and more.

SDKs

Official Python and TypeScript SDKs for faster development.

Resources

Tutorials

Step-by-step guides for common use cases and integrations.

Tools & Libraries

Official SDKs and community libraries for every language.

Developer Forum

Get help from the community and X team.

Changelog

Stay updated on API changes and new features.

X Ads API

Programmatically manage ad campaigns, targeting, creatives, and analytics.

X for Websites

Embed posts, timelines, and follow buttons on your website.