# TikTok Top Ads Scraper — Creative Center Spy (`buff_pineapple/tiktok-top-ads-scraper`) Actor

Scrape TikTok's Creative Center Top Ads — per region, period, industry, and objective. Get likes, CTR rank, budget tier, video creative URL, landing page, brand name, ad caption. No login. Works globally (US, GB, DE, FR, BR, JP, SG, IN…).

- **URL**: https://apify.com/buff\_pineapple/tiktok-top-ads-scraper.md
- **Developed by:** [yossef Nagy](https://apify.com/buff_pineapple) (community)
- **Categories:** Marketing, Social media, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Top Ads Scraper — Creative Center Spy

Scrape TikTok's official **Creative Center** Top Ads (the "high-performing auction ads" leaderboard at `ads.tiktok.com/business/creativecenter/inspiration/topads`).

Filter by region, look-back window, industry, campaign objective, ad format, ad language, and like-count band. For every ad, capture engagement (likes, comments, shares), CTR percentile rank, budget tier, the video creative URL, the landing page, the brand name, and the ad caption.

No login. No EU-only limit. Works globally — US, GB, DE, FR, BR, JP, SG, IN, ID, etc.

### Output

Each row:

```json
{
  "_kind": "top_ad",
  "ad_id": "7632588835168452616",
  "detail_url": "https://ads.tiktok.com/business/creativecenter/topads/7632588835168452616/pc/en",
  "cover_image": "https://p19-common-sign.tiktokcdn.com/.../o81R4fLogQG8h2EAfQtAezIsnRghGKZWQsh9fG~...",
  "objective": "Traffic",
  "industry": "Skincare",
  "likes": 694,
  "ctr_rank_pct": 1,
  "budget_tier": "High",
  "region": "GB",
  "period_days": 30,
  "detail": {
    "ad_title": "#AD #mixauk You guys have been asking what tan I've been using recently...",
    "likes": 694,
    "comments": 33,
    "shares": 18,
    "ctr": 0.01,
    "objectives": ["campaign_objective_traffic", "campaign_objective_product_sales"],
    "brand_name": "Mixa",
    "landing_page": "https://vm.tiktok.com/ZN9NYr2vpBahM-WHJC8/?utm_source=tiktok&...",
    "video_url": "https://v16m-default.tiktokcdn.com/.../oMGRQQvhRG4oZgIJoeGfR42WKfwQ9AgzAsAeLn/?..."
  },
  "scrapedAt": "2026-05-14T03:10:00.000Z"
}
````

### Run modes

| Mode | Output | When to use |
|---|---|---|
| `top_ads` (default) | Cards from the Top Ads leaderboard, filtered | Trend hunting, competitor watch, creative spy |
| `ad_detail` | Full detail for a list of ad IDs | Re-enrichment, deep dives |

### Filters

The actor builds a Cartesian product of:

- `regions` — ISO country codes (US, GB, DE, ...)
- `periods` — 7, 30, 60, 180 day look-back windows
- `industries` — e.g. "Beauty & Personal Care", "Apparel & Accessories"
- `objectives` — traffic, conversions, product\_sales, app\_promotion, lead\_generation
- `adFormats` — in\_feed, top\_view, branded\_effect
- `adLanguages` — en, es, de, fr, ja...
- `likeCount` — band filter e.g. "1000-10000"
- `sortBy` — For You / Reach / CTR / Likes

### Example inputs

#### 1. Skincare ads in GB + US, last 30 days

```json
{
  "mode": "top_ads",
  "regions": ["GB", "US"],
  "periods": ["30"],
  "industries": ["Beauty & Personal Care"],
  "maxAdsPerCombo": 50,
  "includeAdDetail": true
}
```

#### 2. Top-performing ads across 8 countries

```json
{
  "mode": "top_ads",
  "regions": ["US","GB","DE","FR","IT","ES","NL","BR"],
  "periods": ["7"],
  "sortBy": "CTR",
  "maxAdsPerCombo": 20
}
```

#### 3. Deep-dive on specific ads

```json
{
  "mode": "ad_detail",
  "adIds": ["7632588835168452616", "7630671351813619713"]
}
```

### Pricing (PAY\_PER\_EVENT)

| Event | Price |
|---|---|
| Actor start | $0.005 |
| Filter combo swept | $0.005 |
| Ad listing row extracted | $0.0005 |
| Ad detail fetched | $0.001 |

A typical run for 3 regions × 30-day × 50 ads each with detail = **~$0.20**.

### Ethics

TikTok's Creative Center is a public marketing-research surface. The actor accesses only publicly displayed information, requires no login, and does not bypass any rate-limit.

### License

MIT.

# Actor input Schema

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

top\_ads: scrape the TikTok Creative Center Top Ads listing with filters. ad\_detail: fetch full detail for a list of ad IDs.

## `regions` (type: `array`):

ISO country codes. TikTok Creative Center supports many — US, GB, DE, FR, IT, ES, NL, BR, JP, SG, AU, CA, MX, IN, ID, TH, VN, PH, etc.

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

Periods to scrape: 7, 30, 60, or 180 days.

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

Empty = all industries. Examples: "Beauty & Personal Care", "Apparel & Accessories", "Food & Beverages", "Games & Utility Software", "Sports & Outdoor".

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

Empty = all. Examples: traffic, conversions, product\_sales, app\_promotion, lead\_generation.

## `adFormats` (type: `array`):

Empty = all. Examples: in\_feed, top\_view, branded\_effect.

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

Empty = all. ISO codes (en, es, de, fr, ja...).

## `likeCount` (type: `string`):

Optional range filter (e.g. '0-1000', '1000-10000', '10000+'). Empty = no filter.

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

How the listing is ordered.

## `maxAdsPerCombo` (type: `integer`):

Limit on how many ads to pull per filter combination. Larger = more scrolls = more time.

## `includeAdDetail` (type: `boolean`):

For each listed ad, also fetch the detail page to capture brand name, landing page URL, video URL, full caption, CTR, etc.

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

List of TikTok ad IDs to fetch detail for. Example: 7632588835168452616

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

Optional. Apify proxy recommended for high-volume runs.

## `maxConcurrency` (type: `integer`):

Max parallel combos.

## Actor input object example

```json
{
  "mode": "top_ads",
  "regions": [
    "US",
    "GB",
    "DE"
  ],
  "periods": [
    "30"
  ],
  "industries": [],
  "objectives": [],
  "adFormats": [],
  "adLanguages": [],
  "likeCount": "",
  "sortBy": "For You",
  "maxAdsPerCombo": 40,
  "includeAdDetail": true,
  "adIds": [],
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 3
}
```

# 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 = {
    "regions": [
        "US",
        "GB",
        "DE"
    ],
    "periods": [
        "30"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("buff_pineapple/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 = {
    "regions": [
        "US",
        "GB",
        "DE",
    ],
    "periods": ["30"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("buff_pineapple/tiktok-top-ads-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "regions": [
    "US",
    "GB",
    "DE"
  ],
  "periods": [
    "30"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call buff_pineapple/tiktok-top-ads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=buff_pineapple/tiktok-top-ads-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "TikTok Top Ads Scraper — Creative Center Spy",
        "description": "Scrape TikTok's Creative Center Top Ads — per region, period, industry, and objective. Get likes, CTR rank, budget tier, video creative URL, landing page, brand name, ad caption. No login. Works globally (US, GB, DE, FR, BR, JP, SG, IN…).",
        "version": "0.1",
        "x-build-id": "OuYCM17p1kjtOg7Pm"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/buff_pineapple~tiktok-top-ads-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-buff_pineapple-tiktok-top-ads-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/buff_pineapple~tiktok-top-ads-scraper/runs": {
            "post": {
                "operationId": "runs-sync-buff_pineapple-tiktok-top-ads-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/buff_pineapple~tiktok-top-ads-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-buff_pineapple-tiktok-top-ads-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "regions",
                    "periods"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "top_ads",
                            "ad_detail"
                        ],
                        "type": "string",
                        "description": "top_ads: scrape the TikTok Creative Center Top Ads listing with filters. ad_detail: fetch full detail for a list of ad IDs.",
                        "default": "top_ads"
                    },
                    "regions": {
                        "title": "Regions",
                        "type": "array",
                        "description": "ISO country codes. TikTok Creative Center supports many — US, GB, DE, FR, IT, ES, NL, BR, JP, SG, AU, CA, MX, IN, ID, TH, VN, PH, etc.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "periods": {
                        "title": "Look-back periods (days)",
                        "type": "array",
                        "description": "Periods to scrape: 7, 30, 60, or 180 days.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "industries": {
                        "title": "Filter: industries",
                        "type": "array",
                        "description": "Empty = all industries. Examples: \"Beauty & Personal Care\", \"Apparel & Accessories\", \"Food & Beverages\", \"Games & Utility Software\", \"Sports & Outdoor\".",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "objectives": {
                        "title": "Filter: campaign objectives",
                        "type": "array",
                        "description": "Empty = all. Examples: traffic, conversions, product_sales, app_promotion, lead_generation.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "adFormats": {
                        "title": "Filter: ad formats",
                        "type": "array",
                        "description": "Empty = all. Examples: in_feed, top_view, branded_effect.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "adLanguages": {
                        "title": "Filter: ad languages",
                        "type": "array",
                        "description": "Empty = all. ISO codes (en, es, de, fr, ja...).",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "likeCount": {
                        "title": "Filter: like count range",
                        "type": "string",
                        "description": "Optional range filter (e.g. '0-1000', '1000-10000', '10000+'). Empty = no filter.",
                        "default": ""
                    },
                    "sortBy": {
                        "title": "Sort by",
                        "enum": [
                            "For You",
                            "Reach",
                            "CTR",
                            "Likes"
                        ],
                        "type": "string",
                        "description": "How the listing is ordered.",
                        "default": "For You"
                    },
                    "maxAdsPerCombo": {
                        "title": "Max ads per (region × period × filter) combo",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Limit on how many ads to pull per filter combination. Larger = more scrolls = more time.",
                        "default": 40
                    },
                    "includeAdDetail": {
                        "title": "Pull full ad detail (slower but richer output)",
                        "type": "boolean",
                        "description": "For each listed ad, also fetch the detail page to capture brand name, landing page URL, video URL, full caption, CTR, etc.",
                        "default": true
                    },
                    "adIds": {
                        "title": "Ad IDs (for `ad_detail` mode only)",
                        "type": "array",
                        "description": "List of TikTok ad IDs to fetch detail for. Example: 7632588835168452616",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Optional. Apify proxy recommended for high-volume runs."
                    },
                    "maxConcurrency": {
                        "title": "Max concurrency",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Max parallel combos.",
                        "default": 3
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
