Introduction
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?
New and more detailed data objects
New parameters to request objects and fields
Advanced metrics
Receive and filter data with contextual post annotations
Filter on and identify which posts belong to a reply thread
And much more...
- New parameters to request objects and fields
- Advanced metrics
- Receive and filter data with contextual post annotations
- Filter on and identify which posts belong to a reply thread
- And much more…
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
- 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)
- 10,000/month Posts read-limit rate cap
- 1 Project, 2 Apps per Project
- 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
- 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
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.
- Client libraries
- v2 Postman collection
- 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.