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
1,500 Posts per month - posting limit at the app level
- 1 Project
- 1 App per Project
- 1 Environment (Development/ Production/ Staging)
- 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 - posting limit at the user level
50,000 Posts per month - posting limit at the app level
10,000/month Posts read-limit rate cap
- 1 Project
- 2 Apps per Project with unique Environment (Development/ Production/ Staging)
- Login with X
- Access to Ads API
Cost: $100 per month
Pro
For startups scaling their business
Rate-limited access to suite of v2 endpoints, including search and filtered stream
1,000,000 Posts per month - GET at the app level
300,000 Posts per month - posting limit at the app level
- 1 Project
- 3 Apps per Project with unique Environment (Development/ Production/ Staging)
- Login with X
- Access to Ads API
$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
With the volume of different endpoints and features available on the X API, it’s not always easy to know what to use it for.
We’ve made it easy for you. Check out our 'what to build" page to learn more.
- 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
Tools to get you started
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.
v2 Postman collection
We have built out a Postman collection for our v2 endpoints to help you explore the API using their visual client!
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!
Need help?
Visit our support section, where you can find troubleshooting tips, frequently asked questions, live API status monitor, and other helpful information that can help you understand how to overcome any obstacle.
Join the conversation
Explore our forum created for developers building and innovating on the X Developer Platform.
How can we improve upon the X API? Give us your product feedback >