querystring
Keyword to search ad titles and content (e.g. spotify). Provide query or advertiserName, never both.
https://api.sandbase.ai/v1/api/tiktok/ad-library-searchSearch TikTok's public Ads Library by keyword or advertiser (advertiser, title, audience band, run dates, library link, and video).
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
This API searches TikTok's public Ads Library and returns a page of matching ads. Each ad includes the advertiser name, ad title, an audience band, run dates, a library link and a video link. Send either a query keyword or an advertiserName, not both.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/ad-library-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "spotify"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
advertiserName | string | No | Advertiser name to list ads for (e.g. Spotify). Provide advertiserName or query, never both. |
cursor | string | No | Opaque cursor from a previous response's nextCursor. Omit it for the first page. |
query | string | No | Keyword to search ad titles and content (e.g. spotify). Provide query or advertiserName, never both. |
region | string | No | Two-letter region code for TikTok's Commercial Content Library, such as DE, FR, GB or IT. Each region holds a different set of ads. Omit it to take the library's own default region, DE. Coverage is the EU and EEA; a non- |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"ads": [
{
"adId": "1823872659482674",
"adTitle": "Pitch to Spotify Playlists",
"brandName": "SPOTIFY USA INC",
"coverUrl": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0051c001-sg/oUeIxrmUDGrsUgpzfm…",
"estimatedAudience": "100K-200K",
"firstShownUtc": 1739404800,
"format": "2",
"lastShownUtc": 1793577600,
"status": "1",
"url": "https://library.tiktok.com/ads/detail/?ad_id=1823872659482674",
"videoUrl": "https://library.tiktok.com/api/v1/cdn/1793691827/video/aHR0cHM6Ly92NzcudGlrdG9rY…"
}
],
"hasMore": false,
"nextCursor": "cur_uNU1NXRd1LfZ6gD-_NvMGA",
"total": 5000
},
"found": true
}
| Field | Meaning |
|---|---|
data.ads[].adId | ID of the ad. Pass it to an ad detail API to get more about one ad. |
data.ads[].adTitle | Title text of the ad. |
data.ads[].brandName | Name of the advertiser that ran the ad, such as SPOTIFY LIMITED. |
data.ads[].estimatedAudience | Audience size as a range string, such as 100K-200K or 1M-10M. |
data.ads[].firstShownUtc / data.ads[].lastShownUtc | Unix timestamps in seconds for the first and last day the ad was shown. |
data.ads[].url | Link to the ad's detail page in TikTok's Ads Library. |
data.ads[].videoUrl / data.ads[].coverUrl | Link to the ad video and link to its cover image. |
data.total | Total count of matching ads reported for the search. |
data.hasMore / data.nextCursor | hasMore tells you if another page exists. nextCursor is the value to send as cursor for the next page. |
region with a two-letter EU or EEA code such as DE, FR, GB or IT. Each region holds a different set of ads, and DE is the default.nextCursor value from the last response as cursor. Stop when hasMore is false.adId.Billed at the actual cost of each call, about $0.0008 for the request above. Failed calls are not charged.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/ad-library-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "spotify"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
querystringKeyword to search ad titles and content (e.g. spotify). Provide query or advertiserName, never both.
cursorstringOpaque cursor from a previous response's nextCursor. Omit it for the first page.
regionstringTwo-letter region code for TikTok's Commercial Content Library, such as DE, FR, GB or IT. Each region holds a different set of ads. Omit it to take the library's own default region, DE. Coverage is the EU and EEA; a non-EU code such as US is not served.
advertiserNamestringAdvertiser name to list ads for (e.g. Spotify). Provide advertiserName or query, never both.
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
TikTok Ad Library SearchQuesta API TikTok | Da $0.0008 per chiamata | JSON |
TikTok | Da $0.0012 per chiamata | JSON |
TikTok | Da $0.0008 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
Guide:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/tiktok/ad-library-search con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
A partire da $0.0008 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Nessun parametro richiesto. Facoltativi: query (string), cursor (string), region (string) e advertiserName (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. TikTok Ad Library Search funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API TikTok.