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).
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
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.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
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.
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
TikTok Ad Library SearchCette API TikTok | À partir de $0.0008 par appel | JSON |
TikTok | À partir de $0.0012 par appel | JSON |
TikTok | À partir de $0.0008 par appel | JSON |
TikTok | $0.001 par appel | JSON |
TikTok | $0.001 par appel | JSON |
TikTok | $0.001 par appel | JSON |
Guides :TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/tiktok/ad-library-search avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
À partir de $0.0008 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Aucun paramètre n’est requis. Facultatif : query (string), cursor (string), region (string) et advertiserName (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. TikTok Ad Library Search fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API TikTok séparément.