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).
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
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.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
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.
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
TikTok Ad Library SearchDiese API TikTok | Ab $0.0008 pro Aufruf | JSON |
TikTok | Ab $0.0012 pro Aufruf | JSON |
TikTok | Ab $0.0008 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
Anleitungen:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/tiktok/ad-library-search mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
Ab $0.0008 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Es sind keine Parameter erforderlich. Optional: query (string), cursor (string), region (string) und advertiserName (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. TikTok Ad Library Search läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für TikTok API beantragen.