# TikTok Ad Library Scraper: $0.25 per 1,000 Ads (`zaiq/tiktok-ads-library-scraper`) Actor

Every ad TikTok publishes in its Ad Library (EU, UK, Switzerland, Norway, Turkey...): advertiser, ad text, first and last shown dates, estimated audience, video and cover links, for any advertiser name or keyword, country and date range. No login, no TikTok account. $0.25 per 1,000 ads.

- **URL**: https://apify.com/zaiq/tiktok-ads-library-scraper.md
- **Developed by:** [Zaiq](https://apify.com/zaiq) (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.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: every TikTok ad by advertiser or keyword

![TikTok Ad Library Scraper: Every Ad by Advertiser or Keyword](https://api.apify.com/v2/key-value-stores/4VJNANhwKgqPpXtAi/records/hero-tiktok-ads-library-scraper.jpg)

Get **every ad TikTok publishes in its Ad Library** (the Commercial Content Library TikTok keeps under the EU Digital Services Act) for **any advertiser name or keyword**, **country** and **date range**: the **advertiser**, the **ad text**, **first and last shown dates**, the **estimated audience**, whether it is a **video or image ad**, and links to the **video, cover and images** and the ad's page in the library.

**Need more than one site?** [Competitor Ads Scraper](https://apify.com/zaiq/competitor-ads-scraper) Collect competitor ads from Facebook, Google, TikTok and LinkedIn in one run.

Covers the **27 EU countries, the UK, Switzerland, Norway, Iceland, Liechtenstein and Turkey**, or all of them at once. Built for **competitor ad research**, **creative inspiration**, **agency pitches** and **brand monitoring**. No TikTok account, no Ads Manager access.

### What you get

| Field | What it holds |
|---|---|
| `adId`, `url` | the ad's id and its page in TikTok's Ad Library |
| `advertiser` | who paid for the ad (the name TikTok shows) |
| `text` | the ad's caption |
| `firstShown`, `lastShown` | the first and last day the ad was shown |
| `estimatedAudience` | TikTok's reach band, e.g. 300K-400K |
| `format` | video or image |
| `videoUrl`, `cover`, `images` | links to the creative (TikTok's links expire after a while: download what you keep) |
| `region`, `search`, `rank` | the country, your search and the ad's position |

### What people use it for

- **Competitor ad research:** every ad a rival ran on TikTok in a market, with how long it ran
- **Creative inspiration:** find long-running ads (first shown months ago, still shown) for any keyword: they work
- **Agency pitches:** show a prospect what their competitors run on TikTok
- **Brand monitoring:** see who advertises with your brand name or product in their ads
- **Market research:** which advertisers buy TikTok reach in a country, and how much
- **AI and creative datasets:** ad texts and creatives at scale

### How to use it

1. Add **advertiser names or keywords** (or turn on **Every ad in the country**).
2. Pick the **country** (or All countries) and the **period** (last N days, or from/to dates).
3. Set how many **ads per search**, click **Start**, and download the rows or schedule the run weekly.

### Input

| Field | Example | Notes |
|---|---|---|
| Advertisers or keywords | `running shoes` | Advertiser names or words in the ads |
| Every ad in the country | off | Newest ads, no search |
| Country | France | EU, EEA, UK, Switzerland, Turkey, or All countries |
| Last days | `30` | Or set From/To dates |
| Order | Newest first | By last shown date |
| Ads per search | `100` | Up to 5,000 |

### Output

Each result is one row in the run's dataset (download it as JSON, CSV, Excel, XML or HTML, or read it through the API). An example row (values shortened):

```json
{
  "kind": "ad",
  "adId": "1869573012326706",
  "advertiser": "Example Telecom",
  "text": "New phone, new plan: switch today",
  "firstShown": "2026-07-02",
  "lastShown": "2026-10-11",
  "estimatedAudience": "300K-400K",
  "format": "image",
  "images": [
    "https://p16-common-sign.tiktokcdn.com/..."
  ],
  "region": "FR",
  "search": "phone plan",
  "url": "https://library.tiktok.com/ads/detail/?ad_id=1869573012326706",
  "rank": 1
}
```

A record named `SUMMARY` in the run's key-value store says what each input returned, with any notes (for example an account that does not exist), what was charged and how much traffic the run used.

### Pricing

- **$0.00025 per ad**
- Searches with no ads, and pages TikTok refused, are free
- Launch price. It may rise later; Apify emails every user 14 days before any price increase takes effect, and a rise can happen at most once a month.

What typical jobs cost at the list price:

| Job | Cost |
|---|---|
| One advertiser's last 100 ads in one country | $0.025 |
| 5 competitors x 100 ads | $0.125 |
| 1,000 ads for a keyword across all countries | $0.25 |
| Weekly check of 10 competitors (50 ads each), for a month | $0.50 |

On Apify's Scale and Business plans the per-event prices are lower (Store discounts). Set **Maximum cost per run** and the Actor stops cleanly when it is reached: you never pay more than that.

### Tips

- Long-running ads (an early `firstShown` and a recent `lastShown`) are the ones that work: sort your rows by run length.
- Search the brand name and the product name: the library matches advertiser names and words in the ads.
- Use **All countries** to see an advertiser's whole European TikTok activity at once.
- Download creatives soon after the run: TikTok's media links expire.

### Use it through the API

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("zaiq/tiktok-ads-library-scraper").call(run_input={"searches": ["running shoes"], "country": "DE", "lastDays": 30, "maxAdsPerSearch": 100})
for row in client.dataset(run.default_dataset_id).iterate_items():
    print(row)
```

**JavaScript**

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('zaiq/tiktok-ads-library-scraper').call({"searches": ["running shoes"], "country": "DE", "lastDays": 30, "maxAdsPerSearch": 100});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**HTTP (one call, results back)**

```bash
curl -X POST 'https://api.apify.com/v2/acts/zaiq~tiktok-ads-library-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"searches": ["running shoes"], "country": "DE", "lastDays": 30, "maxAdsPerSearch": 100}'
```

### Integrations and schedules

- **Schedules:** run it every hour, day or week from the Apify Console (Schedules) and keep a history of results.
- **Make, Zapier, n8n, Google Sheets, Slack, Airtable:** connect it through Apify's integrations, or send each finished run to a **webhook**.
- **Datasets:** results stay in the run's dataset; export them or read them by API whenever you need them.

### Use it with AI agents (MCP)

Add Apify's MCP server with this Actor already pinned (`https://mcp.apify.com?tools=zaiq/tiktok-ads-library-scraper`) to Claude, ChatGPT, Cursor, VS Code or any MCP client. The agent can find this Actor and run it for you: ask it for "the TikTok ads a competitor ran in Germany over the last 90 days". AI agents can also pay for runs directly through Apify's agentic payments.

### Limits

- TikTok's Ad Library only covers ads shown in the EU/EEA, the UK, Switzerland and Turkey (the markets where TikTok must publish them).
- Spend and impressions are only given by TikTok for some ads; most show an audience band.
- Video and image links are TikTok's signed links, which expire.

### FAQ

**Do I need a TikTok or Ads Manager account?**

No. The Ad Library is public.

**Does it cover the US?**

No: TikTok publishes its ad library for Europe (EU/EEA), the UK, Switzerland and Turkey only.

**Can I search by keyword?**

Yes. The search matches advertiser names and words in the ad text.

**How far back can I go?**

Up to a year per run; TikTok keeps ads in the library for at least a year after they were last shown.

**How fast is it?**

About 12 ads every 2 to 3 seconds.

### Related Actors from Zaiq

- [facebook-ads-library-scraper](https://apify.com/zaiq/facebook-ads-library-scraper): the same advertisers' ads on Facebook and Instagram
- [google-ads-transparency-scraper](https://apify.com/zaiq/google-ads-transparency-scraper): their ads on Google and YouTube
- [tiktok-transcript-scraper](https://apify.com/zaiq/tiktok-transcript-scraper): what is said in TikTok videos
- [tiktok-shop-scraper](https://apify.com/zaiq/tiktok-shop-scraper): what sells on TikTok Shop

### Support

Questions, a site that changed, or a field you need? Open an issue on this Actor's **Issues** tab: we answer there, usually within a day.

***

Also found as: tiktok ad library scraper, tiktok ads library api, tiktok ads scraper, tiktok competitor ads, tiktok commercial content library, tiktok ad spy, tiktok creative research, dsa ad repository.

# Actor input Schema

## `searches` (type: `array`):

Advertiser names or words in the ads, one per line.

## `allAds` (type: `boolean`):

Also list every ad shown in the country in the period (newest first), without a search.

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

Where the ads were shown. TikTok's Ad Library covers the EU, the EEA, the UK, Switzerland and Turkey.

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

Ads shown in the last N days (ignored when both dates are set).

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

Optional start date (YYYY-MM-DD).

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

Optional end date (YYYY-MM-DD); default today.

## `sort` (type: `string`):

Order of the ads.

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

How many ads to return for each search.

## Actor input object example

```json
{
  "searches": [
    "running shoes"
  ],
  "allAds": false,
  "country": "FR",
  "lastDays": 30,
  "sort": "newest",
  "maxAdsPerSearch": 100
}
```

# Actor output Schema

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

Dataset: the results.

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

What each input returned, and notes.

# 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 = {
    "searches": [
        "running shoes"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("zaiq/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 = { "searches": ["running shoes"] }

# Run the Actor and wait for it to finish
run = client.actor("zaiq/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 '{
  "searches": [
    "running shoes"
  ]
}' |
apify call zaiq/tiktok-ads-library-scraper --silent --output-dataset

```

## MCP server setup

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