# TikTok Ads Library Scraper: EU Ad Transparency & Reach (`automatic/tiktok-ads-library-scraper`) Actor

Search TikTok's Commercial Content Library across 34 supported countries. Export ad captions, dates and available creatives. Request optional payer, reach and targeting disclosures and track newly found ads on a schedule.

- **URL**: https://apify.com/automatic/tiktok-ads-library-scraper.md
- **Developed by:** [Philip Kirkbride](https://apify.com/automatic) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.22 / 1,000 ads

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## TikTok Ads Library Scraper: EU Ad Transparency & Reach

Find and compare TikTok ads published in the Commercial Content Library across 34 supported markets. Search by keyword, registered advertiser name, business ID or direct link. Export captions, dates and available creatives, and request source disclosures about who paid, where the ad reached viewers and which audiences it targeted.

- **Ad creatives and links:** collect disclosed video URLs, thumbnails and captions. Detail records can add image creatives, destination URLs, campaign objectives and calls to action.
- **Advertiser and payer records:** detail records can include the legal name, TikTok business ID, registered country, linked TikTok profile and the entity listed under *Ad paid for by*.
- **Country, age and gender reach:** source estimates for unique viewers and target audience size, with per-country and age-by-gender breakdowns where disclosed.
- **Declared targeting criteria:** targeted countries, provinces, cities, age brackets, genders, languages, operating systems, device models, interest categories and custom-audience flags.
- **Many searches in one run:** list multiple keywords, brands and direct `library.tiktok.com` links together. Duplicates across overlapping searches are removed automatically and bad entries are skipped cleanly in the run summary.
- **Only new ads on a schedule:** turn on *Only new ads since the last run* to skip ads your monitor already collected on earlier runs.

Leave the input empty (`{}`) for a sample of up to ten recent Nike ads in Germany with details requested.

Built for performance marketers and media buyers researching competitor funnels, creative teams building video swipe files, e-commerce and DTC analysts tracking product launches across Europe, agencies preparing market audits, and compliance or policy researchers studying EU Digital Services Act disclosures.

**Tracking ads on other networks too?** Pair it with our Facebook Ads Library, Google Ads Transparency, LinkedIn Ad Library and TikTok Creative Center scrapers.

### Use cases

- **Competitor funnel tracking:** find a competitor's disclosed videos and available landing pages across Germany, France, the UK and other supported markets.
- **Creative swipe files:** filter for high-reach (`100K+`) video ads in your niche and export captions, CTAs, videos and covers into a spreadsheet or Notion board.
- **European market expansion:** compare how brands localize ad copy, offers and targeting across European markets in a single run.
- **Scheduled new-ad alerts:** run daily or weekly with `onlyNewAds` enabled to feed newly launched competitor creatives straight into Slack, Google Sheets or your BI warehouse.
- **DSA transparency research:** analyze reach distributions by country, age group and gender across disclosed commercial campaigns.

### Quick start

An empty input (`{}`) uses the same Germany sample as the prefilled form.

Search by keywords across Germany, France and the UK over the last 30 days:

```json
{
  "keywords": ["skincare", "\"black friday\""],
  "countries": ["DE", "FR", "GB"],
  "dateRange": "last-30-days",
  "maxResults": 100
}
```

Search for disclosed ads from specific advertisers across the supported markets:

```json
{
  "advertisers": ["NIKE Retail B.V.", "Zalando SE"],
  "countries": ["all"],
  "adStatus": "all",
  "dateRange": "last-90-days",
  "maxResults": 250
}
```

Scan high-reach video cards and request reach order:

```json
{
  "keywords": ["fitness app"],
  "countries": ["GB", "IE", "NL"],
  "adMediaType": "video",
  "reachRanges": ["100K+"],
  "sortBy": "impression,desc",
  "includeDetails": false,
  "maxResults": 200
}
```

Weekly monitor for new competitor ads:

```json
{
  "advertisers": ["6876453864464188162"],
  "countries": ["DE", "AT", "CH"],
  "onlyNewAds": true,
  "monitorName": "dach-sportswear-weekly",
  "maxResults": 200
}
```

### Input

| Field | What it does |
|---|---|
| `keywords` | Words or phrases to search across ad captions and advertiser names (use quotes for an exact phrase). A standalone hyphenated term is matched as a phrase. |
| `advertisers` | Advertiser legal names (e.g. `NIKE Retail B.V.`) or numeric TikTok business IDs (`6876453864464188162`). |
| `countries` | Two-letter country codes (`DE`, `FR`, `GB`), English names, or `all` (default when empty). Covers 34 countries. |
| `dateRange` | `last-7-days`, `last-30-days` (default), `last-90-days`, `last-180-days`, `last-365-days` or `custom`. |
| `startDate` / `endDate` | Custom date range in `YYYY-MM-DD` (within the library's 1-year search window). |
| `sortBy` | `last_shown_date,desc` (default), `last_shown_date,asc`, `create_time,desc`, `create_time,asc`, `impression,desc` or `impression,asc`. |
| `adMediaType` | `all` (default), `video`, `image` or `text`. |
| `adStatus` | `active` (default), `inactive` or `all`. |
| `targetGender` | `ALL` (default), `FEMALE` or `MALE`. |
| `targetAges` | Optional age brackets: `13-17`, `18-24`, `25-34`, `35-44`, `45-54`, `55+`. |
| `reachRanges` | Optional unique-viewer tiers: `0-10K`, `10K-100K`, `100K+`. |
| `includeDetails` | `true` by default. Request available creative, payer, landing page, reach and targeting disclosures. Set `false` for faster card previews. Image creatives may require a detail record. |
| `onlyNewAds` / `monitorName` | Skip ads already delivered by this monitor on earlier runs. |
| `startUrls` | Direct `library.tiktok.com/ads?...` search links, `library.tiktok.com/ads/detail/?ad_id=...` links, or bare numeric ad IDs. |
| `maxResults` | Maximum ads saved per search (1–5,000, default 100, prefill 10). |

### Output

Each dataset item is a single normalized ad record:

```json
{
  "adId": "1881679504885873",
  "adUrl": "https://library.tiktok.com/ads/detail/?ad_id=1881679504885873",
  "detailLevel": "full",
  "advertiserName": "NIKE Retail B.V.",
  "advertiserId": "6876453864464188162",
  "advertiserUrl": "https://library.tiktok.com/ads?region=all&query_type=2&adv_name=NIKE%20Retail%20B.V.&adv_biz_ids=6876453864464188162",
  "sponsor": "INITIATIVE MEDIA B.V.",
  "advertiserRegistryCountry": "Netherlands",
  "tiktokUsername": "nike",
  "tiktokDisplayName": "Nike",
  "tiktokProfileUrl": "https://www.tiktok.com/@nike",
  "tiktokFollowers": "9.4M",
  "tiktokAccountType": "VERIFIED_BA",
  "adText": "Sei dabei: Nike Black Friday Days kommen. Setze deine Favoriten auf deine Wunschliste.",
  "adCategory": "Apparel & Accessories",
  "advertisingObjective": "Traffic",
  "callToAction": "Learn more",
  "landingPageUrl": "https://www.nike.com/de/w/black-friday-2phlm?cp=80720448754_soc_CRVX3ADUEVOP",
  "adFormat": "video",
  "adStatus": "active",
  "moderationStatus": "normal",
  "firstShownDate": "2026-11-13",
  "lastShownDate": "2026-11-16",
  "estimatedAudience": "1K-10K",
  "totalImpressions": "1K-10K",
  "targetAudienceSize": "22.0M-26.8M",
  "regions": ["DE"],
  "totalRegions": 1,
  "reachByCountry": [
    {
      "region": "DE",
      "regionName": "Germany",
      "impressions": "6K"
    }
  ],
  "targeting": {
    "countries": ["DE"],
    "provinces": [],
    "cities": [],
    "ages": [
      {
        "region": "DE",
        "ages": ["18-24", "25-34", "35-44", "45-54", "55+"]
      }
    ],
    "genders": [
      {
        "region": "DE",
        "genders": ["female", "male", "unknown"]
      }
    ],
    "languages": [],
    "operatingSystems": ["ALL"],
    "deviceModels": [],
    "interest": null,
    "audience": "No",
    "audienceExclude": "No",
    "videoInteractions": null,
    "creatorInteractions": null,
    "highSpendingPower": "No"
  },
  "videoUrl": "https://library.tiktok.com/api/v1/cdn/1794963995/video/...",
  "coverImageUrl": "https://p16-common-sign.tiktokcdn.com/ad-site-i18n-sg/20261110c7c7f4ef72ff154f44fb99a7~tplv-tiktokx-origin.jpeg?...",
  "displayMode": "enhanced",
  "searchQuery": "nike",
  "searchType": "keyword",
  "searchRegion": "DE",
  "collectedAt": "2026-11-18T01:06:34.000000+00:00"
}
```

The key-value store record `OUTPUT` summarizes every search (`available`, `pagesRead`, `found`, `delivered`, `duplicates`, `alreadyDelivered`, `endReason`), any `skippedSearches` and why the run stopped.

### Pricing

**$1.75 per 1,000 ads** ($1.575 Bronze, $1.40 Silver, $1.225 Gold and above). Full ad details, when you switch them on, add **$1.75 per 1,000 ads** (so $3.50 per 1,000 for a complete ad). There is no start fee, so a search that finds nothing costs nothing.

Set a maximum charge on the run to cap spending; the run stops cleanly at the cap and keeps the ads it already saved.

### Good to know

- **Search coverage:** results depend on what TikTok discloses and how far its search pages can be read. `OUTPUT` reports incomplete runs and last-shown ordering discrepancies. Last-shown sorting applies within each fetched page. Other sort options use the order returned by TikTok.

- **Card and detail availability:** card previews can lack image and cover URLs even for image ads. Detail records may include those URLs. If TikTok stops providing details, eligible cards are kept and the run reports partial delivery. Payer, destination, audience and targeting fields depend on the ad's disclosures. Direct ad IDs and detail links request the detail record.

- **Advertiser identity:** advertiser name searches use the registered name. For ID searches, results require a verifiable advertiser match. Detail records can confirm an ID when the search preview has limited identity information.

- **Status and dates:** active and inactive reflect TikTok's library labels. Use the first- and last-shown dates to assess when an ad appeared.

- **Covered markets (34 countries):** the 27 EU member states (`AT, BE, BG, CY, CZ, DE, DK, EE, ES, FI, FR, GR, HR, HU, IE, IT, LT, LU, LV, MT, NL, PL, PT, RO, SE, SI, SK`), Iceland (`IS`), Liechtenstein (`LI`), Norway (`NO`), the United Kingdom (`GB`), Switzerland (`CH`), Turkey (`TR`) and Brazil (`BR`). Campaigns shown only in other regions (such as the US) are not part of TikTok's Commercial Content Library; for global top-performing ads see our TikTok Creative Center Scraper.

- **Search date window:** TikTok's search picker covers the rolling past 366 days, and updates can lag by up to 48 hours as TikTok processes disclosures. Direct ad IDs/links older than a year can still be fetched if TikTok retains them.

- **Expiring media URLs:** video and cover URLs carry temporary TikTok CDN signatures; download media files promptly if you need permanent archival copies.

- **Public disclosures only:** all fields come directly from what TikTok publishes publicly in its Commercial Content Library.

# Actor input Schema

## `keywords` (type: `array`):

Words or phrases to search across ad captions and advertiser names (one search per entry). Wrap a phrase in double quotes (for example "black friday") for an exact-phrase match. Leave the whole form empty for a quick 10-ad sample.

## `advertisers` (type: `array`):

Registered advertiser names (for example "NIKE Retail B.V." or "L'Oréal") or numeric TikTok business IDs (for example "6876453864464188162"). Each entry runs its own advertiser search.

## `countries` (type: `array`):

Only rows from ads shown in these countries. Use two-letter codes (DE, FR, GB, IT, ES, NL, PL) or English country names, or "all". Empty means all 34 countries covered by the TikTok Ads Library (30 EEA countries plus the UK, Switzerland, Turkey and Brazil).

## `dateRange` (type: `string`):

Published/shown window within the Ads Library's rolling 1-year archive. Setting From date or To date below automatically switches to a custom range.

## `startDate` (type: `string`):

Custom start date as YYYY-MM-DD (up to 366 days back). Leave empty to use the Date range preset above.

## `endDate` (type: `string`):

Custom end date as YYYY-MM-DD. Leave empty for today.

## `sortBy` (type: `string`):

Order in which TikTok returns matching ads.

## `adMediaType` (type: `string`):

Filter by creative format.

## `adStatus` (type: `string`):

Filter by delivery status in the library.

## `targetGender` (type: `string`):

Filter ads by targeted audience gender.

## `targetAges` (type: `array`):

Only ads targeting these age ranges. Leave empty for all ages.

## `reachRanges` (type: `array`):

Only ads within these unique-viewer reach tiers. Leave empty for all tiers.

## `includeDetails` (type: `boolean`):

Request available creative, advertiser, payer, landing page, reach and targeting disclosures. Turn off for faster card previews. Image and cover URLs may only be available in a detail record. Eligible cards are kept when optional details cannot be fetched.

## `onlyNewAds` (type: `boolean`):

For scheduled runs: skip ads this monitor already delivered on earlier runs so you receive only newly found ads.

## `monitorName` (type: `string`):

Optional name for the history kept by "Only new ads" (for example "competitors-eu"). Leave empty to scope the history automatically to your search inputs.

## `startUrls` (type: `array`):

Paste links copied from library.tiktok.com — either search result URLs (preserving their filters) or single ad detail URLs (https://library.tiktok.com/ads/detail/?ad_id=...) — or bare numeric ad IDs.

## `maxResults` (type: `integer`):

Maximum number of ads saved for each keyword, advertiser or search URL (and across pasted single-ad links).

## Actor input object example

```json
{
  "keywords": [
    "nike"
  ],
  "countries": [
    "DE"
  ],
  "dateRange": "last-30-days",
  "sortBy": "last_shown_date,desc",
  "adMediaType": "all",
  "adStatus": "active",
  "targetGender": "ALL",
  "includeDetails": true,
  "onlyNewAds": false,
  "maxResults": 10
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keywords": [
        "nike"
    ],
    "countries": [
        "DE"
    ],
    "includeDetails": true,
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("automatic/tiktok-ads-library-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "keywords": ["nike"],
    "countries": ["DE"],
    "includeDetails": True,
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("automatic/tiktok-ads-library-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "nike"
  ],
  "countries": [
    "DE"
  ],
  "includeDetails": true,
  "maxResults": 10
}' |
apify call automatic/tiktok-ads-library-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automatic/tiktok-ads-library-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/1kMqXxHt746tQA4nS/builds/2aI4erj6BXC6mymeY/openapi.json
