The Piloterr TikTok Top Ads Scraper API lets you extract public data from TikTok Top Ads as clean, structured JSON — no proxies, headless browsers or HTML parsing to maintain. Endpoints available in production:
- TikTok Top Ads Ad API — Get one TikTok Creative Center Top Ad by URL or id: creative, landing page, CTR, and engagement (1 credit).
- TikTok Top Ads Search API — Search TikTok Creative Center Top Ads by region, objective, period, and keyword.
Use it for brand monitoring, social listening, influencer research, ad intelligence or content analytics on public data.
| Endpoint | Path | Credits | What you get |
|---|---|---|---|
| TikTok Top Ads Ad API | /v2/tiktoktopads/ad |
1 | Get one TikTok Creative Center Top Ad by URL or id |
| TikTok Top Ads Search API | /v2/tiktoktopads/search |
1 | Search TikTok Creative Center Top Ads by region, objective, period, and keyword. Returns ad cards and pagination (1 credit). |
- How it works
- TikTok Top Ads Ad API
- TikTok Top Ads Search API
- Code examples in other languages
- Practical use cases
- Why Piloterr?
- FAQ
- Official SDKs
- Related scrapers
- Support
- Create a free Piloterr account and copy your API key from the dashboard.
- Send a
GET(orPOST) request tohttps://api.piloterr.com/v2/...with the headerx-api-key: YOUR_API_KEY. - Receive structured JSON — Piloterr handles rendering, proxies, retries and parsing.
export PILOTERR_API_KEY="your-api-key"
pip install requests # Python
# TypeScript: Node.js 18+ (native fetch), run with `npx tsx file.ts`Every endpoint accepts both
GET(query string) andPOST(JSON body with the same fields).
Get one TikTok Creative Center Top Ad by URL or id: creative, landing page, CTR, and engagement (1 credit).
GET | POST https://api.piloterr.com/v2/tiktoktopads/ad · 1 credit per request · Full reference
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | ✅ | Ad id or detail URL from search. |
import json
import os
import requests
response = requests.get(
"https://api.piloterr.com/v2/tiktoktopads/ad",
headers={"x-api-key": os.environ["PILOTERR_API_KEY"]},
params={
"query": "https://ads.tiktok.com/business/creativecenter/topads/7686267188656750612/pc/en?period=30",
},
timeout=120,
)
response.raise_for_status()
data = response.json()
print(json.dumps(data, indent=2, ensure_ascii=False)[:2000])type TiktokTopAdsAd = {
ctr?: number;
url?: string;
cost?: number;
ad_id?: string;
format?: string;
source?: string;
duration?: number;
headline?: string;
countries?: string[];
image_url?: string;
objective?: string;
video_url?: string;
like_count?: number;
objectives?: {
label?: string;
value?: number;
}[];
voice_over?: unknown;
share_count?: number;
industry_key?: string;
keyword_list?: unknown;
landing_page?: string;
comment_count?: number;
advertiser_name?: string;
};
const params = new URLSearchParams({
"query": "https://ads.tiktok.com/business/creativecenter/topads/7686267188656750612/pc/en?period=30",
});
const response = await fetch(`https://api.piloterr.com/v2/tiktoktopads/ad?${params}`, {
headers: { "x-api-key": process.env.PILOTERR_API_KEY! },
});
if (!response.ok) throw new Error(`Piloterr error ${response.status}: ${await response.text()}`);
const data = (await response.json()) as TiktokTopAdsAd;
console.log(JSON.stringify(data, null, 2).slice(0, 2000));POST variant
POST https://api.piloterr.com/v2/tiktoktopads/ad
x-api-key: YOUR_API_KEY
Content-Type: application/json
{"query": "https://ads.tiktok.com/business/creativecenter/topads/7686267188656750612/pc/en?period=30"}Example response from the API reference, abridged — real values depend on the page you scrape.
{
"ctr": 0.22,
"url": "https://ads.tiktok.com/business/creativecenter/topads/7686267188656750612/pc/en?period=30",
"cost": 1,
"ad_id": "7686267188656750612",
"format": "video",
"source": "TikTok Ads Manager",
"duration": 32.9,
"headline": "25% Off Our Popular Juice Groove Router Jig. Limited Time Sale!",
"countries": [
"US"
],
"image_url": "https://p16.tiktokcdn.com/detail-cover.jpg",
"objective": "campaign_objective_conversion",
"video_url": "https://v16.tiktokcdn.com/detail.mp4",
"like_count": 39,
"objectives": [
{
"label": "campaign_objective_conversion",
"value": 3
}
],
"voice_over": null,
"share_count": 1,
"industry_key": "label_21103000000",
"keyword_list": null,
"landing_page": "https://craftedelements.com/products/juice-groove-router-jig",
"comment_count": 0,
"advertiser_name": "crafted elements"
}| Field | Type | Description |
|---|---|---|
ctr |
number | |
url |
string | |
cost |
integer | |
ad_id |
string | |
format |
string | |
source |
string | |
duration |
number | |
headline |
string | |
countries |
string[] | |
image_url |
string | |
objective |
string | |
video_url |
string | |
like_count |
integer | |
objectives[] |
object[] | |
objectives[].label |
string | |
objectives[].value |
integer | |
voice_over |
object | |
share_count |
integer | |
industry_key |
string | |
keyword_list |
object | |
landing_page |
string | |
comment_count |
integer | |
advertiser_name |
string |
Search TikTok Creative Center Top Ads by region, objective, period, and keyword. Returns ad cards and pagination (1 credit).
GET | POST https://api.piloterr.com/v2/tiktoktopads/search · 1 credit per request · Full reference
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | — | Full TikTok Top Ads search URL, or a keyword. |
keyword |
string | — | Brand or product keyword. |
region |
string | — | ISO country code (country_code). |
objective |
string | — | Campaign objective id (URL param object). |
period |
string | — | Lookback window: 7, 30, or 180. |
order_by |
string | — | Sort: for_you, reach/impression, ctr/like. |
industry |
string | — | Industry key filter. |
page |
number | — | Page number. |
per_page |
number | — | Page size (max 20). |
import json
import os
import requests
response = requests.get(
"https://api.piloterr.com/v2/tiktoktopads/search",
headers={"x-api-key": os.environ["PILOTERR_API_KEY"]},
params={
"query": "https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en?period=30®ion=AR",
},
timeout=120,
)
response.raise_for_status()
data = response.json()
print(json.dumps(data, indent=2, ensure_ascii=False)[:2000])type TiktokTopAdsSearch = {
results?: {
ctr?: number;
url?: string;
cost?: number;
ad_id?: string;
format?: string;
headline?: string;
image_url?: string;
objective?: string;
video_url?: string;
like_count?: number;
industry_key?: string;
advertiser_name?: string;
}[];
pagination?: {
next?: string;
page?: number;
cursor?: string;
per_page?: number;
total_pages?: number;
total_results?: number;
};
};
const params = new URLSearchParams({
"query": "https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en?period=30®ion=AR",
});
const response = await fetch(`https://api.piloterr.com/v2/tiktoktopads/search?${params}`, {
headers: { "x-api-key": process.env.PILOTERR_API_KEY! },
});
if (!response.ok) throw new Error(`Piloterr error ${response.status}: ${await response.text()}`);
const data = (await response.json()) as TiktokTopAdsSearch;
console.log(JSON.stringify(data, null, 2).slice(0, 2000));POST variant
POST https://api.piloterr.com/v2/tiktoktopads/search
x-api-key: YOUR_API_KEY
Content-Type: application/json
{"query": "https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en?period=30®ion=AR"}Example response from the API reference, abridged — real values depend on the page you scrape.
{
"results": [
{
"ctr": 0.97,
"url": "https://ads.tiktok.com/business/creativecenter/topads/7683821191329005569/pc/en?period=30",
"cost": 0,
"ad_id": "7683821191329005569",
"format": "video",
"headline": "DESCUBRE",
"image_url": "https://p16.tiktokcdn.com/cover.jpg",
"objective": "campaign_objective_lead_generation",
"video_url": "https://v16.tiktokcdn.com/video.mp4",
"like_count": 4120,
"industry_key": "label_10104000000",
"advertiser_name": "Example Brand"
}
],
"pagination": {
"next": "https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en?period=30®ion=AR&page=2",
"page": 1,
"cursor": "2",
"per_page": 20,
"total_pages": 3,
"total_results": 47
}
}| Field | Type | Description |
|---|---|---|
results[] |
object[] | |
results[].ctr |
number | |
results[].url |
string | |
results[].cost |
integer | |
results[].ad_id |
string | |
results[].format |
string | |
results[].headline |
string | |
results[].image_url |
string | |
results[].objective |
string | |
results[].video_url |
string | |
results[].like_count |
integer | |
results[].industry_key |
string | |
results[].advertiser_name |
string | |
pagination |
object | |
pagination.next |
string | |
pagination.page |
integer | |
pagination.cursor |
string | |
pagination.per_page |
integer | |
pagination.total_pages |
integer | |
pagination.total_results |
integer |
Ready-to-run examples live in the examples/ folder. Each one reads your key from the PILOTERR_API_KEY environment variable.
| Language | Ad | Search |
|---|---|---|
| cURL (Bash) | ad |
search |
| PHP | ad |
search |
| C# | ad |
search |
| Go | ad |
search |
| Java | ad |
search |
| Ruby | ad |
search |
| Node.js | ad |
search |
- Brand monitoring — Follow public mentions and engagement around your brand.
- Social listening — Analyse public conversations and trends.
- Influencer research — Qualify public creator profiles and audience metrics.
- Ad intelligence — Study competitors' public ads and creatives.
- Content analytics — Benchmark formats and engagement over time.
- No infrastructure — no proxies, headless browsers or CAPTCHA solving to run yourself.
- Structured JSON — stable, documented fields instead of brittle HTML selectors.
- Pay per request — transparent credit cost per endpoint, failed requests are retried for you.
- One API key, hundreds of sources — TikTok Top Ads plus many other e-commerce, search and company data endpoints in the Piloterr library.
- Any language — plain HTTPS + JSON, with examples for Python, TypeScript, cURL, PHP, C#, Go, Java, Ruby and Node.js.
Collecting publicly available data is generally allowed in many jurisdictions, but rules depend on your country, the data you collect and how you use it. Avoid personal data unless you have a lawful basis, respect the website's terms where they apply, and get legal advice for your specific use case. This is not legal advice.
No. Piloterr handles rendering, proxy rotation and retries on its side. You only send an HTTPS request with your x-api-key header and receive JSON.
Credits per call: /v2/tiktoktopads/ad 1, /v2/tiktoktopads/search 1. See the Piloterr website for plans.
Each endpoint returns structured JSON: TikTok Top Ads Ad — ctr, url, cost, ad_id, format, source; TikTok Top Ads Search — results[], results[].ctr, results[].url, results[].cost, results[].ad_id, results[].format.
Use the page parameter and keep requesting while the response indicates more results.
Yes, use region — see the parameter tables above for accepted values.
Any language that can make an HTTP request. This README shows Python and TypeScript; the examples/ folder contains cURL, PHP, C#, Go, Java, Ruby and Node.js.
Use Piloterr from your own language with a typed client:
| SDK | Package | Install |
|---|---|---|
| Node.js | @piloterr/sdk |
npm install @piloterr/sdk |
| Python | piloterr |
pip install piloterr |
| Go | piloterr-go |
go get github.com/piloterr/piloterr-go |
| .NET | Piloterr |
dotnet add package Piloterr |
| Ruby | piloterr |
gem install piloterr |
| PHP | piloterr/sdk |
composer require piloterr/sdk |
| Java | piloterr-java |
build from source, see its README |
| CLI | @piloterr/cli |
npm install -g @piloterr/cli |
| MCP server | @piloterr/mcp |
npx -y @piloterr/mcp |
- Instagram Scraper API
- Kick Scraper API
- Patreon Scraper API
- Pinterest Scraper API
- Weibo Scraper API
- X (Twitter) Scraper API
- All Piloterr scrapers on GitHub
- 💬 Join the Piloterr Discord to ask questions and share what you build.
- 📚 Browse the API reference (OpenAPI) and the Piloterr library.
- 🔑 Get your API key.
Built by Piloterr — web scraping APIs for e-commerce, search, real estate and more, one API key.
TikTok Top Ads is a trademark of its respective owner. This repository is not affiliated with or endorsed by TikTok Top Ads. Examples are released under the MIT license.
