# TikTok Ads Library Scraper (`northloop-labs/tiktok-ads-library-scraper`) Actor

Scrape the public TikTok Ads Library (EU, EEA, UK, CH, TR) by brand: ad text, video and image links, first and last shown dates, estimated audience and audit status. No login.

- **URL**: https://apify.com/northloop-labs/tiktok-ads-library-scraper.md
- **Developed by:** [Northloop Labs](https://apify.com/northloop-labs) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 1,000 ad saveds

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: Brand Ads in Europe

**Get every ad a brand ran on TikTok in Europe from the public TikTok Ads Library.** Type brand names such as `Zalando`, `Sephora` or `Revolut`. The Actor finds the brand's own advertiser accounts in the library (for example "Zalando SE" or "COCA-COLA ROMANIA SRL"), and saves their ads with the ad text, video and image links, first and last shown dates, days shown, estimated audience, format and audit status.

It covers the regions in TikTok's library: the EU and EEA, the UK, Switzerland and Turkey. No TikTok account, no API key and no proxy setup needed.

**Try it now:** click **Start** with the ready made input (`Zalando`, last 12 months, up to 50 ads). It takes about a minute and costs about $0.05.

### Who uses it

- **Marketers and agencies** watching what competitors run on TikTok, in which countries and for how long.
- **Creative teams** collecting video ads for inspiration and trend research.
- **Analysts** comparing how often brands advertise and how long their ads stay live.
- **Compliance and research teams** working with the transparency data TikTok publishes under the EU Digital Services Act.

### How much does it cost?

You only pay for what you get (pay per event, no monthly fee):

| Event | Price | When it is charged |
|---|---|---|
| Actor start | $0.02 per GB of memory | Once per run (runs use 1 GB, so $0.02). Covers the browser the library needs |
| Brand searched | $0.005 | Per brand searched to the end, with or without ads. Brands that fail are free |
| Ad saved | $0.0005 | Per ad in the dataset, so **$0.50 per 1,000 ads** |

**Examples:**

- 1 brand with 50 ads: about **$0.05**.
- 10 brands with 50 ads each: about **$0.32**.
- 20 brands with 200 ads each: about **$2.12**.

Duplicates and ads from other advertisers are skipped and never charged. Apify plan discounts (Bronze, Silver, Gold) lower the prices further.

Set **Maximum cost per run** in the run options to cap what a run can cost. The Actor stops cleanly when it gets there and keeps everything saved so far.

### How to scrape the TikTok Ads Library

1. Enter one or more **Brands** (up to 100 per run).
2. Optional: pick **Regions** (for example DE, FR, RO) or keep **all**.
3. Optional: set a date window, ad status (active or ended) and format (video, image, text).
4. Set **Max ads per brand**.
5. Click **Start**, then export the results as CSV, Excel, JSON or HTML, or read them through the API.

#### Input example

```json
{
  "brands": ["Zalando", "Sephora", "Revolut"],
  "regions": ["DE", "FR"],
  "daysBack": 90,
  "adStatus": "all",
  "maxAdsPerBrand": 100
}
```

### How the brand is matched

TikTok's library lists ads by advertiser account, and big brands often use several legal entities. The Actor:

1. Asks the library's own advertiser search for accounts matching your brand.
2. Runs the library's keyword search to see which accounts really run ads that mention the brand, and adds those whose name matches.
3. Keeps only accounts whose name is the brand (creators who use the brand hashtag are left out by default).
4. If the brand's accounts show no ads in the regions you picked, it checks all regions and marks those rows with region `all`.

Every row says how it was found (`matchedBy`) and which account ran it (`advertiserName`).

### What data you get

| Field | Description |
|---|---|
| `adId`, `adLibraryUrl` | TikTok ad id and its page in the library |
| `brandQuery`, `matchedBy`, `advertiserName`, `advertiserBizId` | The brand you typed, how it was matched, and the advertiser account |
| `adText`, `format` | Ad text and format (video, image or text) |
| `firstShownDate`, `lastShownDate`, `daysShown`, `isActive` | When the ad ran and whether it is still running |
| `estimatedAudience` | Audience range, for example 10K-100K |
| `videoUrls`, `coverImageUrl`, `imageUrls` | Creative links |
| `auditStatus`, `rejectionInfo` | Approved or removed, with TikTok's reason when removed |
| `region`, `searchWindow`, `scrapedAt` | Region searched, date window and collection time |

#### Output example

```json
{
  "adId": "1882126911897713",
  "adLibraryUrl": "https://library.tiktok.com/ads/detail/?ad_id=1882126911897713",
  "brandQuery": "Decathlon",
  "matchedBy": "advertiser",
  "advertiserName": "DECATHLON",
  "adText": "Noël nous rassemble, le sport aussi !",
  "format": "video",
  "firstShownDate": "2026-11-17",
  "lastShownDate": "2026-11-17",
  "daysShown": 1,
  "isActive": true,
  "estimatedAudience": "10K-100K",
  "auditStatus": "approved",
  "region": "FR"
}
```

The dataset has two views: **Ads overview** and **Creatives**.

### Tips

- Put many brands in one run. The start fee is paid once per run.
- Some brands advertise in Europe under a company name that does not contain the brand (for example a holding company). If a brand returns no ads, try its legal name as the brand.
- Video links from the library expire after some time. Download the videos soon after the run if you need them.
- The library sometimes answers slowly or is busy. The Actor waits and retries on its own, and stops with a clear message if TikTok stays busy, so you do not pay for an empty run.

### Use with AI agents, MCP, Make, Zapier, n8n and the API

#### AI agents and the Apify MCP server

Your AI agent can run this Actor as a tool through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Add this server URL in Claude, Cursor, VS Code or any other MCP client to load only this Actor:

```text
https://mcp.apify.com?tools=northloop-labs/tiktok-ads-library-scraper
```

Pass `maxTotalChargeUsd` in `callOptions` to cap what one run may cost. Example prompt: *"Show me Sephora's TikTok ads in France from the last 30 days, newest first."*

#### Make, Zapier and n8n

Apify has official integrations for [Make](https://docs.apify.com/platform/integrations/make), [Zapier](https://docs.apify.com/platform/integrations/zapier) and [n8n](https://docs.apify.com/platform/integrations/n8n). Use "Run Actor", pick `northloop-labs/tiktok-ads-library-scraper`, paste your input as JSON and send the ads to Google Sheets, Airtable or Slack.

#### API

```bash
curl -X POST "https://api.apify.com/v2/acts/northloop-labs~tiktok-ads-library-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"brands": ["Zalando"], "regions": ["DE"], "maxAdsPerBrand": 50}'
```

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("northloop-labs/tiktok-ads-library-scraper").call(run_input={"brands": ["Sephora"], "regions": ["FR"]})
for ad in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(ad["advertiserName"], ad["firstShownDate"], ad["adText"])
```

### Data and privacy

The Actor reads only the public TikTok Ads Library, which TikTok publishes for ad transparency under the EU Digital Services Act and which anyone can open without logging in. It collects data about ads and advertiser accounts, not about viewers. If you store or process data that relates to people, make sure you have a legal basis under GDPR.

### Is it legal to scrape the TikTok Ads Library?

The library is a public transparency tool. Reading public data is generally allowed, but the rules depend on your country and on how you use the data. Ad videos can be protected by copyright and trademarks, so use them for research and analysis, not to republish as your own. This is not legal advice.

### FAQ

**Does it cover the US?** No. TikTok's Ads Library covers ads shown in Europe (EU, EEA, UK, Switzerland and Turkey).

**Why do some countries return so few ads?** The library itself shows much less for some regions. Spain is the clearest case: TikTok often answers with errors there and lists few brand accounts. When that happens the Actor falls back to all regions, so you still get the brand's ads, marked with region `all`.

**Why did a brand return no ads?** Either the brand ran no ads in that window, or it advertises under a company name that does not contain the brand. Try its legal name, a longer window or all regions.

**Why are impressions and spend often empty?** TikTok only publishes them for some ads.

**What happens if my budget is too low?** The run stops right away with a clear message and only the start fee is charged.

### More Actors from northloop labs

- [Facebook Ads Library Scraper](https://apify.com/northloop-labs/meta-ads-library-scraper)
- [Google Ads Transparency Center Scraper](https://apify.com/northloop-labs/google-ads-transparency-library)
- [X Ads Transparency Scraper](https://apify.com/northloop-labs/x-ads-transparency-scraper)
- [LinkedIn Ad Library Scraper](https://apify.com/northloop-labs/linkedin-ads-library-scraper)

### Feedback

Found a bug or need a field that is missing? Open an issue on the **Issues** tab and we will look at it quickly.

# Actor input Schema

## `brands` (type: `array`):

Brand or advertiser names, for example Zalando or Lidl. One per line, up to 100.

## `searchMode` (type: `string`):

Advertiser finds the advertiser accounts whose name matches your brand. Keyword searches ad text instead.

## `keywordFallback` (type: `boolean`):

If no advertiser name matches, search the brand as a keyword.

## `regionFallback` (type: `boolean`):

If a brand's own accounts show no ads in the regions you picked, search all regions for that brand. Those rows have region "all".

## `keywordOnlyBrandAdvertisers` (type: `boolean`):

Keyword search also finds creators who use the brand hashtag. On by default: keep only ads from an advertiser whose name matches the brand.

## `maxAdvertisersPerBrand` (type: `integer`):

Big brands run ads from several accounts (for example a country entity). How many of the best matching accounts to include.

## `regions` (type: `array`):

Country codes where the ads ran (EU, EEA, GB, CH, TR), or all. Example: DE, FR, RO.

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

How far back to look when no start date is set.

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

Optional. Ads shown on or after this date.

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

Optional. Ads shown on or before this date. Default is today.

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

All ads, only active ones or only ended ones.

## `adFormat` (type: `string`):

Filter by creative format.

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

Order of the ads.

## `maxAdsPerBrand` (type: `integer`):

Stop after this many ads for one brand.

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

Stop the whole run after this many ads.

## `proxyMode` (type: `string`):

How the Actor connects to the library. Auto opens a fresh session when TikTok is busy. Proxy costs are never passed on to you.

## `requestDelayMs` (type: `integer`):

Pause between library requests. Higher is gentler and less likely to be blocked.

## Actor input object example

```json
{
  "brands": [
    "Zalando"
  ],
  "searchMode": "advertiser",
  "keywordFallback": true,
  "regionFallback": true,
  "keywordOnlyBrandAdvertisers": true,
  "maxAdvertisersPerBrand": 6,
  "regions": [
    "all"
  ],
  "daysBack": 365,
  "adStatus": "all",
  "adFormat": "all",
  "sortBy": "last_shown",
  "maxAdsPerBrand": 50,
  "maxResults": 1000,
  "proxyMode": "auto",
  "requestDelayMs": 1200
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `media` (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 = {
    "brands": [
        "Zalando"
    ],
    "regions": [
        "all"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("northloop-labs/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 = {
    "brands": ["Zalando"],
    "regions": ["all"],
}

# Run the Actor and wait for it to finish
run = client.actor("northloop-labs/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 '{
  "brands": [
    "Zalando"
  ],
  "regions": [
    "all"
  ]
}' |
apify call northloop-labs/tiktok-ads-library-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,northloop-labs/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/9aDe5ZNzFyhMsCjdc/builds/HoHQHOKiV34wc2YQl/openapi.json
