I run a visa agency in Bali, and on the side I build data tools on Apify. One of the newest is a TikTok Ads Library Scraper. It reads TikTok's Commercial Content Library, the public archive TikTok has to publish under the EU Digital Services Act. The library covers every ad shown in the EU/EEA, the UK, Switzerland, Turkey and Brazil.
Before I write marketing copy for a tool, I like to look at what the source actually returns. So I took the most generic keyword I could think of, skincare, and read every row from the first four runs. One was a 50-ad search across all countries, one was the same search limited to Germany, and two were identical 20-ad searches. After removing duplicates I had 75 unique ads.
Here is what was in them, and what I'd want to know before building anything on this data.
Finding 1: "skincare" meant one advertiser
I expected a spread of beauty brands. I got one company.
| Field | Distinct values across 75 ads |
|---|---|
advertiser | 1 (Digital Skincare Inc.) |
adTitle | 2 (Personalized Skincare Plan ×55, KOREAN-SKINCARE PLAN ×20) |
estimatedAudience | 1 (0-1K) |
| cover image | 45 |
Seventy-five ads, two headlines and 45 different cover images. That looks like an advertiser testing creatives: lots of small variants, each shown to fewer than a thousand people.
I'm not claiming TikTok's library has no other skincare advertisers. What I can say is that the first 50 results of this search, worldwide or Germany-only, all belonged to one account. The keyword search seems to match advertiser names and ad titles, and a company with "Skincare" in both, running dozens of variants, fills the first pages.
What this means in practice: if you want a market view ("who advertises skincare in Europe"), a single generic keyword is a poor sample. Use several specific keywords, search by advertiser name, or split by country and date window. The library also caps a search at 5,000 ads, so splitting is necessary for big queries anyway.
Finding 2: the same headline, three industries
Each ad in the search results has an industry field. You'd expect the same advertiser with the same headline to get the same label. It didn't:
| Title | Beauty & Personal Care | News & Entertainment | Apps | empty |
|---|---|---|---|---|
| Personalized Skincare Plan | 38 | 15 | 2 | 0 |
| KOREAN-SKINCARE PLAN | 11 | 3 | 4 | 2 |
A quarter of the ads are labeled "News & Entertainment" or "Apps". The advertiser is selling a skincare quiz that leads into an app, so "Apps" is defensible. "News & Entertainment" isn't really.
My guess is that the label comes from the advertiser's own setup for each ad group, not from TikTok classifying the creative. I can't prove that from outside. Either way, don't build industry dashboards on this field without checking it. If you filter for "Beauty & Personal Care" here, you lose 23 of the 75 ads.
Finding 3: approved: true with a rejection notice attached
All 75 ads came back with approved: true. Four of them also had a non-empty rejectionInfo:
{ "reasons": ["Our review indicates that your advertising content may violate TikTok Advertising Policies. This may be due to the advertisement containing claims that exaggerate (overstate or oversimplify) the performance or achievable outcomes of the promoted product..."], "affected_regions": ["CZ", "PL"], "reporting_source": "", "automated_notice": "", "hit_illegal_content_reason": 0 } The key part is affected_regions. The ad isn't rejected everywhere. It passed review in general and was flagged in specific countries. Two of the four were flagged in Czechia and Poland for exaggerated claims. The other two were flagged in Italy, Lithuania, the Netherlands and Slovenia for "prohibited or non-compliant apps/software".
All four flagged ads were in the group labeled "Apps" or "News & Entertainment". That's four ads, so it's an observation and not a rule.
For compliance or brand-safety work, this is the useful part of the dataset. Treat approved as "passed review somewhere", and read rejectionInfo.affected_regions for the real picture. A boolean filter on approved would have hidden all four.
Finding 4: the targeting still lists the rejecting countries
The search results don't include targeting. That comes from a separate lookup per ad, which is why the Actor charges for it separately. I ran one lookup on a tiny test account, on the ad flagged in CZ and PL (1881359233045681). Input:
{ "adUrls": ["1881359233045681"], "maxAds": 1 } The run took 8 seconds. Trimmed output:
{ "adId": "1881359233045681", "advertiser": "Digital Skincare Inc.", "advertiserBizId": "7186955021488275458", "adTitle": "KOREAN-SKINCARE PLAN", "firstShownAt": "2026-11-09T00:00:00.000Z", "lastShownAt": "2026-11-10T00:00:00.000Z", "objective": "Sales", "landingPage": "https://interview.lovi.care/?ttclid=__CLICKID__&utm_source=tiktok&utm_id=__AID__&utm_campaign=__CAMPAIGN_NAME__&utm_medium=cpc&utm_content=__CID_NAME__", "targetCountries": ["IE","CH","SI","GR","LT","BR","NL","EE","DE","RO","GB","SE","HR","BE","AT","PL","SK","PT","ES","NO","DK","FR","HU","LV","BG","CZ","IT","FI","CY"], "totalImpressions": "0-1K", "impressionsByCountry": [{ "country": "IE", "impressions": "0-1K" }, "... 28 more, all 0-1K"], "audienceAgeGender": [{ "age": "18-24", "gender": "male", "countries": 29 }, "... 14 more"], "advertiserTikTok": { "username": "loviskincare", "followers": "12.9K", "accountType": "VERIFIED_BA" }, "industry": null, "approved": null, "rejectionInfo": null } Three things stood out:
- CZ and PL are in
targetCountries, with a0-1Kimpressions row each. So the ad was targeted at the two countries where it was flagged and still has impressions recorded there. That band covers zero, so I can't tell whether it actually ran there. Still, "rejected in X" and "targeted X" both appear for the same ad, and you need both fields to see that. - The targeting grid is huge and carries no information. 29 countries × 5 age bands × 3 genders (male, female, unknown) gives 435 cells, and every one says
0-1K. This advertiser targeted everyone over 18 in 29 countries. The grid becomes useful for big campaigns, where bands like10K-100Kstart to differ between cells. For small test ads it's just a confirmation of "broad". - The detail lookup drops fields that the search had.
industry,format,approvedandrejectionInfoare allnullwhen you fetch by ad link. The search result had them. If you need both, run the search with targeting switched on instead of collecting IDs and looking them up afterwards.
The landing page is also worth having. The UTM template shows the advertiser's campaign naming (utm_medium=cpc, macros for campaign and creative name). The advertiserTikTok block links the legal entity to the brand account @loviskincare, which the search results don't do.
Finding 5: smaller pitfalls
Dates lag. I ran the searches on 28 November. The newest lastShownAt in all 75 ads was 12 November, and the oldest firstShownAt was 30 October. The default window is the last 30 days, so these ads were inside it. The library just doesn't seem to show the last couple of weeks for this advertiser yet. If you're monitoring a competitor's launch, expect a delay.
Ads are short-lived. Of the 75 ads, 24 were shown on a single day, 37 ran for one day after that, 10 for two days and only one for five days. For this kind of creative testing, "last shown" matters much more than "first shown".
Order isn't stable. The two identical 20-ad runs returned the same 20 ads, but only 5 were in the same position. The 20-ad run and the first 20 of the 50-ad run shared only 16 ads. If you want "the top N", sort the results yourself.
Country filters overlap. The Germany-only run and the all-countries run, both 50 ads, shared 28. An ad targeted at 29 countries shows up in every country search, so if you search country by country, deduplicate on adId.
Media links expire. Cover image URLs carry an x-expires that was rounded to the hour, about five to six hours after the fetch. A cover from the 15:52 UTC run returned 403 at 21:09 UTC. Video URLs are wrapped in a library.tiktok.com/api/v1/cdn/... proxy, and the real CDN link inside expires six hours after the fetch. If you want the creatives, download them during the run or right after.
Calling it from code
Here's a plain HTTP call that waits for the run and returns the rows:
curl -X POST "https://api.apify.com/v2/acts/lergassy~tiktok-ads-library-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \ -H "Content-Type: application/json" \ -d '{"keywords":["skincare"],"countries":["DE"],"maxAds":50,"includeTargeting":false}' The dataset also contains a free notice row with the run summary. Filter it out with type != "notice":
import os, requests from collections import Counter rows = requests.post( "https://api.apify.com/v2/acts/lergassy~tiktok-ads-library-scraper/run-sync-get-dataset-items", params={"token": os.environ["APIFY_TOKEN"]}, json={"keywords": ["skincare"], "maxAds": 50}, timeout=300, ).json() ads = [r for r in rows if r.get("type") == "ad"] print(Counter(a["advertiser"] for a in ads).most_common(5)) flagged = [(a["adId"], a["rejectionInfo"]["affected_regions"]) for a in ads if a.get("rejectionInfo")] print(flagged) Run that Counter line before trusting any keyword search. It would have told me straight away that I was looking at one company and not a market.
When this isn't the right tool
- US ads. They aren't in the library. TikTok publishes this archive for the EU's transparency rules, not worldwide.
- Performance data. No CTR, likes or spend.
spendwasnullin all 75 rows. For "which creatives perform", TikTok's Creative Center top-ads list is the better source. - Exact reach. Everything comes in TikTok's bands (
0-1K,10K-100Kand so on). Small ads all fall in the bottom band. - Live scraping of the website. library.tiktok.com puts automated visitors behind a captcha, so the Actor doesn't drive the page. It reads the same library data through an upstream API. That makes it fast (one country, 50 ads, a few seconds per page of 12), but I couldn't compare values field by field against the live page.
What I took from this: the Ads Library is good at telling you where an ad ran, who is behind it and where regulators or TikTok pushed back. It's poor at telling you how big anything is. If you go in expecting a competitive-intelligence dashboard, the bands will disappoint you. If you go in looking at affected_regions and targetCountries, you'll find things no other public source shows.
The Actor is here if you want to repeat this with your own keywords: TikTok Ads Library Scraper on Apify.
