Apify example task · whoareyouanas/tiktok-ad-scraper

Top TikTok ads in the United States from Creative Center

Pull a small sample of top-performing TikTok ads from TikTok Creative Center for the United States: video and cover URLs, CTR, industry, campaign objective and video length. Paste another Creative Center URL to change the country or period.

Actor
TikTok Ad Library Scraper & Creative Center Top Ads
Result limit
3 (maxResults)
Estimated cost
Up to $0.0151
Run options
2 GB memory · 300 s timeout

Example updated 2026-11-22 · actor build 0.0.10 · runs in your own Apify account

01 / About the actor

TikTok Ad Library Scraper & Creative Center Top Ads

Research creatives from TikTok Ad Library, Creative Center, or both. Export available ad copy, advertiser context, media links, dates, and source-specific targeting or performance signals.

Two public sources

Select the transparency Ad Library or Creative Center according to your research question.

URL or parameters

Provide a supported source URL or build a search with mode, country, query, and filters.

Creative exports

Keep advertiser details and available media or metrics in structured records.

02 / Input

The exact input this example runs.

targetUrl can identify the source directly. For parameter searches, choose scrapeMode and a compatible country. Ad Library and Creative Center have different geography and filter coverage. Start with a small maxResults.

input.json · tiktok-top-ads-creative-center
{
  "targetUrl": "https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en?countryCode=US&period=30",
  "maxResults": 3,
  "quickSearch": true,
  "maxConcurrency": 1
}
Input fields used by this example, their values and what they control
FieldValue in this exampleWhat it controls
targetUrlChange this"https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en?countryCode=US&period=30"Paste a TikTok Ad Library or Creative Center URL directly. If provided, all parameter fields below are ignored.
maxResultsChange this3Maximum number of ads to return. Set to 0 for unlimited. Ad Library has a platform cap of ~3,600 results per query.
quickSearchChange thistrueIf enabled, skips detail page visits for faster, cheaper scraping. Returns search-level fields only (no targeting or detailed reach data). Recommended for large-volume scrapes.
maxConcurrency1Number of parallel requests. Keep at 1 for stability. Increase to 2-3 only if you need faster scraping.
Other inputs you can add (8)
Deployed actor input fields, types, defaults, and descriptions
FieldType / requiredDefaultPurpose
scrapeModestring"ad_library"Choose which TikTok data source to scrape. Ad Library covers EU/EEA with rich targeting data. Creative Center covers 50+ countries globally with performance metrics. 'Both' runs both sources.

Options: ad_library, creative_center, both

searchQuerystringNot specifiedKeyword or advertiser name to search for (e.g. 'nike', 'shopify', 'gaming app').
advertiserIdstringNot specifiedTikTok advertiser business ID to look up all ads from a specific advertiser.
countrystring"all"Country code for filtering. For Ad Library: EU/EEA countries only (e.g. DE, FR, IT, ES, NL, GB). For Creative Center: any of 50+ countries (e.g. US, JP, BR, IN).

Options: all, US, GB, DE, FR, IT, ES, NL, PL, BE, SE, AT, DK, FI, IE, PT, CZ, RO, HU, SK, BG, HR, LT, SI, LV, EE, CY, LU, MT, GR, CH, NO, IS, LI, JP, KR, AU, BR, MX, IN, ID, TH, VN, PH, MY, SG, TW, CA, AR, CL, CO, PE, EG, SA, AE, TR, ZA, NG, KE

industrystring"all"Filter by industry vertical. Only applies to Creative Center mode.

Options: all, apparel_and_accessories, beauty_and_personal_care, ecommerce, education, finance, food_and_beverage, games, health, home_improvement, news_and_entertainment, tech_and_electronics, travel, vehicle

objectivestring"all"Filter by campaign objective. Only applies to Creative Center mode.

Options: all, app_install, traffic, lead_generation, conversions, reach, video_views, community_interaction

timePeriodstring"30"Time window for results. For Ad Library: custom date range via startDate/endDate. For Creative Center: preset windows.

Options: 7, 30, 180

startDatestringNot specifiedStart date for Ad Library search in YYYY-MM-DD format. Defaults to 1 year ago.

03 / Make it yours

Change these fields for your own research.

  1. 01 · targetUrl

    Direct URL (Optional)

    Paste a TikTok Ad Library or Creative Center URL directly. If provided, all parameter fields below are ignored.

    Example: "https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en?countryCode=US&period=30"

  2. 02 · maxResults

    Max Results

    Maximum number of ads to return. Set to 0 for unlimited. Ad Library has a platform cap of ~3,600 results per query.

    Example: 3

  3. 03 · quickSearch

    Quick Search Mode

    If enabled, skips detail page visits for faster, cheaper scraping. Returns search-level fields only (no targeting or detailed reach data). Recommended for large-volume scrapes.

    Example: true

Run it in three steps

  1. Open the example on Apify and select Try for free to copy it into your Apify account.
  2. Replace the sample values above with your own target and keep the limit small.
  3. Start the run, then export the dataset as JSON, CSV or Excel.

04 / Output

What the results table shows.

Columns in the “Overview” view

adId

Ad ID

advertiserName

Advertiser

advertiserBusinessId

Business ID

advertiserLocation

Location

paidForBy

Paid For By

status

Status

adFormat

Format

firstShownDate

First Shown

lastShownDate

Last Shown

estimatedAudience

Est. Audience

estimatedAudienceMin

Audience Min

estimatedAudienceMax

Audience Max

videoUrl

Video

coverImageUrl

Cover

adCopy

Ad Copy

targetGender

Target Gender

targetAgeRange

Target Age

audienceSize

Audience Size

likes

Likes

ctr

CTR

viewRate2s

2s View Rate

viewRate6s

6s View Rate

industry

Industry

campaignObjective

Objective

videoDuration

Duration (s)

detailUrl

Detail URL

source

Source

sourceUrl

Source URL

A view selects columns for the table. The full JSON export keeps every field, including nested arrays and objects.

05 / Cost

What this example costs to run.

At most about $0.0151: up to 3 results at $0.005 each (Ad scraped) plus $0.0001 for the start event at 2 GB of memory. Fewer results cost less. The live Pricing tab on Apify is authoritative.

Prices checked 2026-11-22. Set a run spending limit in Apify when you widen the input.

06 / API

Run the same input from your code.

This call starts a billable run of TikTok Ad Library Scraper & Creative Center Top Ads with this example's input and returns the dataset items when it finishes. Synchronous calls wait up to five minutes; for longer runs, POST to /runs instead and read the run's default dataset when it succeeds. Keep the token in an environment variable.

cURL · run and return the results
curl --request POST \
  'https://api.apify.com/v2/acts/whoareyouanas~tiktok-ad-scraper/run-sync-get-dataset-items?format=json' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"targetUrl":"https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en?countryCode=US&period=30","maxResults":3,"quickSearch":true,"maxConcurrency":1}'

Coverage & interpretation

Check the result before relying on it.

Questions

About this example.

What does the "Top TikTok ads in the United States from Creative Center" example collect?

Pull a small sample of top-performing TikTok ads from TikTok Creative Center for the United States: video and cover URLs, CTR, industry, campaign objective and video length. Paste another Creative Center URL to change the country or period. It runs TikTok Ad Library Scraper & Creative Center Top Ads, published by whoareyouanas on Apify.

Which input does this example use?

Direct URL (Optional) (targetUrl) set to "https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en?countryCode=US&period=30"; Max Results (maxResults) set to 3; Quick Search Mode (quickSearch) set to true. The full JSON input is shown on this page.

How much does it cost to run this example?

At most about $0.0151: up to 3 results at $0.005 each (Ad scraped) plus $0.0001 for the start event at 2 GB of memory. Fewer results cost less. The live Pricing tab on Apify is authoritative.

How do I change it for my own research?

Open the example on Apify and select Try for free to copy it into your account, then edit Direct URL (Optional), Max Results, Quick Search Mode. Keep the result limit small for the first run and check the output before scaling up.

Can I run it from the API or on a schedule?

Yes. Send the same JSON input to the TikTok Ad Library Scraper & Creative Center Top Ads run endpoint with your Apify API token, or save the copied task in your Apify account and add a schedule. Results land in the run's default dataset as JSON, CSV or Excel.

Can an AI agent use this Actor through MCP?

Connect to https://mcp.apify.com?tools=whoareyouanas/tiktok-ad-scraper. Pass the same Actor input, then wait for the run and read its dataset with the MCP storage tools.

What if fields are missing or no results are returned?

Inspect the run status, logs and row fields. TikTok currently blocks automated Ad Library requests, so Ad Library mode fails with that explanation; this example uses Creative Center, which works.

More examples

Related tasks you can copy.

Guides

Read more about this workflow.