X home pagelight logodark logo
  • Support
  • Developer portal
  • Developer portal
X Ads API
Introduction
Home
Get started
X API
X Ads API
Tutorials
Use Cases
Success Stories
Status
Changelog
  • Developer Portal
  • Forums
  • GitHub
  • X Ads API
    • Introduction
    • Getting started
    Fundamentals
    • Ads API hierarchy and terminology
    • Accessing Ads accounts
    • Making Authenticated Requests
    • Error codes and responses
    • Rate limiting
    • Pagination
    • Sorting
    • Versions
    • Timezones
    • Currency
    • Sandbox
    Resources
    • Tools and libraries
    • Analytics
    • Audiences
    • Campaign Management
    • Catalog Management
    • Creatives
    Measurement
    • Mobile Conversions
    • Web conversions
    • AB Testing
    X Ads API

    Introduction

    ​
    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

    We have built out a Postman collection for our v2 endpoints to help you explore the API using their visual client!

    Command line tool

    If you would rather work with our endpoints using a command line tool, xurl is built for you!

    ​
    Need help?

    Visit our support section, where you can find troubleshooting tips, contact details, live API status monitor, and other helpful information that can help you understand how to overcome any obstacle.

    Visit the Ads API support section


    Help us build the next generation of the X API: Give us your product feedback >

    Step-by-step guide
    xgithub
    On this page
    • Connect to the X Ads platform
    • Need help?