Introducing the Instagram APIRead more →

TikTok Ad Library Ad API. Send an ad link or ID.

Targeting, reach by country and takedowns. We handle the proxies, blocks and platform changes.

TikTok Ad Library Ad API at a glance

Returns one ad from TikTok's public ad library, which holds ads shown in Europe, from its library link or ad ID. You get the advertiser and its TikTok account, who paid, the text, media and landing page, the days it ran, reach by country, age and gender, its topic and objective, and any takedown with TikTok's reason.

GET /v1/tiktok/ad

Read the API reference
  • 1 credit per request, $0.75–$1.97 per 1,000 requests
  • 20 typed fields null when unknown
  • url is all it needs, e.g. https://library.tiktok.com/ads/detail/?ad_id=1874500065342865
  • 100 credits free when you sign up, no card, so you can build before you spend

Send one request. Get 20 fields back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
url = https://library.tiktok.com/ads/detail/?ad_id=1874500065342865
GET /v1/tiktok/adTry in
const params = new URLSearchParams({
  url: "https://library.tiktok.com/ads/detail/?ad_id=1874500065342865",
});
const res = await fetch(`https://socialtap.dev/v1/tiktok/ad?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/tiktok/adLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 4 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field TikTok Ad Library doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    The ad's TikTok Ad Library link (library.tiktok.com/ads/detail/?ad_id=…) or its ad ID.

  • Write one parser

    TikTok Ad Library, Facebook Ad Library, Google Ads Transparency Center and LinkedIn Ad Library answer in these fields, so the code that reads one reads them all.

platformstring
Library owner's platform ID (facebook for Meta's library, tiktok, google, linkedin).
idstring
Library ad ID (string).
urlstring
Public library page of the ad.
advertiserobject
The advertising page, business or account.
paid_bystring
Disclosed payer ("Paid for by").
is_activeboolean
True while the ad is running.
first_shown_atstring
First delivery, RFC 3339 UTC (often date-only: see approximate_fields).
last_shown_atstring
Last delivery, RFC 3339 UTC; null while active.

What teams build with the TikTok Ad Library Ad API.

  • See whom a competitor's TikTok ad targets

  • Check why TikTok took an ad down

  • Add targeting and reach to search results

Good to know before you build.

  • The library holds only ads shown in the EU, EEA, Switzerland or UK, and shows no spend or impressions: reach counts unique users.
  • Reach figures are TikTok's rounded ranges.
  • is_active is null because the ad page shows no status, and last_shown_at says when the ad last ran.
  • Takedown reasons are in English, or in German when TikTok gives them only in German.

1 credit per request. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful requestPer 1,000 requests
Platform API api1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the TikTok Ad Library Ad API.

More in the API reference.

How much does the TikTok Ad Library Ad API cost?
A request costs 1 credit. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.

Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 218 endpoints
Start for free Read the docs