# TikTok Creative Center Top Ads Scraper (`nodeflow/tiktok-creative-center-top-ads-scraper`) Actor

Scrape top-performing TikTok ads from Creative Center. Extract CTR rankings, video URLs, brands, engagement stats, landing pages, keywords, industries, and campaign data by country and objective.

- **URL**: https://apify.com/nodeflow/tiktok-creative-center-top-ads-scraper.md
- **Developed by:** [NodeFlow](https://apify.com/nodeflow) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 50.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## TikTok Creative Center Top Ads Scraper

Scrape top-performing ads from [TikTok Creative Center](https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en) — no TikTok account required. Get CTR rankings, video URLs, brand names, engagement stats, landing pages, and keywords. Filter by country, industry, campaign objective, ad format, and time period.

**Billable unit:** 1 event per scraped ad.

***

### Features

- 🔍 Filter by **country** (49 countries), **industry**, **campaign objective**, **ad format**, and **time period**
- 📊 Fields: Ad ID, brand name, industry, country, objective, CTR rating, CTR rank, likes, cost rank, video URL, thumbnail, landing page, ad title, keywords
- 📺 Direct **video URLs** for downloading or previewing ad creatives
- 🔗 **Landing page URLs** for competitive research
- 🕒 Three time windows: Last 7, 30, or 180 days
- 📤 Export to JSON, CSV, Excel, or any Apify dataset format

***

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `countryCode` | string | `US` | 2-letter ISO country code (US, GB, DE, …) |
| `industryId` | integer | `0` | Industry filter (0 = All) |
| `objectiveType` | enum | `ALL` | Campaign objective |
| `periodType` | enum | `7` | Days: 7, 30, or 180 |
| `sortBy` | enum | `LAST_PERIOD_CTR` | Sort metric |
| `adFormat` | enum | `ALL` | Ad format filter |
| `maxItems` | integer | `50` | Max results (1–500) |

#### Objective types

`ALL` · `CONVERSION` · `APP_INSTALL` · `VIDEO_VIEWS` · `LEAD_GENERATION` · `CATALOG_SALES` · `TRAFFIC` · `REACH`

#### Industry IDs (common)

| ID | Industry |
|----|----------|
| 0 | All Industries |
| 17 | E-Commerce |
| 4 | Fashion & Accessories |
| 26 | Beauty & Personal Care |
| 29 | Food & Beverage |
| 22 | Sports & Outdoors |
| 8 | Games |
| 1 | News & Entertainment |

***

### Output example

```json
{
  "adId": "7123456789012345678",
  "brandName": "ExampleBrand",
  "industryName": "E-Commerce",
  "countryCode": "US",
  "objectiveType": "CONVERSION",
  "adFormat": "VIDEO",
  "ctr": "Above average",
  "ctrRank": 1,
  "likeCount": 42000,
  "costRank": 2,
  "videoUrl": "https://cdn.tiktok.com/video/example.mp4",
  "videoThumbnailUrl": "https://cdn.tiktok.com/thumb/example.jpg",
  "landingPageUrl": "https://example.com/product",
  "adCreativeUrl": "https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en?adId=7123456789012345678",
  "adTitle": "Shop our summer collection 🔥",
  "keywords": ["fashion", "summer", "sale"],
  "scrapedAt": "2024-10-01T12:00:00.000Z"
}
```

***

### Use cases

- **Competitor ad intelligence** — spy on competitors' TikTok creatives and messaging
- **Creative research** — find top-performing video formats and ad hooks for your niche
- **Market analysis** — identify trending brands and industries on TikTok
- **Media buying** — discover what CTR benchmarks top ads achieve
- **Content strategy** — extract keywords and messaging patterns from winning ads

***

### Limitations

- TikTok Creative Center requires a valid browser session (cookies). The Actor uses Playwright to load the Creative Center page and acquire session cookies before calling the API.
- If TikTok changes its authentication or API structure, the Actor may need updates.
- Video URLs may expire. Download promptly after scraping.
- Rate limiting: The Actor adds polite delays between paginated requests to avoid triggering rate limits.
- On Apify Cloud, **Residential Proxy** or **TikTok-compatible Datacenter Proxy** is recommended for reliable cookie acquisition.

***

### Local development

```bash
git clone https://github.com/arda-ozkan/tiktok-creative-center-top-ads.git
cd tiktok-creative-center-top-ads
npm ci
npm run build
## Run unit tests
npm test
## Run live smoke test (requires network access)
npm run test:live
```

***

### Apify API usage

```python
import apify_client

client = apify_client.ApifyClient("YOUR_API_TOKEN")

run = client.actor("arda-ozkan/tiktok-creative-center-top-ads").call(
    run_input={
        "countryCode": "US",
        "industryId": 0,
        "objectiveType": "CONVERSION",
        "periodType": 7,
        "sortBy": "LAST_PERIOD_CTR",
        "maxItems": 50,
    }
)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["brandName"], item["ctr"], item["videoUrl"])
```

***

### Responsible use

This scraper accesses **publicly available data** from TikTok's Creative Center dashboard. No login credentials are required or stored. Use this data for research, competitive intelligence, and marketing analysis in compliance with TikTok's Terms of Service. Do not use for spam, harassment, or other prohibited activities.

***

*Built with [Crawlee](https://crawlee.dev/) + [Playwright](https://playwright.dev/) · Hosted on [Apify](https://apify.com/)*

# Actor input Schema

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

Two-letter ISO country code to filter ads (e.g. US, GB, DE). Leave empty for global.

## `industryId` (type: `integer`):

Filter by TikTok industry ID. 0 = All industries. See README for full list.

## `objectiveType` (type: `string`):

Campaign objective filter.

## `periodType` (type: `string`):

Number of days for the analysis period.

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

Sort results by this metric.

## `adFormat` (type: `string`):

Filter by ad format.

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

Maximum number of ads to scrape. Each ad is one billable event. Default: 50.

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

Proxy settings. TikTok Creative Center REQUIRES Residential Proxy — datacenter IPs are blocked. Select 'RESIDENTIAL' group.

## Actor input object example

```json
{
  "countryCode": "US",
  "industryId": 0,
  "objectiveType": "ALL",
  "periodType": "7",
  "sortBy": "LAST_PERIOD_CTR",
  "adFormat": "ALL",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nodeflow/tiktok-creative-center-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 = { "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    } }

# Run the Actor and wait for it to finish
run = client.actor("nodeflow/tiktok-creative-center-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 '{
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call nodeflow/tiktok-creative-center-top-ads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nodeflow/tiktok-creative-center-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/MeQainTO6nHW2IkGA/builds/1yds1OtC6CVOXQCZB/openapi.json
