# TikTok Ad Library Scraper - Commercial Content Library EU (`kamerozkan/tiktok-ad-library-scraper`) Actor

Scrape the official TikTok Ad Library (Commercial Content Library) for the EU, EEA, Switzerland and UK: search ads by advertiser name or keyword and country, with first and last shown dates, unique users seen, video and cover links. No login.

- **URL**: https://apify.com/kamerozkan/tiktok-ad-library-scraper.md
- **Developed by:** [Kamer Ozkan](https://apify.com/kamerozkan) (community)
- **Categories:** Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 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 Ad Library Scraper - Commercial Content Library EU

TikTok Ad Library scraper for the official TikTok Commercial Content Library: search competitors' TikTok ads by advertiser name or keyword in the EU, EEA, Switzerland and the UK, and get first and last shown dates, days running, unique users seen, ad title, category, video and cover links.

### What does TikTok Ad Library Scraper do?

It runs the same search you would do on library.tiktok.com and turns the results into clean rows: one row per ad. Pick a country (or all covered countries), a time window and one or more advertiser names or keywords. No TikTok account, cookies, API key or proxy setup needed: the proxy is included in the price.

The TikTok Ad Library is TikTok's public ad transparency archive under the EU Digital Services Act, so it covers ads shown in the EU, EEA, Switzerland and the UK.

### Who is it for?

- **Performance marketers and media buyers**: see which creatives a competitor runs right now, how long each one has been live and how many people it reached.
- **Agencies**: pull a client's or a prospect's full TikTok ad history for a pitch or an audit in minutes.
- **Brand and market research teams**: track how many ads a category or brand runs per country and month.
- **Creative strategists**: collect video and cover links of long-running ads (the ones that keep getting budget) as inspiration.

### What data can you get?

| Field | Example |
|---|---|
| `advertiserName` | BOUYGUES TELECOM |
| `adTitle` | Offre Samsung S26 Series |
| `category` | Tech & Electronics |
| `firstShown`, `lastShown` | 2026-07-02, 2026-10-22 |
| `daysShown` | 113 |
| `uniqueUsersSeen` | 400K-500K (range reported by TikTok) |
| `format`, `videoCount` | video or image, number of videos |
| `videoUrl`, `coverImageUrl`, `imageUrls` | creative links (they expire after some time, download what you need) |
| `adId`, `adUrl` | TikTok ad ID and its Ad Library page |
| `country`, `searchTerm`, `totalAdsForSearch` | the search that found it and how many ads TikTok counts for it |
| `scrapedAt` | time of the run |

Advertisers in the library are companies; no personal data is collected.

### How much does it cost?

You pay only for ads: **$1.50 per 1,000 ads** on the Free plan ($0.0015 per ad), with lower prices on paid Apify plans: $1.35 (Bronze), $1.275 (Silver) and $1.20 (Gold and above) per 1,000. Proxy and platform usage are included.

Examples at the Free-plan price:

- The 100 most recent ads of one brand: **$0.15**
- 500 ads of 5 competitors in one country: **$0.75**
- A weekly check of 10 competitors with 50 ads each: $0.75 per run, about **$3.00 per month**

Set "Max results" or a maximum cost per run to cap spending. Searches the library does not answer are not charged.

### How to use it

1. Click **Try for free**.
2. Type one or more advertiser names or keywords, for example `zalando` or `nike`.
3. Choose the country where the ads were shown (or all covered countries) and the time window in days.
4. Set how many ads you want per search, then click **Start** and download the results as JSON, CSV, Excel or via API.

Results are sorted by last shown date, newest first, so a small "Max ads per search" gives you the ads that are live now.

### Input example

```json
{
  "searchTerms": ["samsung", "lidl"],
  "country": "FR",
  "daysBack": 30,
  "maxItemsPerSearch": 100,
  "maxItems": 500
}
```

### Output example

Real row from a test run on 2026-10-24 (image links shortened):

```json
{
  "adId": "1869573012337042",
  "adUrl": "https://library.tiktok.com/ads/detail/?ad_id=1869573012337042",
  "advertiserName": "BOUYGUES TELECOM",
  "adTitle": "Offre Samsung S26 Series",
  "category": "Tech & Electronics",
  "firstShown": "2026-07-02",
  "lastShown": "2026-10-22",
  "daysShown": 113,
  "uniqueUsersSeen": "400K-500K",
  "format": "image",
  "videoUrl": null,
  "coverImageUrl": "https://p16-common-sign.tiktokcdn.com/ad-site-i18n-sg/202604165d0d8079b8530d014a62b074~tplv-tiktokx-origin.jpeg?...",
  "imageUrls": ["https://p16-common-sign.tiktokcdn.com/ad-site-i18n-sg/202604165d0d8079b8530d014a62b074~tplv-tiktokx-origin.jpeg?..."],
  "videoCount": 0,
  "searchTerm": "samsung",
  "country": "FR",
  "totalAdsForSearch": 3186,
  "scrapedAt": "2026-10-24T08:24:49+00:00"
}
```

### Integrations and API

Run it from your code with the Apify API or the `apify-client` package, schedule it in Apify, or connect it to Make, n8n, Zapier, Google Sheets or a webhook.

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("kamerozkan/tiktok-ad-library-scraper").call(run_input={
    "searchTerms": ["zalando", "about you"],
    "country": "DE",
    "daysBack": 30,
    "maxItemsPerSearch": 100,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["advertiserName"], item["lastShown"], item["uniqueUsersSeen"], item["adUrl"])
```

### FAQ

**Which countries are covered?** The TikTok Ad Library only lists ads shown in the EU, EEA, Switzerland and the UK. Ads shown only in the US or elsewhere are not in the library.

**Can I search by keyword instead of advertiser?** Yes. The search works like the library's own search box: an advertiser name or a word. Results include every advertiser that matches, with the real advertiser name on each row.

**How many ads can I get per search?** Up to 2,000 per search in one run. For very large advertisers narrow the time window or the country, or add more searches.

**Do the video links last forever?** No. TikTok signs creative links and they expire after some time. Download the creatives you want to keep soon after the run.

**Does it show ad spend or impressions?** No. TikTok does not publish spend for commercial ads; "unique users seen" is the reach range TikTok reports.

**Is it legal to collect this data?** It collects the public ad transparency data TikTok publishes for the EU. You are responsible for how you use it.

### Related Actors

- [Facebook Ad Library Scraper](https://apify.com/kamerozkan/facebook-ad-library-change-monitor) - competitor ads from the Meta Ad Library with new and stopped ad alerts
- [Google Ads Transparency monitor](https://apify.com/kamerozkan/google-ads-verified-change-monitor) - competitor ads from the Google Ads Transparency Center

### Support and feedback

- Found a bug or missing a field? Open an issue on the **Issues** tab. We reply within 48 hours and ship most fixes within a few days.
- If the Actor saves you time, a short review on this page helps other users find it.

# Actor input Schema

## `searchTerms` (type: `array`):

What you would type into the TikTok Ad Library search box: an advertiser or brand name such as "zalando" or "nike", or a keyword. Each entry is one search.

## `country` (type: `string`):

The TikTok Ad Library only covers ads shown in the EU, EEA, Switzerland and the UK. 'all' searches all of them.

## `daysBack` (type: `integer`):

Only ads last shown within this many days up to today. 30 gives current campaigns, 365 a full year.

## `maxItemsPerSearch` (type: `integer`):

Stop each search after this many ads, most recently shown first.

## `maxItems` (type: `integer`):

Stop after this many ads in total. You are charged per ad, so this also caps the cost of the run.

## `proxyConfiguration` (type: `object`):

Apify Proxy is used by default and included in the price. Change it only if you know you need to.

## Actor input object example

```json
{
  "searchTerms": [
    "zalando"
  ],
  "country": "DE",
  "daysBack": 365,
  "maxItemsPerSearch": 30,
  "maxItems": 500,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One row per result in the default dataset.

# 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 = {
    "searchTerms": [
        "zalando"
    ],
    "country": "DE",
    "maxItemsPerSearch": 30,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("kamerozkan/tiktok-ad-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 = {
    "searchTerms": ["zalando"],
    "country": "DE",
    "maxItemsPerSearch": 30,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("kamerozkan/tiktok-ad-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 '{
  "searchTerms": [
    "zalando"
  ],
  "country": "DE",
  "maxItemsPerSearch": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call kamerozkan/tiktok-ad-library-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kamerozkan/tiktok-ad-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/CuwYf6lN6TzzyDM8o/builds/VaNbgDIyM7owgWzmP/openapi.json
