Introducing the Instagram APIRead more →

TikTok Ad Library Search API. Ads matching your search.

Ads by keyword or advertiser, with reach. We handle the proxies, blocks and platform changes.

TikTok Ad Library Search API at a glance

Searches TikTok's public ad library, which holds ads shown in Europe, by keyword, exact phrase or advertiser, a page at a time. Each ad has its advertiser, text, media, the days it ran, reach, topic and any takedown. Filter by country, active or inactive and date, and sort by relevance, newest, oldest or popularity.

GET /v1/tiktok/search_ads

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 20 typed fields null when unknown
  • 12 ads per page, relevance (keywords) or newest
  • query is all it needs, e.g. coffee

Send one request. Get up to 12 ads 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
query = coffee
GET /v1/tiktok/search_adsTry in
const params = new URLSearchParams({
  query: "coffee",
});
const res = await fetch(`https://socialtap.dev/v1/tiktok/search_ads?${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, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/tiktok/search_adsLong 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

    Keywords, a "quoted phrase", or (search_by=advertiser) an advertiser's name.

  • 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 Search API.

  • Monitor competitors' TikTok ads

  • List an advertiser's ads in Europe

  • Find ads TikTok took down

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.
  • is_active is set only when you filter by status active or inactive, and is null otherwise.
  • A page can hold fewer ads than limit while more follow, and ads TikTok ranks equally can be skipped or repeated across pages.

1 credit per page. Failed requests are free.

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

SourcePrice per successful pagePer 1,000 pages
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 Search API.

More in the API reference.

Can I search ads shown in the US?
No. TikTok's ad library holds only ads shown in Europe. For the US and other markets, the TikTok Top Ads API returns Creative Center's best-performing ads by country.
How much does the TikTok Ad Library Search API cost?
A page of up to 12 ads costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Try it with your own search.

Type 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