/v1/tiktok/ad-library/searchSearch ads
1 request
Searches TikTok ads, either broadly with query or for one advertiser with advertiser_name; send exactly one of them. An advertiser search first matches the name against TikTok's advertiser suggestions, then queries that advertiser entity and tags each ad with adv_biz_ids. To lock onto the precise advertiser behind a See all ads link, add its adv_biz_ids alongside advertiser_name; TikTok disregards the ID unless the name is also sent. When no advertiser entity matches, the API uses TikTok's plain name search instead. Results cover all regions, are ordered by latest shown date, paginate by cursor, and each ad links to its public TikTok ad page.
Query parameters
querystring | Free-text ad search. Send this or advertiser_name, never both. |
advertiser_namestring | Advertiser to search for, matched to TikTok's advertiser entity with name search as the fallback. Send this or query, never both. |
adv_biz_idsstring | Advertiser business ID taken from a See all ads link, used with advertiser_name to pin one advertiser. Sending it without advertiser_name returns 400. |
cursorstring | Opaque cursor from the previous response. |
curl "https://api.pandorlabs.com/v1/tiktok/ad-library/search" \ -H "Authorization: Bearer $PANDORLABS_KEY"Example response
Response
{
"success": true,
"credits_charged": 1,
"source": "tiktok_public_ads_library",
"advertiser_name": "Gymshark",
"resolved_advertiser_name": "GYMSHARK LTD",
"advertiser_matches": [
{
"name": "GYMSHARK LTD",
"ids": "7078923208527618049"
}
],
"ads": [
{
"id": "1871655924410641",
"url": "https://library.tiktok.com/ads/detail/?ad_id=1871655924410641",
"name": "GYMSHARK LTD",
"adv_biz_ids": "7078923208527618049",
"audit_status": "1",
"type": "2",
"first_shown_date": 1784937600000,
"last_shown_date": 1785024000000,
"videos": [
{
"video_url": "https://library.tiktok.com/api/v1/cdn/...",
"cover_img": "https://p16-common-sign.tiktokcdn.com/..."
}
],
"estimated_audience": "1K-10K",
"spent": "",
"impression": 0,
"show_mode": 1,
"image_urls": [],
"rejection_info": null,
"sor_audit_status": "1"
}
],
"total": 62344,
"has_more": true,
"cursor": "opaque cursor for the next page"
}