# TikTok Top Ads Scraper: Ad Library, Metrics, Retention, Scripts (`quarra/tiktok-top-ads-scraper`) Actor

Top-performing TikTok ads from the Creative Center by country and period, far more than the page shows: CTR, likes, budget level, landing page, per-second retention curve, video, and as an option the spoken script and hook. No login. Pay per ad.

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

## Pricing

from $1.12 / 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 Top Ads Scraper: Ad Library with Metrics, Retention & Scripts

Get the **top-performing TikTok ads** that TikTok publishes in its Creative Center, by country and period, with no
login: far more than the page shows, each with its metrics, its landing page, its **per-second retention curve**, its
video and, as an option, its **script and hook** (the words spoken, with timestamps, and what is said in the first
3 seconds). Export as JSON, CSV or Excel, or read it through the Apify API.

**$1.40 per 1,000 ads**, **$15.00 per 1,000 ads with script**, plus $0.002 per run. Error records are free.

### Why this one

- **Thousands of ads for your filters, not one page.** TikTok's page shows 20 ads at a time and stops. The Actor goes
  through the library industry by industry, objective by objective, language by language and metric by metric, and
  delivers every distinct ad it finds, once, until **Max ads**. On 9 November 2026, on Apify, a run for the United
  States over the last 180 days delivered **2,500 distinct ads** (with their details and retention curves) and stopped
  only because it had reached its **Max ads** of 2,500.
- **What the ad says, not only its numbers.** With **Script and hook** on, each ad comes with `script` (the full
  transcript), `scriptSegments` (each sentence with its start and end time) and `hook`: the words spoken before the
  3-second mark, the part that decides whether a viewer keeps watching. Ads with music only are delivered at the price
  of a plain ad and say so (`scriptStatus: "no_speech"`).
- **Where viewers drop off.** `retentionCurve` gives, second by second, the share of viewers still watching, and
  `retentionAt2s` / `retentionAt6s` are ready to sort on. Included in the price of an ad.
- **Every ad says where it was found.** `foundIn` gives the industry, objective, language and sort order of the ranking
  that held it, and its rank there.
- **Never a fake zero.** A metric TikTok does not show for an ad is `null`, never `0` or `""`.
- **Never a silent empty run.** A filter TikTok has no ad for, a ranking that cannot be read, a change on TikTok's side:
  each gets a free error record or a status that says why.

### Quick start

1. Pick one or more **Countries** and **Periods** (last 7, 30 or 180 days).
2. Optional: narrow down with **Industries**, **Campaign objectives**, **Ad languages**, or put a metric first with
   **Ranked first by**.
3. Turn on **Script and hook** if you want what each ad says.
4. Click **Start** and read the results in the run's **Output** tab.

Like any Apify Actor, it can also be run and read through the Apify API, scheduled (a weekly run builds you a swipe
file), and connected to webhooks, Make, Zapier, n8n or Apify's MCP server for AI agents.

### Inputs

| Field | What it does |
|---|---|
| **Countries** | One or more of the 28 countries TikTok covers (United States, United Kingdom, Germany, France, Italy, Spain, Canada, Australia, Japan, South Korea, Brazil, Mexico, Indonesia, Saudi Arabia, United Arab Emirates, and more). Each country is read on its own. |
| **Periods** | Last 7, 30 or 180 days. The 180-day period holds the most ads. |
| **Industries** | Optional. 21 industries and their 237 sub-industries (for example `Apparel & Accessories: Women's Clothing`, `Financial Services`, `Games: Hyper-Casual`). Empty: all. |
| **Campaign objectives** | Optional. Traffic, App Installs, Conversions, Video Views, Reach, Lead Generation, Product Sales, App Promotion. Empty: all. |
| **Ad languages** | Optional. 16 languages. Empty: all. |
| **Ranked first by** | Optional. For You (TikTok's order), Impressions, Likes, CTR, 2-second view rate, 6-second view rate, Conversion rate. The ads that rank best on these come first. |
| **Max ads** | Total number of ads of the run, counted exactly. With several countries or periods, it is shared evenly between them, in order (what one does not use goes to the next). Each ad is delivered once. |
| **Retention curve** | On by default. Off: no `retentionCurve`, same price. |
| **Script and hook** | Off by default. Available on paid Apify plans only. |

Example, the ads of beauty and women's clothing brands in the United States and the United Kingdom over the last 30 days, with
their scripts:

```json
{
  "countries": ["US", "GB"],
  "periods": ["30"],
  "industries": ["14000000000", "22110000000"],
  "includeScript": true,
  "maxItems": 500
}
```

### Output

An ad:

```json
{
  "type": "ad",
  "status": "ok",
  "adId": "7687023025166680084",
  "url": "https://ads.tiktok.com/business/creativecenter/topads/7687023025166680084/pc/en?countryCode=US&period=30",
  "adTitle": "Floors that look like oak, priced like vinyl. Free samples this week.",
  "brandName": "Example Floors",
  "industry": "Home Improvement",
  "industryGroup": "Home Improvement",
  "industryId": "21000000000",
  "objective": "Conversions",
  "objectives": ["Conversions"],
  "likes": 1840,
  "comments": 37,
  "shares": 12,
  "ctrTopPercent": 8.0,
  "budgetLevel": "medium",
  "countries": ["US"],
  "landingPage": "https://shop.example.com/samples",
  "keywords": null,
  "highlightText": null,
  "source": "TikTok Ads Manager",
  "voiceOver": null,
  "videoDurationSeconds": 24.31,
  "videoWidth": 720,
  "videoHeight": 1280,
  "videoUrl": "https://v16m-default.tiktokcdn.com/…",
  "videoUrls": { "1080p": "https://…", "720p": "https://…", "540p": "https://…", "360p": "https://…" },
  "videoUrlExpiresAt": "2026-11-10T01:07:13Z",
  "coverUrl": "https://p19-common-sign.tiktokcdn.com/…",
  "retentionCurve": [
    { "second": 0, "retention": 1.0 },
    { "second": 1, "retention": 0.5112 },
    { "second": 2, "retention": 0.3818 }
  ],
  "retentionAt2s": 0.3818,
  "retentionAt6s": 0.1904,
  "script": "Stop scrolling. These floors are vinyl. Free samples this week, link below.",
  "hook": "Stop scrolling. These floors are vinyl.",
  "hookEndSeconds": 3.2,
  "scriptLanguage": "en",
  "scriptSegments": [
    { "start": 0.0, "end": 1.4, "text": "Stop scrolling." },
    { "start": 1.4, "end": 3.2, "text": "These floors are vinyl." },
    { "start": 3.2, "end": 6.0, "text": "Free samples this week, link below." }
  ],
  "scriptStatus": "ok",
  "country": "US",
  "periodDays": 30,
  "foundIn": { "sortBy": "for_you", "industry": "Home Improvement", "objective": null, "adLanguage": null, "rank": 3 },
  "input": "US | 30 days",
  "scrapedAt": "2026-11-09T19:06:32Z"
}
```

(Brand, title and script replaced in this example; the Actor returns TikTok's real data.)

- `ctrTopPercent` is TikTok's **rank** for click-through rate, not a rate: 8 means the ad is in the top 8 % of its
  category. Lower is better.
- `budgetLevel` is TikTok's own scale for what was spent on the ad: `low`, `medium` or `high`. TikTok shows no amount.
- `retentionCurve` has one point per second. TikTok stops it at 100 points: an ad longer than 100 seconds has no
  points after second 99.
- **`videoUrl`, `videoUrls` and `coverUrl` expire** about 6 hours after the run (`videoUrlExpiresAt`): download the
  files you want to keep. `url` and `landingPage` are permanent.
- `industry` is `null` for the rare industries TikTok does not list in its filters; `industryId` is still given.
- `hook` holds the segments that start before 3 seconds, so it can end a little after (`hookEndSeconds`).
- `scriptStatus`: `ok`, `no_speech` (music only), `too_long` (over 10 minutes), or `not_transcribed` (could not be
  done right now). Only `ok` is charged as an ad with script.
- `keywords`, `highlightText` and `brandName` are often `null`: TikTok fills them for few ads.

Error records (free) have `type: "error"`, an `errorCode`, a clear `error` message and `retryable`. The run summary
(OUTPUT record) gives, per country and period, the ads delivered and a note.

### Pricing

Pay per event:

| Event | Price |
|---|---|
| Ad | $1.40 per 1,000 (Silver: $1.26, Gold and above: $1.12) |
| Ad with script (only when a script is delivered) | $15.00 per 1,000 (Silver: $13.50, Gold and above: $12.00) |
| Run start | $0.002 per GB of memory (1 GB minimum; $0.002 at the default 256 MB) |

An ad is charged once, as one or the other. Never charged: error records, an ad already delivered in the same run.
**Max ads** is 100 by default (50 in the form) (at most $0.14 plus the start, or $1.50 with scripts). Set **Maximum cost per run** in
the run options and the run stops before going over it; with **Script and hook** on, it stops when the next
ads could no longer be delivered with their script.

### Send results to Slack, Notion or Discord

Pick one of your Apify MCP connectors in "Send results to your app" (Notion connects in one click), or paste a Slack, Discord, Make, Zapier or n8n webhook URL. After each successful run, a summary lands there: the number of results, the first 25 with their links, and a link to the full dataset. Schedule the Actor and fresh results reach your team every day without opening Apify.

### Limits

- Only the ads TikTok puts in its Top Ads library: ads that performed well in a country and period. Not every ad that
  ran on TikTok.
- Search by keyword or by brand is not available: TikTok keeps it for logged-in users. Filter by industry, objective
  and language instead.
- Countries and periods are TikTok's: 28 countries; 7, 30 and 180 days.
- The same ad found in two countries or periods is delivered once per run, with the first country and period that held
  it; `countries` lists every country where it ran.
- Video and cover links expire after about 6 hours.

### FAQ

**Do I need a TikTok account?** No. The Actor reads TikTok's Creative Center for you.

**How many ads can I get?** It depends on the country, period and filters. For the United States over 180 days, more
than 2,500 distinct ads. A run stops when it has gone through every combination of filters it can read, or at
**Max ads**. TikTok shows at most 20 ads per combination, so a very large library can hold ads that no
combination shows.

**Is anything different on Apify's free plan?** **Script and hook** is available on paid Apify plans only: on the free
plan the ads are delivered without it, charged as plain ads, and the run status says so. Everything else is the same.

**What does the script cost if an ad has no speech?** Nothing more: it is charged as a plain ad and `scriptStatus` is
`no_speech`.

**What if the run is restarted by the platform (migration or reboot)?** It resumes where it was: ads already in the
dataset are not delivered or charged again.

**What if TikTok changes its data?** The run says so in its status and a free error record, instead of reporting
"nothing found". If nothing can be read, nothing is charged but the start.

**Is it legal?** It collects the ad statistics TikTok publishes in its Creative Center for advertisers and marketers,
no private data. Check the rules that apply to your use of the data and of the ad videos.

**Does the Actor send anything to Quarra?** Only when a run fails or runs out of time: the Actor, its build, the error
type, the line of our code where it happened, and the memory and time the run was given, so we can fix it fast. Never
your input, your results, your account or the run ID.

**Did this Actor save you time?** A rating on its Reviews tab helps other users find it.

# Actor input Schema

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

One or more countries where the ads ran. Each country is read on its own: every ad says which country it was found in.

## `periods` (type: `array`):

One or more periods. The 180-day period holds the most ads.

## `industries` (type: `array`):

Optional. Empty: all industries. Pick an industry (all) or a sub-industry.

## `objectives` (type: `array`):

Optional. Empty: all objectives.

## `adLanguages` (type: `array`):

Optional. Empty: all languages.

## `sortBy` (type: `array`):

Optional. The ads that rank best on these metrics come first. Empty: TikTok's default order first, then the other metrics.

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

Total number of ads delivered by the run, counted exactly. With several countries or periods, it is shared evenly between them (what one does not use goes to the next). Each ad is delivered once.

## `includeRetentionCurve` (type: `boolean`):

Per-second share of viewers still watching the ad, as TikTok shows it. Included in the price of an ad.

## `includeScript` (type: `boolean`):

The words spoken in each ad, with timestamps, and its hook (what is said in the first 3 seconds). Charged as an ad with script, only when a script is delivered; ads without speech are charged as plain ads. Available on paid Apify plans only.

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

Connection. Keep the default (automatic). Costs are included in the price.

## `deliveryConnector` (type: `string`):

Pick one of your Apify MCP connectors: at the end of each run, a summary of the results (count, the first 25 with their links, a link to the full dataset) is posted there. Nothing is sent when a run finds nothing. Notion connects in one click; Slack and Google need your own OAuth app in Apify, or use the webhook field below.

## `deliveryTarget` (type: `string`):

Slack channel ID (C0123…), Notion page ID, Google Sheet ID… Leave empty if the app needs no target (a new Notion page is then created at the top of your workspace).

## `deliveryWebhookUrl` (type: `string`):

No connector needed. A Slack Incoming Webhook (hooks.slack.com/…) gets a message, a Discord channel webhook gets a message, any other URL receives the summary as JSON (title, text, count, datasetUrl, items).

## `deliveryTool` (type: `string`):

Name of the connector's tool to call. Leave empty: the best tool that posts a message, creates a page or appends rows is picked, and the run log lists every tool the connector offers.

## `deliveryArguments` (type: `object`):

Extra arguments for the tool, merged last, for example {"channel": "#reddit-leads"} or {"parent": {"database_id": "…"}}.

## Actor input object example

```json
{
  "countries": [
    "US"
  ],
  "periods": [
    "30"
  ],
  "maxItems": 50,
  "includeRetentionCurve": true,
  "includeScript": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Every ad with all its fields, and free error records.

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

A table with one row per ad.

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

Ads per country and period, notes, why the run stopped, and errors.

# 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 = {
    "countries": [
        "US"
    ],
    "periods": [
        "30"
    ],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("quarra/tiktok-top-ads-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 = {
    "countries": ["US"],
    "periods": ["30"],
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("quarra/tiktok-top-ads-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 '{
  "countries": [
    "US"
  ],
  "periods": [
    "30"
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call quarra/tiktok-top-ads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,quarra/tiktok-top-ads-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/aSaG5b4r18ObjiIvJ/builds/UhEdzFctkflNyZ4a2/openapi.json
