Search TikTok's public Ads Library (Commercial Content Library) by keyword or advertiser: advertiser, format, run dates, audience band, library link and video.
3 credits/ call
Never more than 13 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/tiktok.ad_library_search" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"gymshark"}'{
"output": {
"found": true,
"data": {
"total": "<integer | null>",
"hasMore": "<boolean | null>",
"nextCursor": "<string | null>",
"ads": [
{
"adTitle": "<string | null>",
"brandName": "<string | null>",
"format": "<string | null>",
"status": "<string | null>", …
}
]
}
},
"credits": 3
}Input and output
4 fields
gymshark.4 fields
Good to know
EU DSA transparency data. Library terms limit bulk extraction.
The same key and credits work for every API.