Commercial Content Library

TikTok Ad Library Scraper

Search by brand or keyword across TikTok’s European ad library. Watch the videos before you borrow anything, because the hook usually lives in the first couple of seconds.

On JMLP: 5 credits per result, from $0.13 per 1,000 results. Start with 500 free credits.

Ways to use this scraper.

Three examples to start from.

Plan a video test around a product category

For a beauty campaign in France, collect the category’s ads and sit down with the videos. Tag the openings and the offers yourself, because no field in the data tells you what the hook is.

A sheet of video references and a shortlist of storyboard ideas.

Research creative before entering another market

Before you produce anything for Germany or Spain, see who advertises there and in which language. Some brands localize everything, others run the same English video everywhere.

A market brief with the source videos and the localization questions you still have.

Find creators in a brand’s commercial content

Search a brand name and look at who is behind each record: the brand’s registered entity or a creator posting for it. Save both, because the creator handles are often the interesting part.

A list of advertisers and creators to start partnership research from.

Your first run.

  1. Open the Actor on Apify and go to the Input tab. Switch to the JSON editor if you’d rather paste a configuration.
  2. Replace the full JSON input with the example and change Nike to your advertiser. A display name can match several legal names; switch to advertiserBusinessIds after checking the business ID in a returned record.
  3. Select one supported country such as FR and maxAds 50. Keep residential proxies enabled. Remove the form’s prefilled GB region if you want France only. Leave audience filters unset until this first search works.
  4. Start the run and keep an eye on the log. If it comes back empty, check which targets and filters were read before you conclude there’s nothing there.
  5. Open Storage → Dataset and read a few records. Export CSV for a quick look in a spreadsheet, or JSON if you need the nested fields.
First-run configuration
{
  "searchTerms": ["Nike"],
  "regions": ["FR"],
  "maxAds": 50,
  "adStatus": "all",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}

Paste this into the Actor’s JSON input editor. Replace the example targets with yours before running.

Check the current input form on Apify

Ways to search.

This is TikTok’s Commercial Content Library, covering the EU/EEA, the UK and Switzerland. It is the right tool for advertiser research in those markets. For US creative inspiration, use the Creative Center scraper instead.

Search methodWhen to use itWhat changes
Advertiser or brand nameWhen to use itYou have a competitor watchlist.What changesSearch advertiser names, often registered legal entities rather than brand labels. Partial names, TikTok profiles and websites can resolve to a brand. A name with no ads may fall back to a keyword search.
Keyword discoveryWhen to use itYou want to find relevant results before choosing specific targets.What changesSearch ad content for themes such as running shoes, independently of advertiser identity. Use this to discover companies you do not already track.
Advertiser IDsWhen to use itYou know the exact entity you want to collect.What changesTikTok’s numeric business identifiers. Use these for exact advertiser tracking without name matching. Copy an ID from a verified source record; do not substitute a TikTok username.
Ad Library URLsWhen to use itYou already configured the search on the source website.What changesPaste search links from library.tiktok.com. Their countries, dates, status and audience filters take precedence; the separate input fields fill missing values.

Worth knowing

Only the 32 listed markets are covered: EU/EEA, UK and Switzerland. Explicit countries run separately. An empty regions list searches all covered markets together; ["all"] searches each country separately. Unsupported countries are skipped. If none remain, the search covers all supported markets.

Compare the related scraper

What each input does.

In JSON, use the field names exactly as written below. In Apify’s form, add list items one at a time and keep numbers and true/false values as they are.

A default is what the Actor uses when you leave a setting out, and some settings have none. A prefill is an example Apify has already typed into the form, and it runs unless you change it. Check the prefilled targets and limits before you start; you always need at least one target of your own.

Targets and search inputs5
searchTerms
ListForm prefill: ["Nike"]

Search advertiser names, often registered legal entities rather than brand labels. Partial names, TikTok profiles and websites can resolve to a brand. A name with no ads may fall back to a keyword search.

searchTerm
Text

One advertiser name instead of a searchTerms list. Use the list for several competitors and an advertiserBusinessIds value when the exact entity is already known.

keywords
List

Search ad content for themes such as running shoes, independently of advertiser identity. Use this to discover companies you do not already track.

advertiserBusinessIds
List

TikTok’s numeric business identifiers. Use these for exact advertiser tracking without name matching. Copy an ID from a verified source record; do not substitute a TikTok username.

adLibraryUrls
List

Paste search links from library.tiktok.com. Their countries, dates, status and audience filters take precedence; the separate input fields fill missing values.

Markets, dates and filters10
regions
ListForm prefill: ["GB"]

Only the 32 listed markets are covered: EU/EEA, UK and Switzerland. Explicit countries run separately. An empty regions list searches all covered markets together; ["all"] searches each country separately. Unsupported countries are skipped. If none remain, the search covers all supported markets.

Suggested JSON values
AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MT NL NO PL PT RO SE SI SK all
region
Text

One country alongside or instead of regions. Unlike Google Ads, this single-country field is combined with the list rather than only filling an empty list.

Suggested JSON values
AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MT NL NO PL PT RO SE SI SK
minDate
Text

Filters the date an ad was last shown, server-side. It is not a creation-date filter. Use YYYY-MM-DD; empty dates cover the library’s available archive rather than its website’s default 30-day view.

maxDate
Text

Last-shown dates must be on or before this day. Combine with minDate for a last-delivery window; an ad first launched months earlier can still match.

adType
TextDefault: all

Choose all, video, image or text. This filters the creative format; it does not choose political versus commercial ads.

Suggested JSON values
all video image text
adStatus
TextDefault: all

active means running now, inactive means stopped, all includes both. Status and last-shown dates answer different questions, so set both deliberately.

Suggested JSON values
all active inactive
sortBy
TextDefault: last_shown_date,desc

Choose last-shown date, publication date or unique reach, ascending or descending. With a maxAds cap, sorting changes which portion of the matching ads you collect first.

Suggested JSON values
last_shown_date,desc last_shown_date,asc create_time,desc create_time,asc impression,desc impression,asc
gender
TextDefault: ALL

Filters the advertiser’s declared target gender: ALL, FEMALE or MALE. This is targeting metadata, not a measured breakdown of the people who actually watched the ad.

Suggested JSON values
ALL FEMALE MALE
ages
List

Target-age bands, as a list of strings. Use the comma-separated band values below, for example 18,24. Empty means every age; these are declared targets rather than measured viewers.

Suggested JSON values
all 13,17 18,24 25,34 35,44 45,54 55,100
adReach
List

Keep ads in selected public reach bands: 0-10K, 10K-100K or 100K+. Empty means all bands. Do not read a band as an exact impression or conversion count.

Suggested JSON values
all 0-10K 10K-100K 100K+
Limits, details and proxies5
proxyConfiguration
ObjectDefault: {"useApifyProxy":true,"apifyProxyGroups":["RESIDENTIAL"]}Form prefill: {"useApifyProxy":true,"apifyProxyGroups":["RESIDENTIAL"]}

Residential proxies are required. Datacenter exits can fail during session setup without an obvious blocking message. Keep the default RESIDENTIAL group before changing filters or dates to diagnose a failed run.

maxAds
IntegerForm prefill: 500

A hard cap on unique ads across the whole run, including all targets and markets. Start with 50. Leaving it empty removes this cap; a broad search can then become much larger.

maxPages
Integer

Limits pages for each country-search job. The effective page size is at most 12 ads, even if older descriptions mention larger batches. Clear for full pagination within your result cap.

pageSize
IntegerDefault: 12

1-12 ads per request. Values above 12 are read as 12 because TikTok caps its page size. Increasing maxPages changes depth; increasing pageSize beyond 12 does not.

delayMs
IntegerDefault: 500

Pause between page requests, in milliseconds. Increase it when the source throttles you; reducing it does not remove network delays or the source’s rate limits.

Advanced settings and recovery4
raw
True or falseDefault: false

Returns TikTok’s untouched records. Unlike the normal output, dates are not converted and encoded media URLs are not decoded. Keep false for a spreadsheet-ready dataset.

proxyRotations
IntegerDefault: 3

Retries refused work with a new proxy session. More retries can recover temporary blocks but add time and traffic. Keep the default until the log shows a reason to change it.

resume
True or falseDefault: true

Saves progress about every 30 seconds so an Apify restart or migration can continue the current run. Leave it on for normal use.

continueFromLastRun
True or falseDefault: false

Continues unfinished work from the previous run with matching input. Earlier results remain in that run’s dataset. Keep false for a fresh collection or a recurring snapshot.

This reference follows the Actor’s published input fields. Check the live form before changing a production workflow. Check the current input form on Apify.

Three setups to copy.

Each one is a separate run. Swap in your own targets, countries and dates, start small, and widen it only once the first results look right.

Track one advertiser’s active ads

Collect up to 50 active ads shown in the UK. Check legal advertiser names in the output before scheduling. Keep the same country and filters for each weekly snapshot.

Track one advertiser’s active ads
{
  "searchTerms": ["Nike"],
  "regions": ["GB"],
  "adStatus": "active",
  "maxAds": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}

Explore a specific creative segment

Look for skincare video ads in France targeting ages 25 to 34 with the 100K+ reach band. These filters can produce a small or empty sample. Remove reach and age filters one at a time if you need broader discovery.

Explore a specific creative segment
{
  "keywords": ["skincare"],
  "regions": ["FR"],
  "adType": "video",
  "ages": ["25,34"],
  "adReach": ["100K+"],
  "sortBy": "last_shown_date,desc",
  "maxAds": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}

Compare delivery across two countries

This searches Germany and France for Nike ads last shown in September 2026. An ad that ran in both countries is kept once, so don’t add up the country counts as if each market had its own separate set of ads.

Compare delivery across two countries
{
  "searchTerms": ["Nike"],
  "regions": ["DE", "FR"],
  "minDate": "2026-09-01",
  "maxDate": "2026-09-30",
  "maxAds": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}

After the first run.

Keep the ad ID, the legal advertiser name, the source URL, the media and the first and last shown dates. Reach comes as a band if at all, and spend and impressions are often empty, so nothing here proves an ad worked. Save the media quickly, because the links expire, and keep the country each search ran in.

  1. Look at the dataset and the run’s SUMMARY record. Did you hit your cap? Were any inputs skipped? Open a few source links to make sure the records are what you think they are.
  2. Whatever you save, keep the original IDs and add collected_at and run_id. CSV is fine for flat columns; keep the JSON when arrays or nested details matter.
  3. Once a configuration works, save it as an Apify Task and schedule it. Leave continueFromLastRun false for repeated snapshots, and deduplicate by source ID without throwing away the dates you saw each record.
  4. In Make or n8n, trigger on a successful run, fetch the dataset and map the fields into Sheets or your warehouse. Looker Studio works best from a reporting table, and dbt is the place to flatten and test the warehouse models.
  5. The same JSON works with Apify’s API. With Claude and the Apify MCP server, name this Actor, have Claude check the live schema first, and give it explicit targets, markets and limits.

Resume is not a fresh snapshot

resume protects the current run if Apify restarts it. continueFromLastRun picks up an earlier run with the same configuration, and the earlier records stay in the earlier dataset, so you combine the two to get everything. If that run hit its cap, raise the cap before continuing. For a picture of what changed today, start fresh.

Follow the Sheets, Claude, Looker and BigQuery setup guides
Run this Actor from the API

Save one configuration above as input.json. Set APIFY_TOKEN to your Apify API token in your terminal, then send the file as the request body.

Start the run
curl --fail-with-body --request POST \
  --url "https://api.apify.com/v2/actors/jmlp~tiktok-ad-library-scraper/runs" \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --header "Content-Type: application/json" \
  --data-binary @input.json

The response contains a run ID and defaultDatasetId, not finished results. Wait for the run to succeed, set DATASET_ID to that dataset ID, then fetch its items. For large datasets, use limit and offset to page through the export.

Fetch the dataset
curl --fail-with-body \
  --url "https://api.apify.com/v2/datasets/$DATASET_ID/items?format=json" \
  --header "Authorization: Bearer $APIFY_TOKEN"

Apify’s run and export API reference
Dataset export options

If something looks off.

Change one setting at a time and keep the cap small. The run summary usually tells you what went wrong.

The selected country returns no useful results.

Only the 32 listed markets are covered: EU/EEA, UK and Switzerland. Explicit countries run separately. An empty regions list searches all covered markets together; ["all"] searches each country separately. Unsupported countries are skipped. If none remain, the search covers all supported markets.

The source keeps returning empty pages or access errors.

Residential proxies are required. Datacenter exits can fail during session setup without an obvious blocking message. Keep the default RESIDENTIAL group before changing filters or dates to diagnose a failed run.

Why are spend or performance fields empty?

Keep the ad ID, the legal advertiser name, the source URL, the media and the first and last shown dates. Reach comes as a band if at all, and spend and impressions are often empty, so nothing here proves an ad worked. Save the media quickly, because the links expire, and keep the country each search ran in.

The run succeeded but returned nothing

Succeeded only means the Actor finished, not that the source sent anything back. Look at SUMMARY.inputProblem, SUMMARY.problem and the log for missing targets, unsupported filters or refused requests, then try one target you know has data, with fewer filters.

Fewer records than expected

Usually it’s a limit: the global cap, a per-search or per-page cap, or what the platform covers. Deduplication also removes records that several searches found, and a site’s headline count can include records its public pages never show. Check for unfinished jobs before you call the dataset complete.

Use the results in your tools.

Google Sheets

Add ad_id, advertiser_name, scraped_region, first_shown, last_shown and media_url to the sheet. Label hooks and formats only after you’ve watched the videos.

Read the setup

Claude + MCP

Claude can sort the metadata and cite the records, but it can’t see the hook from metadata. For that it needs the video itself or a transcript.

Read the setup

Looker Studio

Compare activity by advertiser and region. Keep reach as a band, and don’t add up regional rows as if they were separate people.

Read the setup

BigQuery + dbt

Keep the raw observations, a creative table keyed by ad_id and a separate table for regions. Store reach exactly as TikTok gives it, as a band.

Read the setup
Copy a prompt for Claude
Prompt for Claude + Apify MCP
Check the schema of jmlp/tiktok-ad-library-scraper and collect up to 50 Nike-related records in FR. Separate advertiser entities from creator handles, summarize delivery dates and available reach bands, and cite ad_library_url. Flag unavailable spend and impression data. Do not describe video content you have not inspected.

The fields you’ll get.

Keep the collection time and original IDs with your records. You’ll need them to check where a result came from or compare it with a later run.

Before you draw conclusions

Coverage is the 32 markets of the EU, the EEA, the UK and Switzerland. Spend and impressions are often empty, and estimated_audience gives a reach band at best, so none of it shows conversions. Save the media promptly, because the links expire.

ad_id / advertiser_business_id
Stable identifiers for records and repeat advertiser tracking.
advertiser_name
The reported account; creator names may appear for branded content.
first_shown / last_shown
Reported delivery dates in the selected country.
media_url / cover_url
Available media and preview image links.
estimated_audience
The public reach band reported by the library.
scraped_region / ad_library_url
Collection context and a source reference.

Common questions.

Can I scrape the US TikTok ad market?

No. TikTok only publishes this library for the EU, the EEA, the UK and Switzerland. For US examples, the Creative Center scraper is the closer fit.

Can Claude automatically understand the videos?

Not from what the scraper returns, which is media links and metadata. To analyze what happens in a video, Claude needs the video file or a transcript.

Source and current product details: JMLP’s TikTok Ad Library Actor on Apify.

Need a scraper or a pipeline built for you?

Send me the sites you’re interested in and the question behind them. I’ll tell you whether scraping is the right way to answer it, and what it would take.