# TikTok Ad Library Scraper: Ads & Targeting · $0.30/1K (`pomlabs/tiktok-ad-library-scraper`) Actor

TikTok Ad Library: search by keyword, phrase, advertiser, ad ID, country, date or URL. Video, image, landing page, CTA, run dates, viewers by country, targeting, payer, advertiser list, keyword ideas, new-ads monitor, transcript, AI analysis. No login or cookies needed.

- **URL**: https://apify.com/pomlabs/tiktok-ad-library-scraper.md
- **Developed by:** [Pom Labs](https://apify.com/pomlabs) (community)
- **Categories:** Lead generation, SEO tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 1,000 ads delivered

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 Ad Library Scraper

Every public ad in the TikTok Ad Library (Commercial Content Library), as clean data: search by keyword, exact phrase, advertiser, ad ID, country, date or pasted address. No login or cookies needed from you.

**$0.30 per 1,000 ads.** Ad details (landing page, call to action, advertiser, payer, targeting, viewers by country) add $0.14 per 1,000. You can cap the cost of every run.

### What you get for each ad

- Advertiser name, ID, registry location, who paid for the ad, and the advertiser's TikTok profile when published
- Video, video cover and image addresses; optional download of the files
- First and last day shown, days running, `isActive` (shown in the last days)
- Unique viewers as published (for example `10K-100K`) and as numbers (`adImpressionsMin`, `adImpressionsMax`)
- Landing page, call to action and advertising objective
- Viewers by country, with age and gender breakdown when published
- Targeting by age, gender and country, target audience size and other targeting settings
- Audit status; `contentRemoved: true` when TikTok took the creative down, with the published reason in the ad details

Rows never invent a value: a field that the library does not publish is left out.

### Coverage

The library holds ads shown in the **European Economic Area, CH, GB, TR and BR** (two-letter country codes), back to October 2022 at most. It has no ads for the United States; asking for it returns a free row that says so.

### Ways to search

| You send | You get |
|---|---|
| `keywords` or `query` | Ads that match the words |
| `exactPhrases` or `exactMatch` | Ads with the exact phrase |
| `advertiserName` | Ads of every registered advertiser name that contains it |
| `advertisers`: `{"id", "name"}` | Exactly those advertisers |
| `startUrls`: pasted Ad Library addresses | The same search, with its filters |
| `adIds` or `adUrls` | Those ads |
| `countries` and filters only | Every ad that passes them |
| `urlsFromFile` | Addresses from a .txt, .csv or Google Sheet |

Filters: `countries`, `startDate`, `endDate`, `timezone`, `adType`, `adStatus`, `ages`, `gender`, `adReach`, `includeKeywords`, `excludeKeywords`, `minDaysRunning`. Order with `sortBy`: last shown, newest, oldest, most viewers or longest running.

### More than a list

- **Advertiser finder:** `"resultType": "advertisers"` returns registered advertiser names and IDs for a text.
- **Keyword ideas:** `"resultType": "keyword_ideas"` returns the searches the library suggests.
- **New-ads monitor:** `"mode": "new-only"` returns only ads you have not received yet. Add `webhookUrl` to be told.
- **AI extras (optional):** marketing analysis of each ad, text written on the picture, video transcript.
- **No lost inputs:** a search with nothing gets a free row that says why.

### Input examples

```json
{"keywords": ["skincare"], "countries": ["DE", "FR"], "adStatus": "active", "maxAdsPerSearch": 100}
```

```json
{"advertiserName": "nike", "startDate": "30 days", "sortBy": "longest_running", "maxItems": 200}
```

```json
{"query": "protein", "resultType": "advertisers"}
```

```json
{"keywords": ["travel insurance"], "mode": "new-only", "monitorName": "insurance", "includeDetails": false, "maxAdsPerSearch": 0}
```

### Output example

```json
{
  "adId": "1879135039474050",
  "adUrl": "https://library.tiktok.com/ads/detail/?ad_id=1879135039474050",
  "advertiserName": "Lori Shoes",
  "adType": "VIDEO",
  "adTitle": "Descoperă noile modele Lori Shoes",
  "adVideoUrl": "https://library.tiktok.com/api/v1/cdn/1796387145/video/aHR0cHM6Ly92MTZ...",
  "adVideoCover": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0051c001-sg/oAQAY2gl...",
  "adVideos": [
    {
      "url": "https://library.tiktok.com/api/v1/cdn/1796387145/video/aHR0cHM6Ly92MTZ...",
      "cover": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0051c001-sg/oAQAY2gl..."
    }
  ],
  "adImageUrls": [
    "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0051c001-sg/oAQAY2gl..."
  ],
  "adStartDate": "2026-10-15",
  "adEndDate": "2026-10-15",
  "adEstimatedAudience": "0-1K",
  "adImpressions": "0-1K",
  "industry": "Apparel & Accessories",
  "auditStatus": "1",
  "sorAuditStatus": "1",
  "adImpressionsMin": 0,
  "adImpressionsMax": 1000,
  "daysRunning": 1,
  "isActive": false,
  "adStatus": "INACTIVE",
  "adText": "Descoperă noile modele Lori Shoes",
  "adCallToAction": "Visit store",
  "adLandingUrl": "https://lorishoes.ro?utm_source=tiktok&utm_id=__CAMPAIGN_ID__&utm_camp...",
  "advertisingObjective": "Sales",
  "advertiserId": "7480863523380166673",
  "advertiserLocation": "Romania",
  "advertiserPaidForBy": "Lori Shoes",
  "advertiserTtUserId": {
    "username": "lorishoes",
    "display_name": "Lori Shoes",
    "avatar_url": "https://p16-common-sign.tiktokcdn-eu.com/tos-no1a-avt-0068c001-no/b48c...",
    "follower_count": "570",
    "profile_web_link": "https://www.tiktok.com/share/user/7470864222059414550?source=ad_review",
    "account_type": "VERIFIED_BA"
  },
  "adTotalRegions": 1,
  "targetingByLocation": [
    {
      "region": "RO",
      "impressions": "0-1K",
      "breakdowns": [
        {
          "age": "13-17",
          "gender": "MALE",
          "impressions": "0-1K"
        }
      ]
    }
  ],
  "targetAudienceSize": "8.4M-10.3M",
  "targetingByAge": [
    {
      "region": "RO",
      "13-17": true,
      "18-24": true,
      "25-34": true,
      "35-44": true,
      "45-54": true,
      "55+": true
    }
  ],
  "targetingByGender": [
    {
      "region": "RO",
      "female": true,
      "male": true,
      "unknown": true
    }
  ],
  "targeting": {
    "audience": "No",
    "countries": [
      "RO"
    ],
    "operating_systems": [
      "ALL"
    ],
    "high_spending_power": "No",
    "audience_exclude": "No"
  },
  "countriesShown": [
    "RO"
  ],
  "input": "shoes",
  "searchType": "keyword",
  "startUrl": "https://library.tiktok.com/ads?region=all&start_time=1764806400000&end...",
  "searchTotal": 5000,
  "scrapedAt": "2026-12-04T12:25:48Z",
  "status": "ok"
}
```

### Price

| Event | Price |
|---|---|
| Ad delivered | $0.0003 |
| Ad details | $0.00014 |
| AI marketing analysis | $0.005 |
| Text read from the picture | $0.003 |
| Video transcript | $0.01 |

Free rows (nothing found, source busy, errors) are never charged.

### Notes

- Without `maxItems` or `maxAdsPerSearch`, each search stops at 20 ads. Set `maxAdsPerSearch` to 0 for every ad.
- Ad details are read one ad at a time. For large lists, use `"includeDetails": false` and then ask details for the ads you choose with `adIds`.
- `isActive` and `adStatus` in a row come from the last day the ad was shown. The `adStatus` input is the library's own filter and is broader: it can return ads last shown weeks ago.
- Video links are served by TikTok and expire; use `downloadMedia` to keep the files.
- With keywords, orders other than last shown are applied to the first 600 matches.

### Support, feedback and requests

Questions, bug reports, complaints, feature requests, or an idea for a new tool? Email us at **pomexplica+support@gmail.com**, in any language. We read our inbox every day and answer every message. Suggestions and feedback of every kind are welcome: tell us what you need and we will look into it.

# Actor input Schema

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

Words searched in the ads, one search each.

## `query` (type: `string`):

One word or phrase. A pasted Ad Library address also works here.

## `queries` (type: `array`):

Same as Keywords.

## `searchQueries` (type: `array`):

Same as Keywords.

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

Same as Keywords.

## `exactPhrases` (type: `array`):

Only ads that contain the words in this order.

## `exactMatch` (type: `boolean`):

Treat every keyword as an exact phrase.

## `advertiserName` (type: `string`):

Brand or company. Every registered advertiser name that contains it is searched.

## `advertiserNames` (type: `array`):

Several advertisers.

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

Names, or objects like {"id": "6886458055832109825", "name": "LEVI STRAUSS & CO."} taken from earlier results.

## `advertiserBizId` (type: `string`):

Advertiser ID, together with Advertiser name.

## `queryType` (type: `string`):

How to read Keyword: words, advertiser name or Ad Library address.

## `startUrls` (type: `array`):

Pasted search pages or ad pages of library.tiktok.com, with their filters.

## `searchUrls` (type: `array`):

Same as above, as plain lines.

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

Pages of single ads.

## `adIds` (type: `array`):

Numeric ad IDs.

## `urlsFromFile` (type: `string`):

Address of a .txt, .csv or Google Sheet with one library address per line.

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

2-letter codes of the countries where the ad was shown (European Economic Area, CH, GB, TR, BR), or all. One search per country.

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

One country code, or all.

## `region` (type: `string`):

Same as Country.

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

YYYY-MM-DD, or for example 30 days. Default: the last 365 days.

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

YYYY-MM-DD. Default: today.

## `timezone` (type: `string`):

Time zone the dates are read in, for example Europe/Berlin. Default: UTC.

## `adType` (type: `string`):

Video, image or all.

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

Active, inactive or all.

## `activeOnly` (type: `boolean`):

Shortcut for Ad status: active.

## `ages` (type: `array`):

Any of 13-17, 18-24, 25-34, 35-44, 45-54, 55+.

## `adReach` (type: `array`):

Any of 0-10K, 10K-100K, 100K+ unique viewers.

## `gender` (type: `string`):

Gender targeted by the ad.

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

Order of the ads. With keywords, orders other than last shown are applied to the first 600 matches.

## `includeKeywords` (type: `array`):

Keep only ads whose text, advertiser or landing page has one of these words.

## `excludeKeywords` (type: `array`):

Drop ads with any of these words.

## `minDaysRunning` (type: `integer`):

Keep only ads shown for at least this many days.

## `removeDuplicates` (type: `boolean`):

Deliver each ad once per run.

## `maxItems` (type: `integer`):

Total cap for the run. 0 means no cap.

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

Same as above.

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

Same as above.

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

Cap for each search. 0 means every ad. Default: 20 when no other cap is given.

## `resultsLimit` (type: `integer`):

Same as Maximum ads per search.

## `maxPages` (type: `integer`):

Pages of 12 ads per search.

## `quickSearch` (type: `boolean`):

Only the first page of each search.

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

Landing page, call to action, advertiser, payer, targeting and viewers by country. Charged per ad with details.

## `fetchDetails` (type: `boolean`):

Same as Ad details.

## `skipDetails` (type: `boolean`):

Faster and cheaper: list data only.

## `resultType` (type: `string`):

Ads, advertiser names for a text, or keyword ideas for a text.

## `analyzeAds` (type: `boolean`):

Hook, offer, audience and tone of each ad. Charged per ad analysed.

## `ocrImageAds` (type: `boolean`):

Text written on the image or video cover. Charged per ad read.

## `transcribeVideos` (type: `boolean`):

Speech of the ad video as text. Charged per video transcribed.

## `downloadMedia` (type: `boolean`):

Save videos, images and covers with your results.

## `mode` (type: `string`):

All ads, or only ads not delivered to you before.

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

Same as Mode: only new ads.

## `monitorName` (type: `string`):

Name of a monitor: runs with the same name remember what they delivered.

## `webhookUrl` (type: `string`):

Address that receives the results when the run ends.

## `webhookHeaders` (type: `object`):

Extra headers sent to the webhook.

## `compact` (type: `boolean`):

Leave out long fields such as targeting tables.

## `excludeEmptyFields` (type: `boolean`):

Drop fields without a value.

## `concurrency` (type: `integer`):

Ads processed at the same time by the AI extras.

## Actor input object example

```json
{
  "keywords": [
    "shoes"
  ],
  "exactMatch": false,
  "activeOnly": false,
  "removeDuplicates": true,
  "maxAdsPerSearch": 20,
  "quickSearch": false,
  "includeDetails": true,
  "skipDetails": false,
  "resultType": "ads",
  "analyzeAds": false,
  "ocrImageAds": false,
  "transcribeVideos": false,
  "downloadMedia": false,
  "mode": "all",
  "compact": false,
  "excludeEmptyFields": true,
  "concurrency": 3
}
```

# Actor output Schema

## `results` (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 = {
    "keywords": [
        "shoes"
    ],
    "maxAdsPerSearch": 20
};

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

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

```

## MCP server setup

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