# TikTok Top Ads Scraper (Creative Center) (`locaihost/tiktok-top-ads`) Actor

Top ads from TikTok Creative Center by country, industry and period: up to 20 ads per ranking with landing page, budget level, CTR percentile, likes and the countries each ad runs in, plus rank change since your last run. No login. $2 per 1,000 ads.

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

## Pricing

from $1.10 / 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 Scraper (Creative Center)

Get the top ads from TikTok Creative Center as rows: up to 20 ads per ranking, by country, industry, period and sort order. Each row has the ad text, brand, industry, objective, likes, CTR percentile, budget level and video link. Every row also says how the ad's rank moved since your last run. No login, no cookies.

What people use it for:

- Ad research: what the top ads in a country promote, where they send people and how long they run.
- Creative ideas: the best performing videos by CTR, likes or reach in your industry, with the video file link.
- Competitor watch: which brands enter your industry's ranking and how their ads climb or drop.
- Daily tracking: schedule it and get only the ads that are new to each ranking.

### How do I start?

Paste this into the **JSON** tab of the input and click **Start**:

```json
{"countries": ["US"], "period": "7"}
```

You get up to 20 rows, the top ads in the US over the last 7 days, usually in under a minute. More examples:

```json
{"countries": ["US", "GB", "DE"], "period": "30", "industries": ["beauty-personal-care", "apparel-accessories"]}
```

```json
{"countries": ["US"], "topAdsSortBy": "ctr", "onlyNew": true}
```

Each country × industry × period × sort combination is its own ranking of up to 20 ads. The second example reads 6 rankings, so up to 120 ads.

### What does each row contain?

| Group | Fields |
|---|---|
| Ranking | `rank`, `previousRank`, `rankChange` (positive = moved up), `isNewToRanking`, `previousRunAt`, `country`, `countryName`, `periodDays`, `filterIndustry`, `sortBy`, `sourceUrl`, `listKey`, `scrapedAt` |
| Ad | `id` (TikTok's stable id), `title` (ad text), `brand`, `industry`, `objective`, `likes`, `ctrTopPercent` (CTR percentile, e.g. 26 = top 26%), `budget` (Low / Medium / High), `durationSec`, `videoUrl`, `coverUrl`, `width`, `height`, `detailsUrl` |
| Details (optional, off by default) | `details.landingPage`, `details.landingDomain`, `details.runsInCountries`, `details.comments`, `details.shares`, `details.keywords`, `details.source` |

One real row (US, last 7 days, shortened):

```json
{
  "type": "top-ad",
  "rank": 1,
  "previousRank": 1,
  "rankChange": 0,
  "isNewToRanking": false,
  "id": "7686735943021379602",
  "title": "Limited time flash discount! Save 10%-20% on trendy sunglasses ,Free shipping on 2+ pairs",
  "industry": "Clothing Accessories",
  "objective": "Conversions",
  "likes": 7,
  "ctrTopPercent": 26,
  "budget": "Low",
  "durationSec": 13.834,
  "country": "US",
  "periodDays": 7,
  "sortBy": "for_you"
}
```

### How does "rank change" and "only new" work?

Each run stores the ads it returned in a small store in your own Apify account (named `tiktok-top-ads-state`), one entry per ranking. The next run fills in `previousRank`, `rankChange` and `isNewToRanking` from it. Turn on **Only items new to the ranking** to return, and pay for, only the ads this ranking has not shown you before. Rank change is free either way.

### How much does it cost?

You pay per ad returned. There is no charge for Apify platform usage on top.

| Row | Free and Starter | Scale | Business |
|---|---|---|---|
| Top ad | $2.00 per 1,000 | $1.50 per 1,000 | $1.10 per 1,000 |

Plus $0.00005 per run start. **Apify's free $5 monthly credit covers about 2,500 ads.**

**What's free:** rank change, detail page data when you turn it on and TikTok opens the page, ads skipped by **Only items new to the ranking**, and the run summary. To cap a run's spend, set **Maximum cost per run** in the run options, or **Max ads** in the input.

### What are the limits?

- Up to 20 ads per ranking: that is what Creative Center sends to a visitor who is not logged in. Ask for more countries, industries or sort orders to get more ads.
- 28 countries, 21 industries, periods of 7, 30 or 180 days, and 5 sort orders (for you, reach, CTR, likes, 6-second view rate).
- Ad detail pages (landing page, countries, comments, shares) are off by default, because TikTok currently closes them to visitors who are not logged in. Turn on **Try ad detail pages** to attempt them: the run notices after two tries, carries on without `details` and says so in the status message.
- Filters Creative Center keeps behind a login (objective, ad format, language) are not offered.

### Can I call it from my code, n8n or an AI agent?

**API.** Run it and get the rows back in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/locaihost~tiktok-top-ads/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"countries": ["US"], "period": "7"}'
```

**n8n, Make, Zapier, Google Sheets, Slack, webhooks.** Apify's built-in integrations send each run's rows wherever you need them, for example a daily Slack message with the new top ads in your industry.

**AI agents (MCP).** Add this Actor to Claude, Cursor or any MCP client with `https://mcp.apify.com/?tools=locaihost/tiktok-top-ads`, then ask something like *"What are the top beauty ads in the UK this month, and which brands run them?"*

### FAQ

#### How much does it cost to scrape TikTok top ads?

$2.00 per 1,000 ads on the Free and Starter plans, less on Scale and Business. Apify's free $5 monthly credit covers about 2,500 ads.

#### Do I need a TikTok account or cookies?

No. The Actor never logs in and never asks for cookies or passwords. It reads what Creative Center sends to a visitor who is not logged in.

#### Why is `details` empty?

Detail pages are off by default. When you turn them on, TikTok often closes them to visitors who are not logged in; the rest of the row is still there, and the status message says so.

#### Can I get trending hashtags and videos too?

Yes, with [TikTok Trends Scraper](https://apify.com/locaihost/tiktok-trends), which this Actor is built on. It returns hashtags, trending videos and the top 4 ads per ranking in one run.

#### Is it legal to scrape TikTok Creative Center?

The Actor collects only what Creative Center shows a visitor who is not logged in, and the ads are published by businesses. TikTok's terms restrict automated collection, so check them against your use. You are responsible for how you use the results, including TikTok's terms and the law that applies to you.

### More from locaihost data

- [TikTok Trends Scraper](https://apify.com/locaihost/tiktok-trends): trending hashtags, videos and top ads by country.
- [TikTok Shop Scraper](https://apify.com/locaihost/tiktok-shop): products, prices and units sold.
- [Website Traffic Checker](https://apify.com/locaihost/website-traffic): visits and traffic sources for the advertisers' websites.

### Did it help?

Did it help? A short rating on the Store helps other people find it.

### Support

Something not working, or a field you need? Open an issue on the **Issues** tab: we answer issues within 24 hours.

# Changelog

This Actor's version history is a separate document: https://apify.com/locaihost/tiktok-top-ads/changelog.md

# Actor input Schema

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

One ranking is read per country (and per industry and sort order, if you pick any). Each ranking returns up to 20 ads.

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

Days the ranking covers: 7, 30 or 180. Every row says which in periodDays.

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

Stop after this many ads. Leave empty for no limit (your maximum cost per run still applies).

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

Leave empty for all industries together. Each industry you pick becomes its own ranking per country, with up to 20 ads each.

## `topAdsSortBy` (type: `string`):

The order Creative Center ranks top ads in.

## `includeAdDetails` (type: `boolean`):

Also open each ad's public detail page for its landing page, the countries it runs in, comments and shares. TikTok currently closes these pages to visitors who are not logged in, so this is off by default; when they are closed the run notices after two tries, carries on and says so. No extra charge.

## `onlyNew` (type: `boolean`):

For daily schedules: return (and charge for) only ads this saved task has not returned before in the same ranking. Rank change since your last run is filled in either way.

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

Apify Proxy by default: datacenter first, residential only if TikTok blocks (included in the price).

## `modes` (type: `array`):

Fixed to top ads on this listing.

## `listing` (type: `string`):

Fixed on this listing.

## Actor input object example

```json
{
  "countries": [
    "US"
  ],
  "period": "7",
  "industries": [],
  "topAdsSortBy": "for-you",
  "includeAdDetails": false,
  "onlyNew": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "modes": [
    "topAds"
  ],
  "listing": "topads"
}
```

# Actor output Schema

## `topAds` (type: `string`):

Top-ad rows with title, brand, industry, objective, likes, CTR percentile, budget level, landing page and the countries each ad runs in.

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

Rankings read, empty and failed, proxy tier used, field-drift check and measured cost.

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

// Run the Actor and wait for it to finish
const run = await client.actor("locaihost/tiktok-top-ads").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"],
    "proxyConfiguration": { "useApifyProxy": True },
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,locaihost/tiktok-top-ads"
        }
    }
}
```

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/zRNy0SMxlPprO47Om/builds/08QdjEKYs7BC4I837/openapi.json
