# TikTok Ads Scraper - Creative Center Top Ads & Ad Library (`adintel-labs/tiktok-ad-library-scraper`) Actor

TikTok ads scraper for Creative Center Top Ads: video URLs, captions, industry, objective, CTR, likes & landing pages by country and period. Plus a Beta mode for the EU TikTok Ad Library (can be intermittently unavailable). No login. $2 / 1,000 ads.

- **URL**: https://apify.com/adintel-labs/tiktok-ad-library-scraper.md
- **Developed by:** [Abi Fadeyi](https://apify.com/adintel-labs) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 ad scrapeds

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 Scraper — Creative Center Top Ads (video, CTR, landing pages) + EU Ad Library (Beta)

**Pull TikTok's top-performing ads from Creative Center with video download URLs, captions, industry, objective, CTR, likes and landing pages — filtered by country, period and industry. No TikTok login.** An experimental mode also searches the EU TikTok Ad Library by advertiser.

**Primary, production-verified mode:** scrape TikTok's best-performing ads from the public **[Creative Center Top Ads](https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en)** — with **video download URLs, captions, industry, objective, CTR, likes, comments, shares, landing page URLs and countries**. No TikTok login.

**Beta / Experimental:** search the **[TikTok Commercial Content / Ad Library](https://library.tiktok.com/ads)** (EU/EEA/UK/CH ad repository) by advertiser. TikTok's search endpoint **intermittently returns HTTP 421 (`system busy`) even on EU residential IPs**, so this mode is not production-verified. Prefer Creative Center for reliable runs.

### What can you do with it?

- **TikTok ad spy & creative inspiration** — see which hooks and formats top the Creative Center rankings in your country and industry.
- **UGC & creative briefs** — download winning videos with captions and CTR for your editors.
- **E-commerce / dropshipping research** — find products and landing pages behind high-CTR TikTok ads.
- **Trend monitoring** — schedule weekly runs per industry and period.
- **Advertiser lookups (Beta)** — list a brand's EU TikTok ads with first/last shown dates when the library endpoint is available.

### Quick start

1. Click **Try for free** (or *Start*) — the input is pre-filled with a small, fast example.
2. Change the brand / keyword, set *Max results*, and press **Start**.
3. Download the ads as JSON, CSV, Excel or HTML, or fetch them via API / integrations below.

```json
{
  "source": "creativeCenterTopAds",
  "country": "US",
  "period": "30",
  "maxResults": 20
}
```

Creative Center mode is the reliable, production-verified default. `source: "adLibrary"` is Beta and can fail intermittently (TikTok returns HTTP 421 "system busy").

### Why this TikTok ad scraper?

- **Production-verified Creative Center mode** — live cloud runs return full ad details (video URLs, captions, industry, objective, CTR, landing pages) with no captchas.
- **Real performance signals** — CTR, likes and budget level straight from Creative Center rankings; sort by CTR, likes, impressions or "for you".
- **Full-quality videos** — up to 1080p MP4 URLs + covers + duration.
- **Landing pages & targeting countries** from each ad's detail.
- **Fast & reliable** — one browser page load to obtain TikTok's signed session, then lightweight API calls (5 ads with details in ~10 s); automatic re-signing if the session expires.

### Data fields (Creative Center — primary)

`adId`, `advertiserName` (brand), `adTitle`/`caption`, `industry`, `objective`, `countries`, `ctr`, `likes`, `comments`, `shares`, `budgetLevel`, `landingPageUrl`, `keywords`, `creativeSource`, `isSearchAd`, `videoUrl`, `videoCoverUrl`, `videoDurationSec`, `videoWidth`, `videoHeight`, `adUrl`, `rankingCountry`, `rankingPeriodDays`, `scrapedAt`, optional `aiAnalysis`.

#### EU Commercial Content / Ad Library (Beta / Experimental)

Library rows may add `advertiserId`, `paidBy`, `firstShown`, `lastShown`, `audienceReach`, `imageUrls`. Treat this source as experimental: TikTok's Ad Library search endpoint intermittently returns HTTP 421 `system busy` even when the Actor pins a residential proxy in an EU country (including Germany). Use Creative Center unless you specifically need EU advertiser-level history and can tolerate failed or partial runs.

### Full input examples

Creative Center is the default source (`creativeCenterTopAds`). Only set `"source": "adLibrary"` if you want the experimental EU library.

```json
{ "source": "creativeCenterTopAds", "country": "US", "period": "30", "orderBy": "ctr", "keywords": ["shoes"], "maxResults": 100 }
```

```json
{ "source": "adLibrary", "keywords": ["nike"], "country": "FR", "dateFrom": "2026-01-01", "maxResults": 100 }
```

### Sample output (real record, trimmed)

```json
{
  "platform": "tiktok",
  "source": "creative_center_top_ads",
  "adId": "7568543988073906193",
  "caption": "Lea's of Monroe",
  "industry": "Cuisine",
  "objective": "Reach",
  "countries": ["US"],
  "ctr": 0.99,
  "likes": 5,
  "videoUrl": "https://v16m-default.tiktokcdn.com/.../?mime_type=video_mp4...",
  "videoDurationSec": 5.014,
  "videoWidth": 1280,
  "videoHeight": 720,
  "adUrl": "https://ads.tiktok.com/business/creativecenter/topads/7568543988073906193/pc/en?countryCode=US&from=001010&period=30"
}
```

### Pricing (pay per event — no subscription)

You pay only for results. With Apify pay-per-event pricing there is no separate compute charge for this Actor — just the events below.

| Event | Price | Per 1,000 | When |
|---|---|---|---|
| `ad-scraped` | $0.002 | $2.00 | Each ad written to your dataset (primary) |
| `ai-ad-analysis` | $0.02 | $20.00 | Optional, only when enabled and successful |
| Actor start | $0.00005 | — | Apify standard start event, once per run |

Example: 1,000 TikTok top ads = **$2.00**; 100 ads = $0.20.

Set **Max cost per run** (or `maxTotalChargeUsd` via the API) and the run stops cleanly at your budget. New Apify accounts get free monthly platform credit, which you can use to try this Actor.

### FAQ

**Which source should I use?** Use **Creative Center Top Ads** (the default, production-verified) for *what works* — top ads with video URLs, captions, industry, objective, CTR and landing pages, globally. The **EU Commercial Content / Ad Library** is **Beta / Experimental** and is only for *everything a specific advertiser runs* in the EU/UK with first/last shown dates — expect intermittent HTTP 421 `system busy` failures even on EU residential IPs.

**Why does Ad Library mode need an EU proxy, and why is it still Beta?** TikTok geo-gates the library API (HTTP 421 from outside supported regions). The Actor defaults to Apify RESIDENTIAL proxy in your selected country, but TikTok's search endpoint still intermittently returns HTTP 421 `system busy` even on EU residential IPs, so this mode is labeled Beta / Experimental.

**Are video URLs permanent?** TikTok CDN links are signed and expire after some hours — download soon after the run.

**Can I run it on a schedule?** Yes. Create an Apify Schedule (daily, weekly, cron) for this Actor or a saved task. To get alerts only when something changes, use the [Competitor Ad Tracker](https://apify.com/adintel-labs/competitor-ad-tracker).

**Can I use it from an AI agent or my own app?** Yes — via the Apify API, the `apify-client` SDKs, n8n, Make, Zapier or the Apify MCP server. See *Integrations & API* below.

**Something broke or a field is missing?** Open an issue on the Issues tab with your run ID. We run automated health checks on every AdIntel Labs Actor daily and fix breakages as quickly as we can.

### Integrations & API

Use this Actor from code, no-code tools or AI agents:

- **REST API** — `POST https://api.apify.com/v2/acts/adintel-labs~tiktok-ad-library-scraper/run-sync-get-dataset-items?token=<APIFY_TOKEN>` with the input JSON as the body returns the ads directly (waits up to 5 minutes; use `/runs` + webhooks for longer jobs).
- **n8n** — Apify node (`@apify/n8n-nodes-apify`) → *Run an Actor and get dataset*, Actor `adintel-labs/tiktok-ad-library-scraper`.
- **Make** — Apify app → *Run an Actor* (run synchronously) → *Get Dataset Items*, or trigger on *Watch Actor Runs*.
- **Zapier** — Apify app → *Run Actor* action, or *Finished Actor Run* trigger + *Fetch Dataset Items* (for runs longer than Zapier's 30 s sync limit).
- **AI agents (MCP)** — add `https://mcp.apify.com?tools=adintel-labs/tiktok-ad-library-scraper` to Claude, Cursor, VS Code or any MCP client; the Actor appears as the tool `adintel-labs--tiktok-ad-library-scraper`.
- **Schedules & webhooks** — run it daily/weekly with Apify Schedules and push results to Slack, Google Sheets, Airtable, S3 and more.

```js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('adintel-labs/tiktok-ad-library-scraper').call({"source": "creativeCenterTopAds", "country": "US", "period": "30", "maxResults": 20}, { maxTotalChargeUsd: 1 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

```python
import os
from apify_client import ApifyClient  # pip install apify-client
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("adintel-labs/tiktok-ad-library-scraper").call(run_input={"source": "creativeCenterTopAds", "country": "US", "period": "30", "maxResults": 20})
for ad in client.dataset(run.default_dataset_id).iterate_items():  # apify-client 1.x: run["defaultDatasetId"]
    print(ad)
```

### More AdIntel Labs ad-library Actors

All built for the same job — competitor ad research — with a similar clean JSON schema and pay-per-ad pricing:

- [Google Ads Transparency Scraper](https://apify.com/adintel-labs/google-ads-transparency-scraper) — Search, Display & YouTube ads from the Google Ads Transparency Center
- [Facebook / Meta Ads Library Scraper](https://apify.com/adintel-labs/meta-ad-library-scraper) — Facebook & Instagram ads from the Meta Ad Library
- [LinkedIn Ad Library Scraper](https://apify.com/adintel-labs/linkedin-ad-library-scraper) — B2B ads with EU impressions & targeting
- [Bing / Microsoft Ad Library Scraper](https://apify.com/adintel-labs/microsoft-ad-library-scraper) — Bing search & shopping ads shown in the EU/EEA
- [Snapchat Ads Library Scraper](https://apify.com/adintel-labs/snapchat-ad-library-scraper) — Snap Ads Gallery creatives & impressions (EU + TR)
- [Pinterest Ads Library Scraper](https://apify.com/adintel-labs/pinterest-ad-repository-scraper) — Pinterest Ads Repository: reach & targeting (EU, NO, BR, TR)
- [Competitor Ad Tracker](https://apify.com/adintel-labs/competitor-ad-tracker) — scheduled alerts when competitors launch or stop ads on all 7 libraries

Browse them all at [apify.com/adintel-labs](https://apify.com/adintel-labs).

# Actor input Schema

## `source` (type: `string`):

Primary (default): Creative Center Top Ads, production-verified. Ad Library (EU Commercial Content) is Beta / Experimental — TikTok's search endpoint intermittently returns HTTP 421 'system busy' even on EU residential IPs.

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

Creative Center: keyword filter (leave empty for the overall top ads). Ad Library (Beta): advertiser names to search.

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

Creative Center: country code (US, GB, DE, FR, JP, BR...). Ad Library (Beta): EU/EEA/UK/CH region code (FR, DE, GB...).

## `period` (type: `string`):

Ranking window for Top Ads.

## `orderBy` (type: `string`):

Sort order.

## `industryIds` (type: `array`):

Optional Creative Center industry IDs (e.g. 22000000000 = Apparel & Accessories).

## `objectiveIds` (type: `array`):

1 Traffic, 2 App installs, 3 Conversions, 4 Video views, 5 Reach, 8 Lead generation, 14 Product sales.

## `adLanguage` (type: `string`):

e.g. en, es, de.

## `dateFrom` (type: `string`):

YYYY-MM-DD (default: 1 year ago).

## `dateTo` (type: `string`):

YYYY-MM-DD (default: today).

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

Maximum ads per keyword (or for the overall list).

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

Creative Center: landing page, all countries, comments & shares.

## `includeAiAnalysis` (type: `boolean`):

Adds aiAnalysis (angle, hook, offer, audience, emotional triggers, funnel stage) to each ad. Charged per successfully analysed ad only.

## `llmApiKey` (type: `string`):

OpenAI-compatible API key. Leave empty to use the Actor's built-in key (if configured).

## `llmModel` (type: `string`):

Model name for the OpenAI-compatible endpoint.

## `llmBaseUrl` (type: `string`):

OpenAI-compatible base URL (OpenAI, OpenRouter, Groq, xAI...).

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

Creative Center works from datacenter IPs. Ad Library mode is Beta / Experimental and geo-gated (HTTP 421 from outside the EU). TikTok's search endpoint also intermittently returns HTTP 421 'system busy' even on EU residential IPs. The Actor always pins RESIDENTIAL in the selected EU country (apifyProxyCountry) and matches the browser locale/timezone.

## Actor input object example

```json
{
  "source": "creativeCenterTopAds",
  "country": "US",
  "period": "30",
  "orderBy": "for_you",
  "maxResults": 50,
  "includeDetails": true,
  "includeAiAnalysis": false,
  "llmModel": "gpt-4o-mini",
  "llmBaseUrl": "https://api.openai.com/v1",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Dataset of all TikTok ads collected in this run.

## `runStats` (type: `string`):

Key-value store record with row counts, proxy details, and finish time.

# 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 = {
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("adintel-labs/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 = { "proxyConfiguration": { "useApifyProxy": True } }

# Run the Actor and wait for it to finish
run = client.actor("adintel-labs/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 '{
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call adintel-labs/tiktok-ad-library-scraper --silent --output-dataset

```

## MCP server setup

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