TikTok Ads Library Scraper (Commercial Content API) avatar

TikTok Ads Library Scraper (Commercial Content API)

Pricing

from $4.85 / 1,000 listings

Go to Apify Store
TikTok Ads Library Scraper (Commercial Content API)

TikTok Ads Library Scraper (Commercial Content API)

Scrape TikTok's Commercial Content Library via the official open.tiktokapis.com API. Search ads by keyword or advertiser business ID across EU/EEA/UK regions. Returns creatives, video URLs, reach buckets, targeting, and advertiser metadata. Official API = never breaks on DOM changes.

Pricing

from $4.85 / 1,000 listings

Rating

0.0

(0)

Developer

Vitalii Bondarev

Vitalii Bondarev

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

3 days ago

Last modified

Share

TikTok Ads Library Scraper — Commercial Content API

Scrape TikTok's Commercial Content Library via the official open.tiktokapis.com API. Search ads by keyword or advertiser business ID across EU/EEA/UK regions. Returns creatives, video URLs, reach estimates, targeting data, and advertiser metadata — all via the official API, which never breaks on DOM changes.

Why this actor over alternatives?

FeatureThis actorTypical DOM scrapers
Official APIYes — open.tiktokapis.comNo — scrapes library.tiktok.com HTML
StabilityNever breaks on UI changesBreaks when TikTok redesigns UI
parse_confidenceYes — per-record data quality scoreNo
Targeting dataYes — age/gender/location/interestsRarely
Per-country reachYes (via includeDetails)No
Proxy neededNo — official APIUsually yes ($$$)

Input

FieldRequiredDescription
accessTokenYesTikTok client access token (clt.xxx). Get via research program.
keywordsOne of theseKeywords to search ad copy for. Each runs as a separate query.
advertiserBusinessIdsOne of theseNumeric advertiser business IDs to look up directly.
countryCodeNoTwo-letter country code or ALL. EU/EEA/UK only. Default: ALL.
dateFromNoStart date, format YYYYMMDD. Minimum: 20221001.
dateToNoEnd date, format YYYYMMDD. Default: today.
searchTypeNoexact_phrase (default) or fuzzy_phrase.
maxItemsNoCap results per keyword. Leave blank = unlimited.
includeDetailsNoFetch full targeting + per-country reach (doubles requests).

Output schema

Each result row is a flat JSON object:

{
"ad_id": "1923845247192304",
"advertiser_name": "Nike EU",
"advertiser_id": "3847236290405",
"advertiser_paid_by": "Nike, Inc.",
"region": "FR",
"first_shown": "2024-01-01",
"last_shown": "2024-12-31",
"status": "active",
"impressions_range": "11K",
"video_url": "https://cdn.tiktokcdn.com/video123.mp4",
"image_urls": [],
"caption": null,
"ad_url": "https://library.tiktok.com/ads?adId=1923845247192304",
"query": "nike",
"parse_confidence": 1.0,
"warnings": []
}

With includeDetails: true, additional fields:

{
"targeting_countries": ["FR", "DE"],
"targeting_age": {"18-24": true, "25-34": true},
"targeting_gender": {"female": true, "male": true},
"targeting_audience_size": "50K",
"targeting_interests": "Sports, Fitness",
"reach_by_country": {"FR": "8K", "DE": "3K"},
"advertiser_profile_url": "https://www.tiktok.com/@nike",
"advertiser_avatar_url": "https://p16.tiktokcdn.com/avatar.jpeg",
"advertiser_follower_count": 1200000
}

Supported regions

EU/EEA/UK only — TikTok's Commercial Content API covers: Austria, Belgium, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, Netherlands, Norway, Iceland, Liechtenstein, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden, United Kingdom, Switzerland.

Use countryCode: "ALL" to search across all supported regions simultaneously.

Getting an access token

TikTok's Commercial Content API requires an approved research account:

  1. Apply at developers.tiktok.com → Research API
  2. Once approved, get your client_key and client_secret
  3. Exchange for an access token:
curl -X POST https://open.tiktokapis.com/v2/oauth/token/ \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "client_key=YOUR_KEY&client_secret=YOUR_SECRET&grant_type=client_credentials"

The response contains an access_token (prefixed clt.) — pass this as accessToken input.

FAQ

Why EU/EEA/UK only? TikTok's Commercial Content Library is a transparency measure under the EU Digital Services Act (DSA). Coverage is limited to these jurisdictions by TikTok's API design.

What is parse_confidence? A score from 0.0 to 1.0 indicating data quality for each record. 1.0 = all expected fields present. Below 0.5 = critical fields missing — check warnings for which ones.

What does impressions_range mean? TikTok returns audience reach as bucketed ranges (e.g., "11K", "100K–200K") rather than exact counts, by design. This is the raw value from the API.

Can I get ad creative text / copy? The TikTok Commercial Content API does not expose ad body copy directly. The caption field is extracted from rejection reason text when present. For creative copy, use TikTok's Creative Center separately.

Data since when? TikTok's Commercial Content Library covers ads from October 1, 2022 onward.


Not affiliated with TikTok, ByteDance, or their subsidiaries. All data is retrieved from TikTok's public official API.

Integrations

Built for ad-intelligence researchers and compliance teams with TikTok API access auditing EU/EEA ad creatives and targeting — the JSON/dataset output drops into the tools you already run, no glue code:

  • n8n / Make / Zapier — trigger a run or pipe every new dataset item into 500+ apps (Google Sheets, Airtable, Slack, HubSpot, your database) with no code: n8n, Make, Zapier.
  • Webhooks — fire your own endpoint the moment a run finishes, to push results straight into your pipeline (docs).
  • MCP server — expose this actor as a tool to Claude, Cursor, or any MCP client so an AI agent can pull this data mid-conversation (guide).
  • API & SDKs — fetch the dataset as JSON, CSV, or Excel through the Apify REST API or the Python / JS SDKs.

See all Apify integrations.