Connect to the X Ads platform
The X Ads API connects developers to X’s advertising platform to build solutions to meet the needs of X’s advertisers around the world.Campaign management
Programmatically create, schedule, and manage ad campaigns to engage people on X.
Custom audiences
Create and manage Tailored Audiences using X, web or mobile data you provide.
Creatives
Draft and publish posts, extend the functionality of posts with Cards and manage and upload images and videos.
Advertising analytics
Use async and synchronous API endpoints to retrieve granular insights of ad campaigns by a full range of metrics.
Tools and libraries
Check out our curated selection of X-built and community-supported client libraries.
Postman collection
Explore our v2 endpoints with a curated Postman collection and visual client.
Command line tool
Work with our endpoints from your terminal using xurl.
Get Ads API access
To request Ads API access, submit the Ads API Access Form. Allow up to 3 business days for review.Need help?
Visit our support section for troubleshooting tips, contact details, a live API status monitor, and other resources. Visit the Ads API support sectionHelp us build the next generation of the X API: Give us your product feedback >