X Ads API

The X Ads API enables programmatic management of advertising campaigns on the X platform including campaign creation and scheduling, custom audience building, creative management (draft posts, cards, media), and analytics retrieval for campaign performance metrics. Supports both synchronous and asynchronous analytics endpoints for reporting.

Documentation

Other Resources

🔗
APIsJSON
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/apis.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-bookmark-and-remove-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-create-list-add-member-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-follow-list-by-id-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-follow-user-by-username-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-followers-of-handle-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-liked-posts-of-handle-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-list-detail-and-members-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-mentions-of-handle-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-mute-user-by-username-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-pin-owned-list-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-post-engagement-audit-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-post-like-cleanup-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-quote-post-from-search-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-reply-to-latest-post-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-repost-then-undo-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-reposters-of-latest-post-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-search-recent-get-details-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-unfollow-user-by-username-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/arazzo/twitter-user-lookup-recent-posts-workflow.yml

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/x-ads-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

API entry from apis.yml

apis.yml Raw ↑
aid: twitter:x-ads-api
name: X Ads API
description: The X Ads API enables programmatic management of advertising campaigns on the X platform
  including campaign creation and scheduling, custom audience building, creative management (draft posts,
  cards, media), and analytics retrieval for campaign performance metrics. Supports both synchronous and
  asynchronous analytics endpoints for reporting.
image: https://abs.twimg.com/favicons/twitter.ico
humanURL: https://docs.x.com/x-ads-api
baseURL: https://ads-api.x.com
properties:
- type: Documentation
  url: https://docs.x.com/x-ads-api
- type: GettingStarted
  url: https://docs.x.com/x-ads-api/getting-started/create-a-campaign
- type: RateLimits
  url: https://docs.x.com/x-ads-api/fundamentals/rate-limiting
tags:
- Advertising
- Campaigns
- Analytics
- Audiences
- Creatives