The X API enables programmatic access to X in unique and advanced ways. Tap into core elements of X like: Posts, Direct Messages, Spaces, Lists, users, and more.
X API v2
X API v2 is ready for prime time! We recommend that the majority of developers start to think about migrating to v2 of the API, and for any new users to get started with v2. Why migrate?
Access Levels
Free
For write-only use cases and testing the X API
Low rate-limit access to v2 posts and media upload endpoints
500 Posts per month - posting limit at the app level
1 Project, 1 App per Project, 1 Environment
Login with X, Access to Ads API
Cost: Free
Basic
For hobbyists or prototypes
Low-rate limit access to suite of v2 endpoints
3,000 Posts per month (user level), 50,000 Posts per month (app level)
15,000/month Posts read-limit rate cap
1 Project, 2 Apps per Project
Login with X, Access to Ads API
Cost: $200 per month
Pro
For startups scaling their business
Rate-limited access to suite of v2 endpoints, including search and filtered stream
300,000 Posts per month - posting limit at the app level
1,000,000/month Posts read-limit rate cap
1 Project, 3 Apps per Project
Login with X, Access to Ads API
Cost: $5,000 per month
Enterprise
For businesses and scaled commercial projects
Commercial-level access that meets your and your customer’s specific needs
Managed services by a dedicated account team
Complete streams: replay, engagement metrics, backfill, and more features
Cost: Monthly subscription tiers
Migrate to X API v2
Interested in migrating your current integration to X API v2? Check out our migration hub for resources that will help you understand what is different between v2 and previous versions, including the data formats. You can also access migration guides for each endpoint listed in the new v2 endpoint sections.
What to build
Check out our ‘what to build” page to learn more about:
Moderate conversations for health and safety
Enable creation and personal expression
Measure and analyze “what’s happening”
Improve community experiences
Curate and recommend content
Impact the greater good
Go from zero to “Hello World” with the help of these resources, tools, and libraries.
Client libraries Check out our curated selection of all X-built and community-supported client libraries.
Browse libraries
v2 Postman collection We have built out a Postman collection for our v2 endpoints to help you explore the API using their visual client!
Get started with Postman
Sample code Looking to get started building with the X API. We have sample code, clients, and other example apps available. Check out the @XDevelopers GitHub!
Get started with our sample code
Need help?
Visit our support section for troubleshooting tips, FAQs, live API status monitor, and other helpful information.
Join the conversation
Explore our forum created for developers building and innovating on the X Developer Platform.
Responses are generated using AI and may contain mistakes.