# TikTok Ads Library Scraper — EU Ads, Targeting & Reach (`lergassy/tiktok-ads-library-scraper`) Actor

TikTok Ads Library (EU) by keyword or advertiser: ad text, video, shown dates, reach band, target countries, age and gender breakdown, landing page. Targeting by country, age and gender per ad, no captcha fees, $0.49 per 1,000 ads.

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

## Pricing

from $0.49 / 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/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** exports ads from TikTok's official **Ads Library** (Commercial Content Library) — every ad shown in the EU/EEA, UK, Switzerland, Turkey and Brazil — by **keyword**, **advertiser** or **ad link**. Each ad comes with advertiser, title, video, first and last shown dates and reach band; switch on **targeting** to add the countries it ran in, impressions per country and the **age × gender** groups that saw it. No login, no captcha fees. **$0.49 per 1,000 ads.**

### What can you scrape?

- 🔍 **Ads by keyword** — like the library's search box: `skincare`, `protein powder`, `dating app`.
- 🏢 **All ads of an advertiser** — `Gymshark`, `Temu`, `Shein`: the advertiser's legal name, business ID and every ad.
- 🔗 **Ads by link or ID** — paste `library.tiktok.com/ads/detail/?ad_id=…` links and get each ad with full targeting.
- 🌍 **Country filter** — Germany, France, Spain… one or several; empty = every covered country.
- 📅 **Date window** — ads last shown between two dates (default: last 30 days).
- 🎯 **Targeting** (optional) — target countries, impressions per country, impressions for every country × age × gender cell, landing page, campaign objective and the advertiser's TikTok account with followers.

For competitor research, ad creative inspiration, brand monitoring, agencies and market studies of who advertises what in Europe.

### How much does it cost?

| Event | Price |
|---|---|
| **Ad** — one ad from the library | $0.00049 — $0.49 per 1,000 |
| **Targeting** — add-on per ad when *Include targeting* is on, or for an ad link | $0.006 |
| **Run start** | $0.005 per run |

Notice rows (inputs that found nothing, the run summary) are free. *Maximum cost per run* is a hard ceiling: the Actor stops before it. There is no per-captcha fee.

**Apify Free plan:** up to 12 ads and 1 ad with targeting per run — the data source is paid per request. On any paid Apify plan you get the full data.

Typical run: 50 ads in about 20 seconds.

### ⬇️ Input

```json
{
    "keywords": ["skincare"],
    "advertisers": ["Gymshark"],
    "countries": ["DE", "FR"],
    "startDate": "2026-11-01",
    "maxAds": 50,
    "includeTargeting": false
}
```

### ⬆️ Output

```json
{
    "type": "ad",
    "adId": "1881567664241697",
    "url": "https://library.tiktok.com/ads/detail/?ad_id=1881567664241697",
    "advertiser": "Digital Skincare Inc.",
    "advertiserBizId": "7186955021488275458",
    "adTitle": "Personalized Skincare Plan",
    "firstShownAt": "2026-11-11T00:00:00.000Z",
    "lastShownAt": "2026-11-12T00:00:00.000Z",
    "estimatedAudience": "0-1K",
    "videoUrl": "https://library.tiktok.com/api/v1/cdn/…",
    "landingPage": "https://interview.lovi.care/?utm_source=tiktok…",
    "objective": "Sales",
    "targetCountries": ["CZ", "DK", "SI", "NO", "FI", "PT", "IE", "…"],
    "totalImpressions": "0-1K",
    "impressionsByCountry": [{ "country": "CZ", "impressions": "0-1K" }],
    "audienceAgeGender": [{ "age": "18-24", "gender": "female", "countries": 25 }],
    "advertiserTikTok": { "username": "loviskincare", "followers": "12.9K", "accountType": "VERIFIED_BA" },
    "targetingIncluded": true
}
```

Reach and impressions are TikTok's own bands (`0-1K`, `10K-100K`…), not exact numbers — the library publishes them that way. TikTok shows at most 5,000 ads per search; for more, split by country or date window.

### FAQ

**Which countries are covered?** The TikTok Ads Library covers ads shown in the EU/EEA (27 EU countries, Iceland, Liechtenstein, Norway), the UK, Switzerland, Turkey and Brazil. US ads are not in the library.

**How is this different from Creative Center Top Ads?** Creative Center shows a curated set of top-performing ads with CTR and likes; the Ads Library has every ad shown in Europe, with reach and targeting. For Creative Center use [TikTok Top Ads Scraper](https://apify.com/lergassy/tiktok-top-ads-scraper).

**Why is targeting a separate price?** Targeting is a separate lookup per ad. Leave it off for cheap lists, switch it on for the ads you study.

**Is it legal?** The Actor reads public ad transparency data TikTok publishes under the EU Digital Services Act. Use it according to TikTok's terms and the laws that apply to you.

### You might also like

**TikTok Shop**

| Actor | What it does |
|---|---|
| [TikTok Shop Top Products Scraper](https://apify.com/lergassy/tiktok-shop-top-products-scraper) | Best-selling TikTok Shop products with revenue, units sold and the video / live split in 15 markets |
| [TikTok Shop Videos Scraper](https://apify.com/lergassy/tiktok-shop-videos-scraper) | Shoppable videos with revenue, views, ad ROAS and the AI-video flag |
| [TikTok Shop Creators Scraper](https://apify.com/lergassy/tiktok-shop-creators-scraper) | Selling creators with revenue, followers and contact e-mails |
| [TikTok Shop Shops Live Scraper](https://apify.com/lergassy/tiktok-shop-shops-live-scraper) | Top shops with the affiliate / own-account split, and top live streams with revenue and views |
| [TikTok Shop Scraper](https://apify.com/lergassy/tiktok-shop-scraper) | Live product pages: price, stock per variant, shipping, shop stats and up to 25,000 reviews per product |
| [TikTok Shop Sales Tracker](https://apify.com/lergassy/tiktok-shop-sales-tracker) | Day-by-day units sold and 7 / 30-day sales pace of US and UK products |
| [TikTok Shop Reviews Scraper](https://apify.com/lergassy/tiktok-shop-reviews-scraper) | Every buyer review of US and UK products, or only the new ones since a date |
| [TikTok Shop Search Scraper](https://apify.com/apimy/tiktok-shop-search-scraper) | Search TikTok Shop by keyword: the product list a shopper sees, with price, units sold, rating and shop |
| [TikTok Shop Product Scraper](https://apify.com/apimy/tiktok-shop-product-scraper) | One product page by link, ID or name: variants with stock, description, images and shipping |
| [TikTok Shop Product API](https://apify.com/blueskyscraper/tiktok-shop-product-api) | Product sales, revenue and creators by product link, as one row per product |

**TikTok ads, creators and videos**

| Actor | What it does |
|---|---|
| [TikTok Trends & Video Scraper](https://apify.com/blueskyscraper/tiktok-trends-scraper) | Trending hashtags, top 100 videos and sound charts from Creative Center, plus video search by keyword, hashtag and sound |
| [TikTok Sounds Scraper](https://apify.com/blueskyscraper/tiktok-sounds-scraper) | TikTok sounds by keyword, Top 50 / Viral 50 charts and videos of a sound, with the commercial-use flag and MP3 link |
| [TikTok Followers Scraper](https://apify.com/blueskyscraper/tiktok-followers-scraper) | Followers and following lists of any public TikTok account, with new followers and unfollows |
| [TikTok Top Ads Scraper](https://apify.com/lergassy/tiktok-top-ads-scraper) | Top-performing TikTok ads from Creative Center with CTR rank, budget level, landing page and video URL |
| [TikTok Influencer Scraper](https://apify.com/lergassy/tiktok-influencer-scraper) | Followers, engagement rate and average views for any list of TikTok creators |
| [TikTok Email Scraper](https://apify.com/apimy/tiktok-email-scraper) | Creator e-mails from TikTok bios and Linktree, checked for a working mail server |
| [TikTok Video Scraper](https://apify.com/lergassy/tiktok-video-scraper) | Video analytics and engagement for any TikTok video |
| [TikTok Comments Scraper](https://apify.com/lergassy/tiktok-comments-scraper) | Comments and replies of TikTok videos, no login |
| [TikTok Transcript Scraper](https://apify.com/lergassy/tiktok-transcript-scraper) | TikTok video to text: transcripts and captions |
| [TikTok, Reels & Shorts Transcript Scraper](https://apify.com/lergassy/tiktok-reels-shorts-transcript-scraper) | Transcripts of TikTok, Instagram Reels and YouTube Shorts in one run |

# Changelog

This Actor's version history is a separate document: https://apify.com/lergassy/tiktok-ads-library-scraper/changelog.md

# Actor input Schema

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

Search the TikTok Ads Library like its search box: <code>skincare</code>, <code>protein powder</code>, <code>dating app</code>. Each keyword returns ads with advertiser, dates, reach band and video.

## `advertisers` (type: `array`):

Advertiser names as TikTok shows them: <code>Gymshark</code>, <code>Temu</code>, <code>Shein</code>. Returns that advertiser's ads.

## `adUrls` (type: `array`):

TikTok Ads Library links (<code>https://library.tiktok.com/ads/detail/?ad_id=1881567664241697</code>) or ad IDs. Each comes back with full targeting (priced as an ad with targeting).

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

Countries where the ad was shown. Empty = all countries the library covers (EU/EEA, UK, Switzerland, Turkey, Brazil). Each country is a separate search.

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

Keep ads last shown on or after this date (YYYY-MM-DD). Empty = the last 30 days.

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

Keep ads last shown on or before this date. Empty = today.

## `maxAds` (type: `integer`):

Total ads for the whole run (all keywords, advertisers and countries together).

## `includeTargeting` (type: `boolean`):

Adds to every ad: target countries, impressions per country, the age × gender groups that saw it, landing page, objective and the advertiser's TikTok account. Priced as a separate add-on per ad.

## Actor input object example

```json
{
  "keywords": [
    "skincare"
  ],
  "maxAds": 50,
  "includeTargeting": false
}
```

# Actor output Schema

## `rows` (type: `string`):

One row per ad; notice rows explain inputs that gave nothing.

# 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 = {
    "keywords": [
        "skincare"
    ]
};

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

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

```

## MCP server setup

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