Head to head · Ad reporting · October 2026 research run

LinkedIn Marketing APIs vs X Ads API

LinkedIn Marketing APIs scores 62.4 (B) on agent readiness against X Ads API's 57.3 (C), and leads in 6 of 7 scored categories. X Ads API leads on reliability. Both do ad reporting.

Best advertising platform APIs for AI agents · All 28 advertising comparisons

Which one, for what

LinkedIn Marketing APIs B

Good for An agent that reports on and manages LinkedIn campaigns for accounts its operator administers, especially read-only reporting, which has no account limit on Development tier.

Ahead on

  • Security & auth, 66 against 48
  • Payments & pricing, 30 against 20
  • Transparency & trust, 84 against 62

Watch for

Standard rate limits are not published. An app sees its limit in the Developer Portal only after calling the endpoint

X Ads API C

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.

Ahead on

  • Reliability, 75 against 66

Also in its favour

  • A hosted endpoint, with nothing to install

Watch for

No OpenAPI file covers the Ads API. The published file (version 2.170, 178 paths) describes api.x.com only

Score by category

CategoryWeight this runLinkedIn Marketing APIsX Ads APIEdge
Reliability16%206675X Ads API +9
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.26664LinkedIn Marketing APIs +2
Agent ergonomics13%16.26362LinkedIn Marketing APIs +1
Security & auth14%17.56648LinkedIn Marketing APIs +18
Payments & pricing10%12.53020LinkedIn Marketing APIs +10
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.86463LinkedIn Marketing APIs +1
Transparency & trust7%8.88462LinkedIn Marketing APIs +22
Negative events≤1500
Total62.4 · B57.3 · C

Facts side by side

FactLinkedIn Marketing APIsX Ads API
KindHTTP APIHTTP API
VendorLinkedIn CorporationX Corp.
Hosted endpointno (local only)https://ads-api.x.com/mcp
TransportsHTTPHTTP
AuthOAuthOAuth
PricingFreeFree
x402nono
LicenceProprietary service under the LinkedIn API terms of use and the Marketing API terms. The beta Python and JavaScript clients carry LinkedIn's API development software licenceProprietary service under the X Developer Agreement and its incorporated Developer Policy
Read-only variant documentedyesyes
llms.txtnoyes
Last release2026-09-162026-09-17
Terms last updatedcouldn't be read2026-04-27
Privacy policy last updatedcouldn't be readcouldn't be read
Customer content may train modelscouldn't be readnot found in the text
Terms restrict automated accesscouldn't be readnot found in the text
Terms restrict benchmarkingcouldn't be readyes
Terms or service can change without noticecouldn't be readnot found in the text
Arbitration or class-action waivercouldn't be readyes
Popularity25k npm/wk, 386k PyPI/wknone

Verdicts

LinkedIn Marketing APIs

Monthly API versions are each supported for at least a year, with dated sunsets and a changelog, and a test ad account lets an agent create campaigns that are never served or billed. Access needs LinkedIn's approval and a member's OAuth consent, standard rate limits are not published, and no OpenAPI specification was found.

X Ads API

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.

Before you call either

LinkedIn Marketing APIs

  1. Send Linkedin-Version: YYYYMM and X-Restli-Protocol-Version: 2.0.0 on every call. A missing or sunset version returns an error (426 for a deprecated one)
  2. Create one test ad account with "test": true and build there first. Its creatives are auto-rejected and never billed, and it returns no reporting data
  3. Create campaigns as DRAFT or PAUSED and check servingStatuses before activating. Some validation is postponed until activation
  4. Pass fields= on adAnalytics. Responses stop at 15,000 elements and the endpoint throttles at 45 million metric values per 5 minutes
  5. On Development tier, map each ad account to the app in the Developer Portal. Edits are limited to five accounts

X Ads API

  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

Questions

Which is better for AI agents, LinkedIn Marketing APIs or X Ads API?

LinkedIn Marketing APIs scores 62.4 (B) on agent readiness against X Ads API's 57.3 (C), and leads in 6 of 7 scored categories. X Ads API leads on reliability.

Do LinkedIn Marketing APIs and X Ads API need an API key?

Both use an OAuth sign-in.

Can an agent call LinkedIn Marketing APIs and X Ads API without installing anything?

No hosted endpoint is listed for LinkedIn Marketing APIs. X Ads API has a hosted endpoint at https://ads-api.x.com/mcp.

Other comparisons with LinkedIn Marketing APIs or X Ads API

Machine-readable

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.