Docs · Reference
TikTok Ad Library
GET /v1/social/tiktok/ads2 credits / pagecache 360 minSearch TikTok's public Commercial Content Library (library.tiktok.com) by advertiser name, keyword or advertiser id, for one country or all covered countries (EU/EEA, UK, Switzerland, Turkey, Brazil) and a date range: ad id, advertiser, first and last shown dates, estimated unique-user reach range, status and the creative video, cover and image URLs, 12 ads per page. Pass ad_id to get one ad with its advertiser details and targeting summary (age, gender, locations, interests, audiences). TikTok shows server IPs a "system busy" check, which we never try to bypass, so this engine runs through residential proxies. Blocks, failures and pages with no ads are free.
Query parameters
qstring | Advertiser name or keyword, as typed on library.tiktok.com. Wrap it in double quotes for an exact phrase. Default: null |
advertiser_idstring | TikTok advertiser business id, to list that advertiser's ads (instead of q). Default: null |
ad_idstring | One ad id: returns that ad with advertiser details and its targeting summary (instead of a search). Default: null |
countrystring | Where the ads were shown: 'all' or a 2-letter code the library covers (EU/EEA countries, GB, CH, TR, BR). Default: "all" |
start_datestring | First day shown, YYYY-MM-DD. Default: 30 days ago. Default: null |
end_datestring | Last day shown, YYYY-MM-DD. Default: today. Default: null |
ad_statusstring | Filter by ad status. Default: "all" Allowed: all, active, inactive |
media_typestring | Filter by creative type. Default: "all" Allowed: all, video, image, text |
sortstring | Result order (reach = estimated unique users). Default: "last_shown_desc" Allowed: last_shown_desc, last_shown_asc, published_desc, published_asc, reach_desc, reach_asc |
pageinteger | Results page, 12 ads per page. Default: 1 |
search_idstring | search_id returned with page 1; pass it with page 2+ to continue the same result set. Default: null |
max_ageinteger | Accept a cached answer up to this many seconds old, billed at 50%. |
Response data fields
Example
curl "https://api.gridlode.com/v1/social/tiktok/ads?q=nike&country=all" \
-H "Authorization: Bearer $GRIDLODE_KEY"Try it without code on the TikTok Ad Library API page.