Blog

TikTok Ad Library API: how to find your competitors' ads

Kevin Wang
Kevin Wang
Founder, AnyAPI · November 19, 2026
tiktokad librarycompetitor researchapicomparison
TikTok Ad Library API: how to find your competitors' ads
Key findings
  • Pick the TikTok Ad Library for a record of a competitor's ads and Creative Center for examples of ads that did well. Creative Center shows selected top-performing ads worldwide, with likes and click-through rate (CTR) information.
  • Search by advertiser name and check the legal company name. Name searches returned only the brand's own ads for seven of eight brands tested, while keyword searches in the German transparency library did that for four.
  • Use the free library website for a few lookups, without a TikTok account. For repeated checks from code, choose an API that covers the library or Creative Center, depending on the ads you want.

Built on AnyAPI

497 scraping and data APIs behind one key.

Every endpoint in this post is one call away. Pay per request in USD from a prepaid wallet, with automatic failover when a provider breaks. No subscription, no card to start.

Get ~160 free requests$0.10 of credit on signup.

A competitor's TikTok ad can be easy to remember and hard to find again. Searching the brand name may bring up its own ads, a reseller's offer, or a creator who mentions it.

Tests of AnyAPI's four TikTok ad endpoints covered eight brands and four Creative Center keywords, with 27 calls in all. Comparisons with the other options use their own docs, terms, and pricing pages.

Choose based on whether you need a record of a competitor's ads or examples of ads that performed well.

The best TikTok Ad Library APIs

What makes a good TikTok Ad Library API?

For a competitor report or an alert in your app, finding the right advertiser matters more than getting a long list of ads. Compare these details:

  • Which library it searches: the EU ad library shows who advertised, when, and to roughly how many people. Creative Center helps you study successful ads across countries, but it only includes ads their advertisers agreed to share.
  • How it finds a brand: a keyword can match an ad that mentions your competitor. An advertiser search helps you follow the company itself.
  • What comes with the ad: run dates and audience estimates help you monitor ads. Creative Center's CTR, likes, and campaign objectives help you research creative ideas.
  • What you pay for: a search can return a page of ads. An Apify actor may charge for every ad it collects, plus a fee to start the run.
How this was tested, and its limits
  • The AnyAPI test made 27 calls for $0.0276 at that day's prices, and every call returned HTTP 200. It covered eight brands, general keyword searches, four Creative Center searches, and three ad detail lookups.
  • The brand comparison uses first pages from ad_library_search searches by advertiser name and ad_transparency_search searches by lowercase brand keyword, with its default region of Germany. The endpoints and region settings differ, so this doesn't test the search term alone under otherwise identical conditions.
  • This small test didn't check every ad on TikTok. Empty results don't prove a brand isn't advertising.
  • TikTok's official API, ScrapeCreators, SearchApi, and Apify weren't called, so those comparisons use their own pages, checked at the time of writing. Prices use ScrapeCreators' prepaid packs, SearchApi's monthly plan, and Apify's Free-plan rates rather than its discounted store badges.
  • The JSON samples come from that run and show only the first ad where applicable, with shortened media URLs. They keep all displayed response fields.

The best TikTok Ad Library APIs at a glance

ToolBest forWhy pick itPricing
TikTok's Commercial Content APIApproved ad transparency researchOfficial library data, including targeting and reach; no Creative Center Top AdsNo published API price; application required. Library website is free
AnyAPIBrand monitoring and Creative Center searchesLibrary search and worldwide Top Ads search on the same keyLibrary search by keyword: $1.20 per 1,000 calls, backups up to $1.20; by advertiser name: $1.20
ScrapeCreatorsOccasional searches with prepaid creditsLibrary search; details for both library and Creative Center ads100 free credits; $47 for 25,000 credits, 1 credit per request
SearchApiFiltered library searches on a monthly planAdvertiser lookup, country and time filters, and detailed transparency fields100 free requests; $40 a month for 10,000 searches
Apify actorsTeams already using ApifySeparate actors for the ad library and Creative CenterExamples: library $1.50 per 1,000 ads + $0.025 per run; Creative Center $2.00 per 1,000 fetches + $0.001 per run

Best TikTok Ad Library API for approved ad transparency research

TikTok's Commercial Content API

TikTok's Commercial Content API pros:

  • TikTok's own ad records, with advertiser, payer, creative, run dates, reach, and targeting
  • You can apply from anywhere
  • A public website for manual searches without an account

TikTok's Commercial Content API cons:

  • You need approval and can only use it for the stated research purpose
  • Covers EU/EEA, UK, and Swiss ads only; no US ads or Creative Center Top Ads
  • No spend or budget figures

If you're studying advertising risks or transparency, start with TikTok's official API. TikTok says it's available to the public and researchers, including professionals anywhere.

Create a developer account with your official email address and submit an application.

Its terms limit use to researching advertising risks. The Developer Terms define the purpose as "to facilitate supervision and research into emerging risks" and let you use the data for those purposes.

An agency's routine competitor tracking isn't a stated purpose, so don't assume approval lets you use the data however you want in a commercial product.

The supported-country reference lists the EU, the wider European Economic Area (EEA), the UK, and Switzerland. The product page only mentions the EU, but neither includes the US.

The ad details API includes targeting and reach breakdowns, but no spend. If you only need to look up a few ads, use library.tiktok.com; its FAQ also lists Turkey, so don't assume the website and official API have identical country coverage.

TikTok's Commercial Content API pricing: the product page doesn't list a price. The public library website is free.

Best TikTok Ad Library API for brand monitoring and Creative Center searches

AnyAPI

AnyAPI pros:

  • Searches by advertiser name found a page of the brand's own ads for seven of eight brands
  • Separate searches for the transparency library and Creative Center
  • A backup source for Creative Center ad details

AnyAPI cons:

  • Some library ads came back without titles or media
  • About half the Creative Center ads had no advertiser name
  • Top Ads search, library search by advertiser name, and transparency search have no backup source

Choose AnyAPI's TikTok endpoints if you want to follow competitors and find creative ideas from the same account. Pick the endpoint for what you need:

EndpointWhat it returnsPrice per 1,000 calls
tiktok.ad_library_searchLibrary ads by keyword or advertiser name, with an optional region and number of days$1.20 by keyword, with a backup up to $1.20; $1.20 by advertiser name
tiktok.ad_transparency_searchEU library ads by keyword or advertiser ID; Germany is the default region$0.80; no backup
tiktok.top_ads_searchCreative Center top ads by keyword, with period, objective, and performance filters$1.20; no backup
tiktok.ad_library_adDetails for a Creative Center ad ID, including countries, landing page, and engagement$1.20; backup up to $1.20

For a brand you already know, send its name as advertiserName:

curl -sS -X POST 'https://api.getanyapi.com/v1/run/tiktok.ad_library_search' \
  -H "Authorization: Bearer $ANYAPI_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"advertiserName":"Duolingo"}'

Duolingo's first returned ad, with the response fields:

{
  "output": {
    "found": true,
    "data": {
      "ads": [
        {
          "adId": "1881305001539794",
          "adTitle": "Aprenda 40 idiomas grátis",
          "brandName": "Duolingo, Inc.",
          "coverUrl": "https://p16-common-sign.tiktokcdn.com/...",
          "estimatedAudience": "0-1K",
          "firstShownUtc": 1794096000,
          "format": "2",
          "lastShownUtc": 1794096000,
          "status": "1",
          "url": "https://library.tiktok.com/ads/detail/?ad_id=1881305001539794",
          "videoUrl": "https://library.tiktok.com/..."
        }
      ],
      "hasMore": true,
      "nextCursor": "cur_914itaCDW35-AxwMvaKc8A",
      "total": 5141
    }
  },
  "costUsd": 0.0012,
  "items": 12
}

Use nextCursor as cursor to fetch the next page. Check brandName before saving an ad as your competitor's.

A brand name in the ad doesn't mean the brand paid for it. Keyword searches for Duolingo and Revolut returned other advertisers, while Adidas searches returned resellers and creators.

Searching by advertiser name found their own ads.

BrandAdvertiser-name search: first pageKeyword search in Germany: first page
Spotify12 own ads, SPOTIFY FRANCE SAS12 own ads, SPOTIFY LIMITED and SPOTIFY USA INC
Duolingo12 own ads, Duolingo, Inc.0 own; other advertisers
HelloFresh12 own ads, HelloFresh Deutschland Management12 own ads, HelloFresh SE
TemuNo ads12 from Yundooo Technology International Company Limited; none recognisably Temu
Zalando12 own ads, Zalando Lounge c/o Zalando SE12 own ads, Zalando SE
Canva12 own ads, CANVA PTY LTD12 own ads, CANVA PTY LTD
Adidas12 ads, ADIDAS DO BRASIL LTDA0 own; resellers and creators
Revolut12 own ads, REVOLUT LTD0 own; other advertisers

Check the legal company name too. Spotify appeared under its French company, and Adidas under its Brazilian company; Temu returned nothing under the brand name.

Every library ad found by advertiser name had run dates and an estimated audience range, but titles and videos weren't always available. If you're saving examples, expect some ad records without a playable video.

For creative ideas, use tiktok.top_ads_search to search Creative Center. All the returned ads had CTR, likes, objective, and industry fields, though only about half had a brand name.

Here's the first ad returned for {"query":"language learning"}:

{
  "output": {
    "found": true,
    "data": {
      "ads": [
        {
          "adId": "7437438977605255186",
          "adTitle": "learn and speak english fluently.",
          "brandName": "Busuu",
          "cost": 1,
          "ctr": 0.52,
          "durationSeconds": 10.049,
          "height": 1280,
          "image": "https://p16-common-sign.tiktokcdn.com/...",
          "industry": "label_20104000000",
          "likes": 3600,
          "objective": "campaign_objective_conversion",
          "videoUrl": "https://v16m-default.tiktokcdn.com/...",
          "width": 720
        }
      ],
      "hasMore": true,
      "page": 1,
      "pageSize": 20,
      "total": 290
    }
  },
  "costUsd": 0.0012,
  "items": 20
}

Creative Center covers countries worldwide, including the US, but it only shows selected ads their advertisers agreed to share. You won't get every campaign a competitor runs, and we couldn't find an official API for it.

Use an ID from Top Ads search with tiktok.ad_library_ad for countries, comments, shares, and a landing page where available. Despite its name, that endpoint takes Creative Center IDs, not IDs from the transparency library.

AnyAPI pricing: library search costs $1.20 per 1,000 calls by keyword, up to $1.20 when a backup serves it, and $1.20 by advertiser name. Transparency search costs $0.80, Top Ads search $1.20, and Creative Center ad details $1.20 per 1,000 calls, with details backups up to $1.20.

Best TikTok Ad Library API for occasional searches with prepaid credits

ScrapeCreators

ScrapeCreators pros:

  • Library search by keyword or advertiser name
  • A details endpoint that accepts ads from either the library or Creative Center
  • Purchased credits don't expire

ScrapeCreators cons:

  • No documented Creative Center Top Ads search endpoint
  • Library search doesn't document country or date filters

If you check competitors occasionally, ScrapeCreators lets you buy a pack and use it over time. Its library search takes a query or advertiser name and supports a cursor for more results.

The ad details endpoint covers both collections, including Creative Center engagement and retention for each second. Use it when you already have the ad; you'll still need a Top Ads search to find examples by topic.

ScrapeCreators pricing: 100 free credits; $47 for 25,000 credits, or $497 for 500,000. Search and ad details each cost 1 credit per request, and purchased credits never expire (ScrapeCreators pricing).

Best TikTok Ad Library API for filtered library searches on a monthly plan

SearchApi

SearchApi pros:

  • Library search with country, time, and sorting options
  • Advertiser search and ad details with targeting and regional impressions
  • Charges only for successful searches

SearchApi cons:

  • No documented Creative Center Top Ads engine
  • You can no longer search with an advertiser ID alone
  • You can only use part of your plan's searches each hour

SearchApi works well for regular reports when you need more control over which library ads you get. Its search engine lets you choose countries, set a time period, and sort by reach.

The details engine adds targeting and impressions by region, but no spend.

Use its advertiser search to find the advertiser, then follow the current search parameters. The docs warn that you can no longer search with advertiser_id alone.

Pick it for recurring library searches if you'll use the monthly plan. For worldwide creative inspiration, you'll still need a Creative Center option.

SearchApi pricing: 100 free requests; Developer costs $40 a month for 10,000 searches. You only pay for successful searches and can use up to 20% of the plan's searches each hour (SearchApi pricing).

Best TikTok Ad Library API for teams already using Apify

Apify actors

Apify actors pros:

  • Actors available for both the transparency library and Creative Center
  • A choice of separate scrapers or actors that cover both collections

Apify actors cons:

  • Different authors, fields, and charges for each actor
  • Store badges can show discounted rates that don't apply on the Free plan
  • Some actors charge to start a run as well as for its results

If your team already uses Apify, choose an actor that searches the collection you need. TikTok Ads Library FAST, by data_xplorer, covers the transparency library; Tiktok Creative Center Scraper, by doliz, covers Top Ads.

You can also choose brilliant_gum's combined library and Creative Center scraper. Check the actor's fields and pricing before choosing it, because the name "TikTok ads scraper" doesn't tell you which collection it searches or what each result costs.

For a small recurring check, compare the run fee as well as the price per ad. The cheaper badge on a store page may require an Apify plan you don't have.

Apify actors pricing: on the Free plan, data_xplorer charges $1.50 per 1,000 ads plus $0.025 per run, and doliz charges $2.00 per 1,000 fetches plus $0.001 per run. The combined brilliant_gum actor charges $15.00 per 1,000 results plus $0.001 per run, according to the linked actors' Store pages.

Which TikTok Ad Library API should you use?

  • A few manual lookups: TikTok's free library website.
  • Approved research into advertising risks: TikTok's Commercial Content API.
  • Brand monitoring and Creative Center searches from the same account: AnyAPI.
  • Occasional library searches with credits you can keep: ScrapeCreators.
  • Recurring library searches with country, time, and reach filters: SearchApi.
  • TikTok data in an existing Apify workflow: an actor for the collection you need.

For the same competitors on other platforms, the Facebook Ad Library API comparison explains Meta's options, and the Google Ads endpoints cover Google's ad transparency data.

Frequently asked questions

Can I get US ads from TikTok's official Commercial Content API?
No, it only covers the EU and EEA, the UK, and Switzerland. Creative Center includes US ads, but only selected top performers that advertisers have agreed to let TikTok show, so you won't get a complete record of a competitor's US campaigns.
Can I see how much a competitor spent on TikTok ads?
TikTok's official Commercial Content API has no spend or budget field, and Creative Center's budget levels and performance rankings don't tell you an advertiser's exact bill. Don't read a cost field in a Top Ads response as dollars spent.
How much does AnyAPI's TikTok ad library search cost?
Library search by keyword costs $1.20 per 1,000 calls, and up to $1.20 when a backup serves it. Search by advertiser name costs $1.20 per 1,000 calls.
Does the total in a search response tell me how many ads exist?
Don't use it to count a broad market, because capped totals won't tell you how many ads exist. All three plain keyword searches in the test reported exactly 5,000 results, as did four of the eight transparency searches.

Search by advertiser name, check the company behind each ad, and save the results for your next competitor report.

Try the TikTok Ad Library API

Use data responsibly and follow AnyAPI's Acceptable Use Policy.