X Ads API

by X Corp. HTTP API in Advertising & campaign operations

Hosted

X Corp. · x.com since 1993 · status page · who's behind it

X's Ads API creates and manages campaigns, line items, targeting, creatives and audiences on X and returns performance analytics. Agents call versioned REST endpoints at ads-api.x.com with OAuth 1.0a, or use the X Ads MCP server with OAuth 2.0.

Good for An agent that manages or reports on X campaigns for an advertiser with an approved developer app, especially through the MCP server, where scopes separate reads from writes and writes start paused.

Is this your product? Claim this listing or verify it

More from X Corp. X MCP (Social)

Assessment. Rate limits are published per endpoint type, a sandbox host never serves ads, and the X Ads MCP server has separate read and write scopes and creates campaigns paused. The REST API needs OAuth 1.0a signing and an approved app, no OpenAPI file covers it, and the official Python and Ruby SDKs were last released in May 2022.

Facts

Transport
HTTP
Endpoint
https://ads-api.x.com/mcp
Auth
OAuth
Pricing
Free · Free
x402
No
Licence
Proprietary service under the X Developer Agreement and its incorporated Developer Policy
llms.txt
published
Last release
Surface graded
The public REST API at https://ads-api.x.com/12/. The X Ads MCP server at https://ads-api.x.com/mcp is recorded from its docs page and not graded, since its host's robots.txt closes it to us
Access
A developer app plus Ads API approval. The introduction points to an access form reviewed within three business days. Tiers are Conversion Only and Standard Access, and apps approved before July 2023 may be limited to five OAuth tokens
Credentials
REST uses OAuth 1.0a with HMAC-SHA1 signatures, an app key and secret, and a user access token that the docs say does not expire. MCP uses OAuth 2.0 with PKCE, access tokens of about two hours and rotating refresh tokens
Roles
Account administrator, Ad manager, Campaign analyst, Organic analyst and Creative Manager. GET accounts/:account_id/authenticated_user_access returns the current user's permissions
X Ads MCP
74 tools listed in the docs. Scopes ads.read for reads and analytics, ads.write for campaign and creative writes, media.write for media library writes. Native app (public client) recommended, and no dynamic client registration is described
Rate limits
Per minute, 450 writes and 1,500 audience calls. Per 15 minutes, 250 synchronous analytics, 10,000 core entity reads, 2,000 other account reads, 400 targeting criteria, 5 global reads and 60,000 conversions. The docs say limits are not raised
Retries
x-rate-limit-reset after a 429 and retry-after after a 503. No idempotency key was found
Test mode
ads-api-sandbox.x.com creates test ad accounts and funding instruments, and campaigns there are not served
Checks before spend
Campaigns take entity_status of ACTIVE, DRAFT or PAUSED. MCP writes are always created paused, and estimate_audience and reach tools exist. Batch endpoints take up to 40 items and fail or succeed as a group
Reporting
Synchronous and asynchronous analytics. Metrics lock after 24 hours, except billed_charge_local_micro, which is an estimate for up to three days. One segmentation per request
Pagination
count from 1 to 1,000 (default 200) with cursor and next_cursor, sort_by, and q for name prefix search. Analytics endpoints page by time range
Errors
An errors array with a constant code, a message and often parameter and details. About 77 constants are listed with their HTTP codes
Versioning
The version is the first path element. Version 12 dates from 27 October 2022. Responses carry x-current-api-version, and x-api-warn on deprecated endpoints
Clients
Official Python and Ruby SDKs, both last tagged v11.0.0 on 27 May 2022. A Postman collection and community libraries for PHP, Java and Node.js are linked
Status
developer.x.com/status, and an incident history at docs.x.com/incidents whose latest entry ended on 1 July 2026. No 2026 entry names the Ads API
Security programme
Not established. x.com's robots.txt closes its security.txt to us, and developer.x.com and docs.x.com return 404 for the file

Facts verified 2026-10-09 from vendor docs, repositories and package registries. JSON · Markdown

Strengths

  • Rate limits are published by endpoint type, such as 450 writes a minute and 250 synchronous analytics requests per 15 minutes, with remaining quota in x-rate-limit-* headers
  • The sandbox host ads-api-sandbox.x.com creates test ad accounts and funding instruments, and campaigns made there are not served
  • The X Ads MCP server at https://ads-api.x.com/mcp lists 74 tools, with ads.read, ads.write and media.write as separate OAuth 2.0 scopes
  • The MCP docs say campaigns and line items are always created paused, and spending starts only after activate_campaign or activate_line_item
  • Every docs page has a Markdown twin, and https://docs.x.com/x-ads-api/llms.txt indexes the Ads API pages

Weaknesses

  • No OpenAPI file covers the Ads API. The published file (version 2.170, 178 paths) describes api.x.com only
  • REST calls need an OAuth 1.0a signature on each request, and the docs say user access tokens do not expire
  • The official Python and Ruby SDKs were last released on 27 May 2022 at v11.0.0, while the current API version is 12
  • No idempotency key, audit log endpoint or SLA was found in the reviewed documentation
  • The Developer Agreement treats statistics on the X API's performance and responsiveness as Confidential Information for internal, non-commercial use, which matters before any probe is run
  • The video_total_views metric was redefined in place on 13 August 2026 with no version change

Before you call it notes for agents

  1. Build against https://ads-api-sandbox.x.com/12/ first. Create a test account with POST accounts and a funding instrument there before touching a live account
  2. On HTTP 429 wait until the time in x-rate-limit-reset. On 503 wait for retry-after. The docs say apps that ignore these can be throttled or lose access without notice
  3. Read the account-level limit from x-account-rate-limit-* when present and use x-rate-limit-* only when it is absent
  4. For a read-only MCP session request ads.read offline.access only. Without offline.access the token expires in about two hours with no refresh
  5. Page with count (1 to 1,000, default 200) and cursor until next_cursor is null. Analytics endpoints page by time range instead, and with_total_count cannot be combined with cursor

Who's behind it provenance 84/100

  • Legal entity namedX Corp.20/20
  • Domain agex.com, registered 1993-04-02 (33 years)15/15
  • Endpoint on the vendor's domainads-api.x.com15/15
  • Terms of serviceread, states 6 of the 7 things a reader expects, and has 1 clause that costs points7.1/10
  • Privacy policypublished, but our reader couldn't read it7/10
  • Status pagedeveloper.x.com/status10/10
  • Changelogpublished10/10
  • security.txtcould not be fetched0/10

Terms and privacy, as read

Terms of service dated 2026-04-27, states 6 of 7, 3 to know

TL;DR Dated 2026-04-27. States 6 of the 7 things a reader expects, and we didn't find a service level. To know before relying on it, limits on benchmarking, cut-off without notice or for any reason and arbitration or a class action waiver.

Restricts benchmarking or competitive usecosts points
use or access the Licensed Material to create or attempt to create a substitute or similar service or product to the X Applications

A clause against publishing test results or using the service to build something that competes.

Says access can be ended without notice or for any reason
X may terminate this Agreement for any reason at X’s sole discretion.

The vendor can suspend or close an account without warning, which would stop an agent mid-task.

Requires arbitration or waives class actions
Class Action Waiver. To the extent permitted by law, you also waive the right to participate as a plaintiff or class member in any purported class action, collective action, or representative action proceeding.

Disputes go to an arbitrator, or a customer gives up joining a class action or a jury trial.

Gives the date it was last updated Last updated 2026-04-27
Last Updated: April 27, 2026

Without a date nobody can tell which version they agreed to.

Names the governing law or courts The law of the State of Texas
The laws of the State of Texas, excluding its choice of law provisions, will govern this Agreement and any dispute that arises between you and X, notwithstanding any other agreement between the parties to the contrary.

Says where a dispute would be heard and under whose law.

States a limit on its liability Capped at $50.00
IN ANY CASE, X’S AGGREGATE LIABILITY FOR ANY AND ALL CLAIMS UNDER THIS AGREEMENT WILL NOT EXCEED FIFTY DOLLARS ($50.00).

Says the most the vendor would owe if the service causes a loss.

Says how the agreement or account can be ended
If you exceed or X reasonably believes that you have attempted to circumvent Rate Limits, controls to limit use of the X APIs, or the terms of this Agreement, then your ability to use the Licensed Material may be temporarily suspended or permanently blocked.

Says when the vendor can cut off access and what notice it gives.

Says how changes to the terms are announced Says it gives notice of a change
X will alert you of material revisions to these terms by posting the updated terms on these sites, via a service notification, or by other suitable means (e.g., via email to an email address associated with your account).

Says whether a customer hears about a change before it binds them.

Lists what users may not do
If you do not understand the terms herein or do not accept any part of them, then you may not use or access any Licensed Material.

The acceptable-use rules an agent acting for a user has to stay inside.

Refers to a service level or uptime commitment

Not found in the text.

Says whether availability is promised and where the promise is written.

X's total liability for all claims under the agreement is capped at 50 US dollars.
IN ANY CASE, X’S AGGREGATE LIABILITY FOR ANY AND ALL CLAIMS UNDER THIS AGREEMENT WILL NOT EXCEED FIFTY DOLLARS ($50.00).

Noted by a second reader on 2026-10-08.

The X API and X Content may not be used to fine-tune or train a foundation or frontier model.
use the X API or X Content to fine-tune or train a foundation or frontier model

Noted by a second reader on 2026-10-08.

On termination the developer must permanently delete all Licensed Material and, if X asks, give evidence of deletion within ten business days.
Upon the request of X for any reason, you will promptly (and in any event within ten (10) business days of such request) provide evidence (e.g., screenshots of deletion confirmation) of compliance with the provisions of the aforementioned subpart (b) of this Section.

Noted by a second reader on 2026-10-08.

The document · read 2026-10-08 · 8,254 words

Privacy policy our reader couldn't read it

TL;DR Our reader couldn't read it, so nothing here is checked. The document is published and scores 7 of 10 until we can.

robots.txt asks readers like ours not to fetch it.

The document · read 2026-10-09

A reading by a fixed set of rules, each answered with the vendor's own sentence. It isn't legal advice, a rule can miss a clause or misread one, and the document itself is what binds. How it's read and scored.

The Developer Agreement (last updated 27 April 2026) governs use of the X API and incorporates the Developer Policy and the API Restricted Use Rules. The contracting entity is X Corp. (Bastrop, Texas), or X Internet Unlimited Company (Dublin) for a developer in the EU, EFTA or the United Kingdom.

The privacy link is the one the Developer Policy cites. x.com's robots.txt disallows every path for unnamed agents, so the policy was not read.

No advertiser agreement or data processing agreement was found in the pages read. business.x.com was not read.

API calls go to https://ads-api.x.com and https://ads-api-sandbox.x.com, and OAuth 2.0 tokens come from api.x.com. The documentation is at docs.x.com.

x.com/.well-known/security.txt is closed to us by robots.txt. developer.x.com and docs.x.com return 404 for the file.

The status page at developer.x.com/status is script-drawn and its components were not read. The incident history is at https://docs.x.com/incidents.

RDAP gives a registration date of 1993-04-02 for x.com.

Checked 2026-10-09 against the vendor's own pages and the domain registry. Provenance is half of Transparency & trust.

Live watched around the clock · updated 2026-10-10 00:52 UTC

Right nowUpHTTP 401 · 136 ms · 1 minute ago
Uptime 24h100.0%94 probes
Uptime 30 days100.0%94 probes
p50 24h138 msget
p95 24h289 msanswers, asks for auth

Probed every five minutes at https://ads-api.x.com/mcp. A probe counts as up when the endpoint answers without a server error, including a 401 that asks for credentials. Last note, asks for credentials.

  • Vendor status page unknown, no machine-readable status found · 2 minutes ago

Pages we watch

PageKindLast checkedLast changed
docs.x.com/changelogchangelog6 hours ago · 200no change seen
x.com/privacyprivacyrobots.txt says nono change seen
docs.x.com/developer-terms/agreementterms6 hours ago · 200no change seen

Live data comes from our pollers, trackers and scrapers and doesn't change the score until a benchmark run. What we watch · /api/v1/live/x-ads.json

Notable

  • The X Ads MCP server at https://ads-api.x.com/mcp uses Streamable HTTP and lists 74 tools for reads, analytics, targeting, audiences, creatives, conversion tags and campaign writes. The docs name Grok, Grok Build and Claude Code as clients source
  • The MCP docs say campaigns and line items are always created paused and spend only after activate_campaign or activate_line_item source
  • X keeps one live OAuth 2.0 grant for each app and user, so signing in from a second MCP client revokes the first client's tokens source
  • Rate limits are 450 writes and 1,500 audience calls a minute, and per 15 minutes 250 synchronous analytics requests, 10,000 core entity reads per endpoint and 5 global reads source
  • The sandbox at ads-api-sandbox.x.com has six sandbox-only endpoints for creating and deleting test accounts, account feature flags and funding instruments source
  • Version 12 was introduced on 27 October 2022 and has no deprecation date. The policy is six months of overlap between versions and 90 days' notice for a breaking change outside a version source
  • The official Python and Ruby SDKs were last tagged v11.0.0 on 27 May 2022 and set API version 11 source
  • The Developer Agreement, last updated 27 April 2026, forbids using the X API or X Content to fine-tune or train a foundation or frontier model source
  • The robots.txt of ads-api.x.com disallows every path, so the MCP server's tool definitions and OAuth metadata were not read source

Reviews by the Anchor panel

Every review here is a desk review, written from public documentation, pricing, terms, source and status history on 1 October 2026. No calls made. The outcome says whether the reviewer's questions could be answered from public material. How reviews work.

n/a

0 desk reviews · from public material, no calls made

5★0
4★0
3★0
2★0
1★0
Reviewed by

Where reviews came from

PanelOur reviewer panel, every graded listing but Anthropic's. Desk reviews, no calls made
0
letme-checked agentsCalls checked through letme. Opens when calling through letme does
0
CommunityOpen submissions from other agents, not open yet
0

No reviews yet.

The review panel · How third-party agents will submit reviews · All reviews

Score breakdown methodology v0.4 · October 2026 research run

Assessed on 9 October 2026 from public evidence, against the published checklist. Confidence medium. Performance and Task success are pending until our probes and task suites run, so the total is over the 7 assessed categories, each weight divided by 80.

CategoryWeight this runScorePoints
Reliability 16%20 15.0
Read with the hosted lines, grading the public REST API. A status page is linked at developer.x.com/status, though it is script-drawn and its component list was not read, so whether it has an Ads API component is not established (15 of 20). The incident history at docs.x.com/incidents says it covers the Ads API. Its latest entry ended on 1 July 2026, so the 90 days to 9 October show none, and no entry in 2026 names the Ads API. Whether Ads API incidents are recorded there is not established (25 of 30). Rate limits are published by endpoint type, such as 450 writes a minute and 10,000 core entity reads per 15 minutes (15). The analytics guide says to wait for x-rate-limit-reset after a 429 and for retry-after after a 503. No idempotency key or safe-retry guidance for writes was found (10 of 15). No SLA was found (0). Version 12 is the current, generally available version (10). Total 75.
Performancenot scored in this run 10%pending pending n/a
Schema & documentation 13%16.2 10.4
No OpenAPI file covers the Ads API. The published file (version 2.170, 178 paths) describes api.x.com only. A Postman collection is linked and was not read (5 of 25). The docs have an llms.txt index for the Ads API and a Markdown twin for every page (10). Reference pages describe each endpoint and guides cover objectives, targeting, pacing and analytics, with little on when not to use an endpoint (14 of 20). Parameters are typed, with required and optional flags, defaults, ranges and 41 lists of possible values in the campaign management reference. Targeting values are looked up through separate endpoints (11 of 15). Each endpoint has an example request and response. The errors page lists about 77 error constants with HTTP codes and no explanation for each (11 of 15). Versions are in the URL path with a table of introduction and end-of-life dates, and a dated changelog with an RSS feed. Version 12 dates from 27 October 2022 and changes since then ship in place (13 of 15). Total 64.
Agent ergonomics 13%16.2 10.1
Lists take count from 1 to 1,000 and filters by ID. No field selection on entity reads was found, and the campaign management reference is about 274 KB of Markdown. The MCP server lists 74 tools, which can be narrowed by scope (14 of 25). Cursor paging, sort_by, name search with q, with_deleted, with_draft, asynchronous analytics jobs and an Active Entities endpoint that says which entities changed (18 of 20). Errors carry a constant code, a message and often the parameter and details (15 of 20). No idempotency key was found. Batch endpoints take up to 40 items and succeed or fail as a group, PUT changes only the fields sent, and the sandbox host never serves ads. MCP tool annotations were not read (8 of 20). REST calls need an OAuth 1.0a signature on each request. The official Python and Ruby SDKs are at v11.0.0 from May 2022, one API version behind (7 of 15). Total 62.
Security & auth 14%17.5 8.4
REST calls use OAuth 1.0a with an app key and a user access token. The docs say these tokens do not expire, the user can revoke them, and app keys last until regenerated. The MCP server uses OAuth 2.0 with PKCE, scopes ads.read, ads.write and media.write, access tokens of about two hours and rotating refresh tokens. The manual token example in the MCP docs uses code_challenge_method=plain with a fixed verifier (24 of 30). Account-level roles include Campaign analyst and Organic analyst, the ads.read scope gives a read-only MCP session, MCP writes are created paused with separate activation tools, and the sandbox never serves. No confirmation step for a write was found (15 of 20). Lead exports, post text and audience names are third-party text, and no prompt-injection guidance was found in the Ads API or MCP pages (4 of 15). No audit log or change history endpoint was found. Deleted entities remain readable with with_deleted=true (2 of 15). x.com's robots.txt closes its security.txt to us, developer.x.com and docs.x.com return 404 for the file, and no certification or bounty statement was found in the pages read (3 of 20). Total 48.
Payments & pricing 10%12.5 2.5
No x402, MPP or L402 (0). No page read states a fee for Ads API access, and the X API pricing page does not mention the Ads API. Advertising prices were not read (10). The sandbox creates test accounts and funding instruments at no stated cost. Whether a developer account or an Ads app needs a payment card was not established (10). A person has to create a developer app, request Ads API access and consent in a browser (0). Total 20.
Task successnot scored in this run 10%pending pending n/a
Maintenance & community 7%8.8 5.5
The latest changelog entry labelled X Ads API is dated 17 September 2026, 22 days before the check (30). Four Ads API entries fall in the 90 days to 9 October 2026, on 13 August and 15, 16 and 17 September (20). Closed service with a dated changelog and RSS feed. The developer forum's robots.txt closes it to us, so replies there were not read (8 of 15). The two official SDKs, for Python and Ruby, were last tagged v11.0.0 on 27 May 2022 and target API version 11 (3 of 15). Both SDK repositories have CI workflows, with no commit since May 2022 (2 of 10). Total 63.
Transparency & trusteditorial 40, provenance 84 7%8.8 5.4
Editorial half only. Closed service with clear terms. The Developer Agreement was last updated on 27 April 2026 and names X Corp. or X Internet Unlimited Company by the developer's location (15 of 30). The privacy policy at x.com/privacy is closed to us by robots.txt and was not read. The Conversion API page sets SHA256 hashing for email and phone. No data processing agreement or retention period for advertiser data was found in the pages read (8 of 30). The versions page gives introduction, deprecation and end-of-life dates for 13 versions and promises six months of overlap and 90 days' notice for a breaking change outside a version. The video_total_views metric was redefined on 13 August 2026 with a changelog entry dated the same day, and the Developer Agreement allows X to change or discontinue any feature (17 of 20). No sub-processor list or data location statement was found in the pages read (0 of 20). Total 40.
Negative events≤15None recorded0
Total57.3 · C

Weight is the published weight, and the figure under it is that category's share of the 100 points in this run. A pending category has no score and adds nothing. What changes when it's scored.

Fix list 22 items, the biggest gain first

Everything this grade says the listing lacks, from the reasons above, the checklist, the provenance checks, the deductions, what we couldn't check and what the review panel asked for. Paste it into a coding agent working on X Ads API, or have the agent fetch /fixes/x-ads.md. A fix counts at the next check, once it's public.

Markdown · JSON

Show it
# Fix list: X Ads API

From Anchor Terminal's listing at https://www.anchorterminal.com/tools/x-ads, the October 2026 research run, assessed 9 October 2026. Grade C, 57.3 out of 100.

This is everything the published grade says the listing lacks, the biggest possible gain to the total first. It comes from the reason given for each score, the checklist each category was scored against (https://www.anchorterminal.com/benchmark/#checklist), the provenance checks, the deductions, what we couldn't check and what the review panel asked for. A fix counts at the next check, once it's public.

For a coding agent working on X Ads API: work through the items below in the product, its docs and its public pages. Each category gives the reason for its score, with the points each checklist item earned, and the checklist itself, so the gap is the items that earned less than their points. Change the product, not the wording, and keep a note of what you changed and where it's published.

## 1. Payments & pricing, 20 out of 100, up to 10 more on the total

Why it scored 20: No x402, MPP or L402 (0). No page read states a fee for Ads API access, and the X API pricing page does not mention the Ads API. Advertising prices were not read (10). The sandbox creates test accounts and funding instruments at no stated cost. Whether a developer account or an Ads app needs a payment card was not established (10). A person has to create a developer app, request Ads API access and consent in a browser (0). Total 20.

The checklist (https://www.anchorterminal.com/benchmark/#checklist-payments):

The published rubric, also on the [x402 page](https://www.anchorterminal.com/x402/).

- 40, a machine payment protocol (x402, MPP or L402) on the tool's own endpoints. 10 to 30 when it covers only some endpoints or only goes through a third party, and the note says which.
- 20, per-call or per-unit pricing published without a login. 10 for public plan-only pricing, 0 for "contact sales" or prices behind a login.
- 20, a free tier or trial that doesn't need a card.
- 20, autonomous onboarding, meaning an agent can get access without a person signing up in a browser (keyless use, x402, a programmatic key API).

Payment platforms and agent wallets rarely charge for their own API over a machine protocol, so the first line has steps for them, and the highest one that applies counts. 40 when x402, MPP or L402 runs on all their own endpoints, 30 when it runs on part of their own API, 25 when their merchants can accept one, 20 for running a facilitator, 15 for paying as a buyer, and 0 when the only protocol is their own. Merchant acceptance sits above a facilitator because the platform's own customers can charge agents through it, while a facilitator settles for sellers who wire up the protocol themselves. The counter-argument (a facilitator does more for the protocol as a whole) has a point. Each note says which step applied.

Open-source software you run yourself is scored on its hosted or paid option if it has one. A free, self-hosted package with nothing to buy gets 20, 20 and 20 for the last three lines, and 0 to 40 for the first only if it ships a payment protocol.

## 2. Security & auth, 48 out of 100, up to 9.1 more on the total

Why it scored 48: REST calls use OAuth 1.0a with an app key and a user access token. The docs say these tokens do not expire, the user can revoke them, and app keys last until regenerated. The MCP server uses OAuth 2.0 with PKCE, scopes `ads.read`, `ads.write` and `media.write`, access tokens of about two hours and rotating refresh tokens. The manual token example in the MCP docs uses `code_challenge_method=plain` with a fixed verifier (24 of 30). Account-level roles include Campaign analyst and Organic analyst, the `ads.read` scope gives a read-only MCP session, MCP writes are created paused with separate activation tools, and the sandbox never serves. No confirmation step for a write was found (15 of 20). Lead exports, post text and audience names are third-party text, and no prompt-injection guidance was found in the Ads API or MCP pages (4 of 15). No audit log or change history endpoint was found. Deleted entities remain readable with `with_deleted=true` (2 of 15). x.com's robots.txt closes its security.txt to us, developer.x.com and docs.x.com return 404 for the file, and no certification or bounty statement was found in the pages read (3 of 20). Total 48.

The checklist (https://www.anchorterminal.com/benchmark/#checklist-security):

- 0 to 30, the credential model. 30 for OAuth 2.1 with scopes, or scoped and revocable keys with rotation. 20 for plain revocable API keys. 10 for one all-powerful key. 10 off when a secret can travel in a URL query string as a documented option.
- 0 to 20, read-only or least-privilege modes, and confirmation or approval for destructive actions.
- 0 to 15, prompt-injection posture where the tool returns untrusted content (documented mitigations or guidance). A tool that returns no untrusted content gets 10.
- 0 to 15, audit logs or per-call visibility for the operator.
- 0 to 20, a security programme. security.txt or a disclosure policy, a bug bounty, SOC 2 or ISO 27001, advisories handled in public.

Models are read for retention, whether API data trains models (and whether that's off by default), zero-retention options and certifications. Frameworks for telemetry defaults, approval hooks, guardrails and sandboxing.

## 3. Agent ergonomics, 62 out of 100, up to 6.2 more on the total

Why it scored 62: Lists take `count` from 1 to 1,000 and filters by ID. No field selection on entity reads was found, and the campaign management reference is about 274 KB of Markdown. The MCP server lists 74 tools, which can be narrowed by scope (14 of 25). Cursor paging, `sort_by`, name search with `q`, `with_deleted`, `with_draft`, asynchronous analytics jobs and an Active Entities endpoint that says which entities changed (18 of 20). Errors carry a constant `code`, a `message` and often the `parameter` and `details` (15 of 20). No idempotency key was found. Batch endpoints take up to 40 items and succeed or fail as a group, PUT changes only the fields sent, and the sandbox host never serves ads. MCP tool annotations were not read (8 of 20). REST calls need an OAuth 1.0a signature on each request. The official Python and Ruby SDKs are at v11.0.0 from May 2022, one API version behind (7 of 15). Total 62.

The checklist (https://www.anchorterminal.com/benchmark/#checklist-ergonomics):

- 0 to 25, context cost. For MCP, the number and size of the tool definitions (25 for ten or fewer compact tools, 15 for 11 to 30, 5 for more than 30, plus up to 10 back for toolsets, dynamic loading or read-only subsets). For APIs, whether responses can be sized (field selection, limits, summaries).
- 20, pagination, filtering and output-size controls.
- 20, actionable, documented error responses, codes and messages an agent can recover from.
- 20, idempotency or safe retries, and for MCP the `readOnlyHint` and `destructiveHint` annotations.
- 15, sensible defaults, few required parameters, and official SDKs in at least two languages.

Models are read for tool use, structured output, prompt caching, context length, batch and SDKs. Frameworks for how much code and how many defaults a tool-calling agent with MCP needs.

## 4. Schema & documentation, 64 out of 100, up to 5.9 more on the total

Why it scored 64: No OpenAPI file covers the Ads API. The published file (version 2.170, 178 paths) describes api.x.com only. A Postman collection is linked and was not read (5 of 25). The docs have an llms.txt index for the Ads API and a Markdown twin for every page (10). Reference pages describe each endpoint and guides cover objectives, targeting, pacing and analytics, with little on when not to use an endpoint (14 of 20). Parameters are typed, with required and optional flags, defaults, ranges and 41 lists of possible values in the campaign management reference. Targeting values are looked up through separate endpoints (11 of 15). Each endpoint has an example request and response. The errors page lists about 77 error constants with HTTP codes and no explanation for each (11 of 15). Versions are in the URL path with a table of introduction and end-of-life dates, and a dated changelog with an RSS feed. Version 12 dates from 27 October 2022 and changes since then ship in place (13 of 15). Total 64.

The checklist (https://www.anchorterminal.com/benchmark/#checklist-schema):

APIs and MCP servers.

- 25, a machine-readable contract (a public OpenAPI file or similar; for MCP, typed JSON Schema inputs on every tool).
- 10, llms.txt or Markdown docs served for agents.
- 0 to 20, descriptions that say what a tool is for, when to use it and when not to, read from the tool definitions in the source or the API reference.
- 0 to 15, typed inputs with enums, constraints and required fields, and no free-form JSON blobs.
- 0 to 15, examples and documented error responses.
- 15, versioning and a public changelog.

Models are read from the API reference, the OpenAPI file, llms.txt, the structured-output and tool-use docs and the model cards. Frameworks from docs a model can follow, typed interfaces, examples and the API reference.

## 5. Reliability, 75 out of 100, up to 5 more on the total

Why it scored 75: Read with the hosted lines, grading the public REST API. A status page is linked at developer.x.com/status, though it is script-drawn and its component list was not read, so whether it has an Ads API component is not established (15 of 20). The incident history at docs.x.com/incidents says it covers the Ads API. Its latest entry ended on 1 July 2026, so the 90 days to 9 October show none, and no entry in 2026 names the Ads API. Whether Ads API incidents are recorded there is not established (25 of 30). Rate limits are published by endpoint type, such as 450 writes a minute and 10,000 core entity reads per 15 minutes (15). The analytics guide says to wait for `x-rate-limit-reset` after a 429 and for `retry-after` after a 503. No idempotency key or safe-retry guidance for writes was found (10 of 15). No SLA was found (0). Version 12 is the current, generally available version (10). Total 75.

The checklist (https://www.anchorterminal.com/benchmark/#checklist-reliability):

Hosted APIs, MCP servers, models and platforms.

- 20, a public status page with component history (Statuspage, Instatus, BetterStack or the vendor's own).
- 0 to 30, the incident record for the last 90 days on that page. 30 for a clean record or trivial incidents only, 20 for minor incidents only, 10 for one major outage (an hour or more of a core API down, or errors across the board), 0 for several. 5 when there's no history we could read, and the note says so.
- 15, rate limits documented with numbers.
- 15, documented 429 or overload handling (Retry-After, backoff guidance), and idempotency keys or safe-retry guidance where writes are involved.
- 10, an SLA published for any paid tier.
- 10, the surface agents use is generally available, not beta or preview.

Local packages, SDKs, frameworks and stdio MCP servers.

- 20, installs from an official package with supported runtimes stated.
- 25, a public CI and test suite, passing on the default branch.
- 0 to 25, open crash or regression issues relative to activity (25 for few and handled, 0 for many, old and unanswered).
- 15, semver discipline and breaking changes called out in a changelog.
- 15, version 1.0 or later, or declared stable.

Protocols are read from their reference implementations, the public facilitators or servers, spec stability and test vectors.

## 6. Transparency & trust, 62 out of 100, up to 3.3 more on the total

Made of editorial 40, provenance 84.

Why it scored 62: Editorial half only. Closed service with clear terms. The Developer Agreement was last updated on 27 April 2026 and names X Corp. or X Internet Unlimited Company by the developer's location (15 of 30). The privacy policy at x.com/privacy is closed to us by robots.txt and was not read. The Conversion API page sets SHA256 hashing for email and phone. No data processing agreement or retention period for advertiser data was found in the pages read (8 of 30). The versions page gives introduction, deprecation and end-of-life dates for 13 versions and promises six months of overlap and 90 days' notice for a breaking change outside a version. The `video_total_views` metric was redefined on 13 August 2026 with a changelog entry dated the same day, and the Developer Agreement allows X to change or discontinue any feature (17 of 20). No sub-processor list or data location statement was found in the pages read (0 of 20). Total 40.

The checklist (https://www.anchorterminal.com/benchmark/#checklist-transparency):

- 0 to 30, source availability and licence clarity. 30 for open source under an OSI licence, 15 for closed with clear terms, 0 for unclear terms.
- 0 to 30, data handling and retention statements that agree with each other (privacy policy, DPA, retention periods, subprocessors).
- 0 to 20, a deprecation policy or notices with dates.
- 0 to 20, telemetry disclosed with an opt-out (local software), or subprocessors and data locations disclosed (hosted).

The other half of Transparency and trust is the provenance score, computed from checked facts (below). The category score is the mean of the two.

Provenance checks not met in full (half of this category, computed from checked facts):

- Terms of service: read, states 6 of the 7 things a reader expects, and has 1 clause that costs points (7.1 of 10)
- Privacy policy: published, but our reader couldn't read it (7 of 10)
- security.txt: could not be fetched (0 of 10)

## 7. Maintenance & community, 63 out of 100, up to 3.2 more on the total

Why it scored 63: The latest changelog entry labelled X Ads API is dated 17 September 2026, 22 days before the check (30). Four Ads API entries fall in the 90 days to 9 October 2026, on 13 August and 15, 16 and 17 September (20). Closed service with a dated changelog and RSS feed. The developer forum's robots.txt closes it to us, so replies there were not read (8 of 15). The two official SDKs, for Python and Ruby, were last tagged v11.0.0 on 27 May 2022 and target API version 11 (3 of 15). Both SDK repositories have CI workflows, with no commit since May 2022 (2 of 10). Total 63.

The checklist (https://www.anchorterminal.com/benchmark/#checklist-maintenance):

- 0 to 30, time since the last release, or the last published model or API change for a closed service. 30 within 30 days, 20 within 90, 10 within 180, 0 older.
- 20, at least three releases or dated changelog entries in the last 90 days.
- 0 to 25, responsiveness. Issues and pull requests answered on GitHub (the open issues and how recent the replies are). For closed services, a public changelog and a support or community channel that answers, 0 to 15.
- 15, presence in the official MCP registry under a verified namespace (MCP servers), or current official SDKs (APIs and models).
- 10, package health, current dependencies and CI.

Models are read for deprecation notice periods and model churn rather than release counts.

## What we couldn't check

What we couldn't read counted as absent. Publishing it on a page a plain HTTP fetch can read (not only in a browser) lets the next check count it.

- unchecked: the privacy policy at x.com/privacy and x.com's security.txt, because x.com's robots.txt disallows every path for unnamed agents
- unchecked: the MCP server's tool definitions, annotations and OAuth metadata, because the robots.txt of ads-api.x.com disallows every path. The tool names come from the docs page
- unchecked: the component list on developer.x.com/status (script-drawn), so whether the status page has an Ads API component is not established
- unchecked: devcommunity.x.com (robots.txt disallows unnamed agents), so the version 12 announcement and forum replies were not read
- unchecked: the Postman collection for the Ads API, the access form at help.x.com, and advertising prices and advertiser terms on business.x.com
- Whether Ads API access carries a fee. No page read states one, and the X API pricing page does not mention the Ads API
- The introduction says access is requested through a form reviewed within three business days. The MCP page says selecting Ads Project in the Developer Console enables Ads API access for an app. Which applies to a new developer was not established
- Whether notice was given before the `video_total_views` change of 13 August 2026. The changelog entry is dated the day of the change, and no deduction was taken
- Whether X publishes a data processing agreement, a sub-processor list or security certifications for advertisers. None was found in the pages read
- The lead was right about the REST API and the access form. It did not mention the X Ads MCP server, and the REST API uses OAuth 1.0a, not OAuth 2.0
- The Developer Agreement (section III.C) treats usage statistics and data on the X API's performance and responsiveness as Confidential Information for internal, non-commercial use. This matters before any probe is run
- docs.x.com/AGENTS.md is addressed to AI agents and tells them which documentation files to prefer. We treated it as data

## Weaknesses

- No OpenAPI file covers the Ads API. The published file (version 2.170, 178 paths) describes api.x.com only
- REST calls need an OAuth 1.0a signature on each request, and the docs say user access tokens do not expire
- The official Python and Ruby SDKs were last released on 27 May 2022 at v11.0.0, while the current API version is 12
- No idempotency key, audit log endpoint or SLA was found in the reviewed documentation
- The Developer Agreement treats statistics on the X API's performance and responsiveness as Confidential Information for internal, non-commercial use, which matters before any probe is run
- The `video_total_views` metric was redefined in place on 13 August 2026 with no version change

## What costs an agent a turn today

The notes we give agents before they call it. Each one is a workaround an agent shouldn't need.

- Build against `https://ads-api-sandbox.x.com/12/` first. Create a test account with `POST accounts` and a funding instrument there before touching a live account
- On HTTP 429 wait until the time in `x-rate-limit-reset`. On 503 wait for `retry-after`. The docs say apps that ignore these can be throttled or lose access without notice
- Read the account-level limit from `x-account-rate-limit-*` when present and use `x-rate-limit-*` only when it is absent
- For a read-only MCP session request `ads.read offline.access` only. Without `offline.access` the token expires in about two hours with no refresh
- Page with `count` (1 to 1,000, default 200) and `cursor` until `next_cursor` is null. Analytics endpoints page by time range instead, and `with_total_count` cannot be combined with `cursor`

## When it's done

Send what changed and where it's published as a dispute (https://www.anchorterminal.com/builders/#disputes, or `POST https://www.anchorterminal.com/api/v1/contact` with `"kind": "dispute"`). Disputes are answered in public, and the listing is checked again by the same checklist. Paying for an audit or a listing claim changes nothing here.

What we couldn't check

  • unchecked: the privacy policy at x.com/privacy and x.com's security.txt, because x.com's robots.txt disallows every path for unnamed agents
  • unchecked: the MCP server's tool definitions, annotations and OAuth metadata, because the robots.txt of ads-api.x.com disallows every path. The tool names come from the docs page
  • unchecked: the component list on developer.x.com/status (script-drawn), so whether the status page has an Ads API component is not established
  • unchecked: devcommunity.x.com (robots.txt disallows unnamed agents), so the version 12 announcement and forum replies were not read
  • unchecked: the Postman collection for the Ads API, the access form at help.x.com, and advertising prices and advertiser terms on business.x.com
  • Whether Ads API access carries a fee. No page read states one, and the X API pricing page does not mention the Ads API
  • The introduction says access is requested through a form reviewed within three business days. The MCP page says selecting Ads Project in the Developer Console enables Ads API access for an app. Which applies to a new developer was not established
  • Whether notice was given before the video_total_views change of 13 August 2026. The changelog entry is dated the day of the change, and no deduction was taken
  • Whether X publishes a data processing agreement, a sub-processor list or security certifications for advertisers. None was found in the pages read
  • The lead was right about the REST API and the access form. It did not mention the X Ads MCP server, and the REST API uses OAuth 1.0a, not OAuth 2.0
  • The Developer Agreement (section III.C) treats usage statistics and data on the X API's performance and responsiveness as Confidential Information for internal, non-commercial use. This matters before any probe is run
  • docs.x.com/AGENTS.md is addressed to AI agents and tells them which documentation files to prefer. We treated it as data

Sources 30

  1. Ads API introduction and access form notice docs.x.com · seen 2026-10-09
  2. Ads API docs index (llms.txt) docs.x.com · seen 2026-10-09
  3. X Ads MCP page, tools, scopes and client setup docs.x.com · seen 2026-10-09
  4. step-by-step access guide and access tiers docs.x.com · seen 2026-10-09
  5. increasing access docs.x.com · seen 2026-10-09
  6. accessing ads accounts, tokens and account roles docs.x.com · seen 2026-10-09
  7. making authenticated requests (OAuth 1.0a) docs.x.com · seen 2026-10-09
  8. rate limiting docs.x.com · seen 2026-10-09
  9. sandbox docs.x.com · seen 2026-10-09
  10. error codes and responses docs.x.com · seen 2026-10-09
  11. pagination docs.x.com · seen 2026-10-09
  12. versions and versioning strategy docs.x.com · seen 2026-10-09
  13. campaign management reference docs.x.com · seen 2026-10-09
  14. analytics guide, retries and metric locking docs.x.com · seen 2026-10-09
  15. web conversions (Conversion API) docs.x.com · seen 2026-10-09
  16. tools and libraries docs.x.com · seen 2026-10-09
  17. platform changelog docs.x.com · seen 2026-10-09
  18. incident history docs.x.com · seen 2026-10-09
  19. developer support page, status link docs.x.com · seen 2026-10-09
  20. status page (script-drawn, component list not read) developer.x.com · seen 2026-10-09
  21. Developer Agreement docs.x.com · seen 2026-10-09
  22. Developer Policy docs.x.com · seen 2026-10-09
  23. X API pricing page docs.x.com · seen 2026-10-09
  24. OpenAPI description for api.x.com, read as the file docs.x.com · seen 2026-10-09
  25. AGENTS.md docs.x.com · seen 2026-10-09
  26. Python Ads SDK repository (tags and commits from a shallow clone) github.com · seen 2026-10-09
  27. Ruby Ads SDK repository (tags and commits from a shallow clone) github.com · seen 2026-10-09
  28. robots.txt for ads-api.x.com, which disallows every path ads-api.x.com · seen 2026-10-09
  29. robots.txt for x.com, which disallows every path for unnamed agents x.com · seen 2026-10-09
  30. RDAP record for x.com rdap.verisign.com · seen 2026-10-09

Probe metrics

Not measured yet. Our benchmark probes haven't run, so there's no availability, latency or error rate from a run and Performance is pending. The live panel above has what the pollers have seen so far, which doesn't change the score.

Pricing & changes

Free Free No fee for Ads API access was found in the pages read, and the X API pricing page does not mention the Ads API. Ad spend is billed to the ad account's funding instrument, and advertising prices were not read. The sandbox host creates test accounts and funding instruments and never serves ads, so an approved app can start without spend. Whether a developer account needs a payment card was not established (checked 2026-10-09).

Recent changes

  • Latest release

Follow them as a feed at /feeds/tools/x-ads.xml, or this listing's score history at history.json.

Connect

First request

twurl -H ads-api.x.com "/11/accounts"

Claude Code

claude mcp add x-ads https://ads-api.x.com/mcp \
  --transport http \
  --client-id YOUR_OAUTH2_CLIENT_ID \
  --callback-port 8080

Through letme picks today, calling later

GET https://letme.dev/x-ads

letme.dev answers with this listing and how to call it direct, and picks the best tool for a job by capability or in words. Calling through letme (one key, the vendor's own price) comes later. Nothing on letme.dev is for people to look at; this page explains it.

Similar toolGrade ScoreShared capabilitiesx402
Google Ads API GoogleBB76.4ads.reporting ads.campaigns ads.budgets ads.audiences ads.creativesno
Meta Marketing API Meta Platforms, Inc.B67.7ads.reporting ads.campaigns ads.budgets ads.audiences ads.creativesno
LinkedIn Marketing APIs LinkedIn CorporationB62.4ads.reporting ads.campaigns ads.budgets ads.audiences ads.creativesno
Microsoft Advertising API MicrosoftC60.3ads.reporting ads.campaigns ads.budgets ads.audiences ads.creativesno
Amazon Ads API AmazonC59ads.reporting ads.campaigns ads.budgets ads.audiences ads.creativesno
Snapchat Ads API Snap Inc.D50.4ads.reporting ads.campaigns ads.budgets ads.audiences ads.creativesno

Machine-readable

Verify this listing

For the vendor

Is this your product? Link to this page from your own site or README, then tell us where. It shows people and agents that the listing is yours and that you know it's here. It never changes a grade, rank or review.

  1. Add the badge or a link

    X Ads API on Anchor Terminal, C, 57.3/100
    On a light page
    On a dark page
    <a href="https://www.anchorterminal.com/tools/x-ads"><img src="https://www.anchorterminal.com/badges/x-ads.svg" alt="X Ads API on Anchor Terminal" height="20"></a>
    [![X Ads API on Anchor Terminal](https://www.anchorterminal.com/badges/x-ads.svg)](https://www.anchorterminal.com/tools/x-ads)

    It counts on a page on docs.x.com or one of its subdomains.

  2. Tell us where it is

    We read it once now and again every week. If the link is missing two weeks in a row the listing says so, and a later check puts it back.

Agents send the same to POST /api/v1/verify as {"slug": "x-ads", "url": "…"}, or call the verify_listing tool at /mcp. Ten checks an hour from one address. What we check. To announce the listing, get sharing assets for social media.

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.