# TikTok Ads Library Scraper & Competitor Ad Monitor (`stumadethat/tiktok-ads-library-monitor`) Actor

Scrape the official TikTok Ad Library (EU, EEA, UK, CH) for every TikTok ad of any brand: videos, dates, days running, reach, who paid, landing page, targeting by age, gender and country, impressions per country. No login. Monitoring mode returns only new ads. HTML report included.

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

## Pricing

from $1.00 / 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.

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 & Competitor Ad Monitor

Get **every TikTok ad a brand runs** from the official [TikTok Ad Library](https://library.tiktok.com/ads). It covers ads shown in the EU, EEA, UK, Switzerland and Turkey. You get the videos, the run dates, the audience reached, the advertiser's TikTok account, the landing page and the full targeting: age, gender, countries, audience size and devices.

**Monitoring mode** returns only the ads a competitor launched since your last run. Schedule it and you get new creatives as soon as they go live.

### What you get

| Field | Example |
|---|---|
| Advertiser, ad title, category | DECATHLON COACH · "Decathlon Coach: App Gratuite" · Apps |
| Format, video URL, cover image | VIDEO · `https://library.tiktok.com/api/v1/cdn/…` |
| First shown, last shown, **days running**, active | 2026-10-30 → 2026-11-02 · 4 days |
| Unique users reached (range) | 0-1K |
| Removed by TikTok? Reason | `false` |
| **Details:** who paid, advertiser business ID, registry country | DECATHLON COACH · France |
| **Details:** TikTok account, profile link, followers | @decathlon_coach |
| **Details:** call to action, objective, **landing page** | Go to App Store · App promotion · apps.apple.com/… |
| **Details:** targeting: countries, ages, genders, audience size, interests, OS, languages | FR · 18-24…55+ · 23.1M-28.2M · iPhone |
| **Details:** impressions per country with an age × gender breakdown | FR 0-1K |

Each advertiser also gets a **summary**: ads collected, active ads, new ads in the last 7 and 30 days, longest-running ad, categories, target countries and payers. The summary is saved as `SUMMARY` (JSON) and as a shareable `REPORT` (HTML) page.

### Use cases

- **Competitor research on TikTok:** see every ad a brand runs in Europe, with videos and targeting.
- **Find the winning creatives:** ads that keep running for weeks are the ones that work. Sort by `daysRunning`.
- **Get alerts on new campaigns:** schedule monitoring mode daily and receive only new ads by email, Slack, Sheets or webhook.
- **Agency and client reporting:** one HTML report per brand, ready to send.
- **UGC and creative inspiration:** download the videos of a whole category.

### How to use it

1. Add **advertiser names or keywords** (e.g. `decathlon`), or **advertiser business IDs**. Put a term in "double quotes" to match the exact phrase.
2. Pick the **countries** (empty = all covered countries) and a **date window** (last N days, or a start and end date).
3. Turn on **Include details** for the payer, landing page, targeting and impressions.
4. Run it. Ads appear in the dataset, and `SUMMARY` and `REPORT` appear in the key-value store.

```json
{
  "searchTerms": ["decathlon", "nike"],
  "countries": ["FR", "DE"],
  "lastDays": 30,
  "maxAdsPerSearch": 200,
  "includeDetails": true
}
```

**Monitoring:** set `"onlyNewAds": true` and create a daily **Schedule** in Apify Console. The first run stores a baseline. Each later run returns only ads never seen before.

### Pricing (pay per result)

| Event | Price |
|---|---|
| Ad | **$1 per 1,000 ads** |
| Ad details (payer, landing page, targeting, impressions per country) | +$3 per 1,000 ads |
| Advertiser summary + HTML report | $0.01 per advertiser |

Example: 200 ads of 2 brands cost **$0.22** without details and **$0.82** with details. Set a maximum cost per run in the Console, and the Actor stops cleanly when it reaches it.

### Good to know

- The TikTok Ad Library only covers **ads shown in Europe** (EU/EEA, UK, Switzerland, Turkey), as required by the EU Digital Services Act. US-only ads are not in it.
- **Video and image links are signed by TikTok and expire after a few days.** Download what you want to keep.
- Searches by name can return several advertisers with similar names. Use the **business ID** to follow exactly one.
- The Actor uses a real browser, as TikTok requires, and Apify Proxy. If you see blocks, switch the proxy group to **Residential**.

### Integrations and API

Use the Apify API, the Python and JavaScript clients, Make, Zapier, n8n or Google Sheets, or call the Actor from **AI agents through the Apify MCP server**.

Ready-to-run code examples (Python, Node.js, cURL, and a daily cross-platform competitor monitor that writes one CSV): [github.com/louisstuart06-cmd/ad-library-scrapers](https://github.com/louisstuart06-cmd/ad-library-scrapers).

### Ad Monitor suite: same author, same output format

| Actor | What it monitors |
|---|---|
| [Google Ads Transparency Scraper & Competitor Ad Monitor](https://apify.com/stumadethat/google-ads-transparency-monitor) | Google Search, YouTube, Shopping, Maps and Play ads of any advertiser, in any country |
| [TikTok Ads Library Scraper & Competitor Ad Monitor](https://apify.com/stumadethat/tiktok-ads-library-monitor) | TikTok ads shown in Europe, with targeting, payer and landing pages |
| [Facebook Ads Library Scraper — Meta & Instagram Ad Monitor](https://apify.com/stumadethat/meta-ads-library-monitor) | Facebook and Instagram ads of any brand, in any country |

The Actors share the same features (monitoring mode, advertiser summary, HTML report, `daysRunning`), so you can follow a competitor across Google, TikTok, Facebook and Instagram in one workflow.

### FAQ

**Is it legal?** The Actor only reads ads that TikTok publishes in its public, legally mandated Ad Library, without logging in. You are responsible for how you use the data.

**Why are impressions shown as ranges?** TikTok publishes ranges (e.g. 10K-100K), not exact numbers.

**Is there an official TikTok Ad Library API?** TikTok's Commercial Content API exists, but access is granted on application. This Actor reads the public TikTok Ad Library website, with no account or approval.

**Why only Europe?** The TikTok Ad Library is required by the EU Digital Services Act. It lists ads shown in the EU, the EEA, the UK and Switzerland, even when the advertiser is based elsewhere.

**What is the difference with TikTok Creative Center?** Creative Center shows a selection of top ads. The Ad Library, and this Actor, return all the ads of the brand you search, with targeting and payer.

**How much does daily monitoring cost?** With `onlyNewAds` you pay only for new ads plus $0.01 per search, usually well under $1 per month per competitor. Browser and proxy costs are included in the price.

**I need another field.** Open an issue on the Actor's page. Requests are answered quickly.

# Actor input Schema

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

Brand / advertiser names or keywords, e.g. 'decathlon', 'shein'. Put a term in double quotes for an exact phrase.

## `advertiserIds` (type: `array`):

TikTok advertiser business IDs (the 'adv_biz_ids' shown in Ad Library links). Most precise way to follow one advertiser.

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

ISO codes covered by the TikTok Ad Library (EU/EEA countries, GB, CH, TR…). Leave empty for all countries.

## `lastDays` (type: `integer`):

Date window. Ignored when a start date is set.

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

YYYY-MM-DD. Overrides 'last N days'.

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

YYYY-MM-DD. Default: today.

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

Order in which TikTok returns ads.

## `maxAdsPerSearch` (type: `integer`):

Stop after this many ads for each name / keyword / ID.

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

Who paid, advertiser business ID and registry country, TikTok account and followers, call to action, objective, landing page, targeted ages / genders / countries / audience size / OS, impressions per country with age × gender breakdown. Charged as an extra event per ad.

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

Schedule this Actor daily/weekly with this option on to receive only the brand's NEW ads. The first run stores a baseline.

## `monitorStoreName` (type: `string`):

Key-value store that remembers ads already seen. Change it to reset the history.

## `includeAdvertiserSummary` (type: `boolean`):

Per advertiser: ads, active ads, new ads in 7/30 days, longest-running ad, categories, target countries, payers. Saved as SUMMARY (JSON) and REPORT (HTML).

## `maxConcurrency` (type: `integer`):

Parallel detail requests. Lower it if you see blocks.

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

Apify Proxy is recommended.

## Actor input object example

```json
{
  "searchTerms": [
    "decathlon"
  ],
  "countries": [
    "FR"
  ],
  "lastDays": 30,
  "sortBy": "LAST_SHOWN",
  "maxAdsPerSearch": 100,
  "includeDetails": false,
  "onlyNewAds": false,
  "monitorStoreName": "tiktok-ads-monitor",
  "includeAdvertiserSummary": true,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `ads` (type: `string`):

No description

## `adsWithDetails` (type: `string`):

No description

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

No description

## `report` (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 = {
    "searchTerms": [
        "decathlon"
    ],
    "countries": [
        "FR"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("stumadethat/tiktok-ads-library-monitor").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": ["decathlon"],
    "countries": ["FR"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("stumadethat/tiktok-ads-library-monitor").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": [
    "decathlon"
  ],
  "countries": [
    "FR"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call stumadethat/tiktok-ads-library-monitor --silent --output-dataset

```

## MCP server setup

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

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/HOmxpoyU7QFgC0CjS/builds/bd9kj5PaVHBpAAYHp/openapi.json
