# TikTok Top Ads Research · Creative Center (`data-slayer/tiktok-top-ads-scraper`) Actor

Research curated, high-performing TikTok ads from Creative Center by country, 7/30/180-day window, ranking, industry, objective, and language. Export unique ad rows with optional detail enrichment. This Actor does not cover every running TikTok ad or the EU transparency archive.

- **URL**: https://apify.com/data-slayer/tiktok-top-ads-scraper.md
- **Developed by:** [Data Slayer](https://apify.com/data-slayer) (community)
- **Categories:** Social media, Marketing
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 top 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 Research

Research curated, high-performing TikTok ads surfaced by Creative Center. Filter by country, 7/30/180-day observation window, ranking, industry, objective, and language. This Actor does not provide exhaustive ad coverage, an EU transparency archive, or every currently running TikTok ad.

### Input

- `countryCode` — uppercase two-letter country code; default `US`.
- `period` — `7`, `30`, or `180`; default `30`.
- `orderBy` — `impression`, `ctr`, `like`, `cvr`, `play_6s_rate`, or `play_2s_rate`; default `impression`.
- `industryKey` — optional Creative Center industry key.
- `objectiveKey` — optional supported campaign objective.
- `language` — optional ISO language code.
- `maxResults` — 0–500 unique ads; `0` makes no data request and writes no row.
- `includeDetails` — optional detail lookup for each unique ad.

Example:

```json
{
  "countryCode": "US",
  "period": 30,
  "orderBy": "ctr",
  "industryKey": "",
  "objectiveKey": "campaign_objective_conversion",
  "language": "en",
  "maxResults": 100,
  "includeDetails": true
}
```

### Output

The default dataset contains one row per unique curated Top Ad. Rows include the ad identifier and page, title, brand, industry and objective, available engagement metrics, creative metadata, optional landing page and keywords, detail status, and observation context. A free run summary is written to `RUN_SUMMARY`; status records are never dataset rows.

Detail lookup is best effort. If it is unavailable, the Actor stores a base row and charges only the base event. Output is timestamped observation data, not a claim that an ad is active now or that the result set is complete.

### Pricing events

- Actor start: one event per GB of memory, minimum one.
- Top Ad: one successfully stored base row.
- Top Ad with details: one successfully stored enriched row; this replaces rather than adds to the base-row event.

Empty, duplicate, invalid, failed, and unavailable rows are not charged. Free-user event revenue has zero developer payout under Apify's current rules.

### Reliability

The Actor applies bounded retries, `Retry-After`, request/time/result budgets, stable-ID deduplication, repeated-cursor termination, safe public errors, cooperative cancellation, and charge reconciliation. Partial and uncertain outcomes are reported honestly in `RUN_SUMMARY`.

### FAQ

**How much does it cost to run this Actor?**
Pricing is listed in the Pricing section above, charged per row returned. You only pay for the rows
the Actor actually produces, so a small test run costs cents.

**Do I need cookies or a login?**
No. This Actor reads public data only - no cookies, no account, no browser automation.

**Can I schedule it?**
Yes. Run it from the Apify API, on a schedule, or via a webhook, and export results as JSON, CSV or Excel.

**What if I need a slightly different output?**
Open an issue on the Actor's Issues tab describing the shape you need.

### Related actors

More Tiktok actors from the same portfolio. Apify only auto-recommends actors in the same category, so here are the rest of ours:

| Actor |
|---|
| [TikTok Comments Scraper · No Cookies](https://apify.com/data-slayer/tiktok-comments) |
| [TikTok Content Discovery Scraper · Hashtags & Sounds](https://apify.com/data-slayer/tiktok-content-discovery) |
| [TikTok Followers Scraper · No Cookies](https://apify.com/data-slayer/tiktok-followers) |
| [TikTok Popular Posts Scraper · No Cookies](https://apify.com/data-slayer/tiktok-popular-posts) |
| [TikTok Profile Scraper · No Cookies](https://apify.com/data-slayer/tiktok-profile-scraper) |
| [TikTok Video Details Scraper · URL or ID](https://apify.com/data-slayer/tiktok-video-details) |
| [TikTok Video Search Scraper · No Cookies](https://apify.com/data-slayer/tiktok-video-search) |

# Actor input Schema

## `countryCode` (type: `string`):

Uppercase ISO two-letter country code used for the Top Ads observation, such as US, GB, DE, BR, JP, or IN.

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

Top Ads look-back window in days.

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

Rank the curated Top Ads by impressions, click-through rate, likes, conversion rate, or play rate.

## `industryKey` (type: `string`):

Optional Creative Center industry key, for example label\_13101000000. Leave empty for all industries.

## `objectiveKey` (type: `string`):

Optional campaign objective. Leave empty for all objectives.

## `language` (type: `string`):

Optional ISO language code such as en, es, or pt-BR. Leave empty for all languages.

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

Maximum unique Top Ad rows to store. Set to 0 for a no-request, no-write run.

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

Fetch one optional detail request per unique ad to add landing page, keywords, richer creative fields, and engagement fields when available. Failed detail lookups fall back to a base row and the lower base-row event.

## Actor input object example

```json
{
  "countryCode": "US",
  "period": "30",
  "orderBy": "impression",
  "industryKey": "",
  "objectiveKey": "",
  "language": "",
  "maxResults": 100,
  "includeDetails": false
}
```

# Actor output Schema

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

One dataset item per unique curated Top Ad successfully added. Empty, duplicate, failed, and unavailable rows are not stored.

## `runSummary` (type: `string`):

Free run outcome, request and row counts, safe errors, detail coverage, and billing reconciliation.

# 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 = {
    "countryCode": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("data-slayer/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 = { "countryCode": "US" }

# Run the Actor and wait for it to finish
run = client.actor("data-slayer/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 '{
  "countryCode": "US"
}' |
apify call data-slayer/tiktok-top-ads-scraper --silent --output-dataset

```

## MCP server setup

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