Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

TikTok Ad Library Search

Dokumentacja API
https://api.sandbase.ai/v1/api/tiktok/ad-library-search

Search TikTok's public Ads Library by keyword or advertiser (advertiser, title, audience band, run dates, library link, and video).

Cena
Od $0.0008USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
0 wymaganych · 4 opcjonalnych

Playground

Wejście
Keyword to search ad titles and content (e.g. spotify). Provide query or advertiserName, never both.
Opaque cursor from a previous response's nextCursor. Omit it for the first page.
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-EU code such as US is not served.
Advertiser name to list ads for (e.g. Spotify). Provide advertiserName or query, never both.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

TikTok Ad Library Search API

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.

Use cases

  • Track which ads a brand currently runs on TikTok in a given EU or EEA region.
  • Compare ad titles and audience bands for competing advertisers.
  • Build a timeline of when a campaign started and last ran from its first and last shown dates.
  • Collect library links and video links to review ad creatives.

Request

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.

Parameters

NameTypeRequiredDescription
advertiserNamestringNoAdvertiser name to list ads for (e.g. Spotify). Provide advertiserName or query, never both.
cursorstringNoOpaque cursor from a previous response's nextCursor. Omit it for the first page.
querystringNoKeyword to search ad titles and content (e.g. spotify). Provide query or advertiserName, never both.
regionstringNoTwo-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-

Example response

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
}

Response fields

FieldMeaning
data.ads[].adIdID of the ad. Pass it to an ad detail API to get more about one ad.
data.ads[].adTitleTitle text of the ad.
data.ads[].brandNameName of the advertiser that ran the ad, such as SPOTIFY LIMITED.
data.ads[].estimatedAudienceAudience size as a range string, such as 100K-200K or 1M-10M.
data.ads[].firstShownUtc / data.ads[].lastShownUtcUnix timestamps in seconds for the first and last day the ad was shown.
data.ads[].urlLink to the ad's detail page in TikTok's Ads Library.
data.ads[].videoUrl / data.ads[].coverUrlLink to the ad video and link to its cover image.
data.totalTotal count of matching ads reported for the search.
data.hasMore / data.nextCursorhasMore tells you if another page exists. nextCursor is the value to send as cursor for the next page.

Notes

  • Use 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.
  • To page through results, send the nextCursor value from the last response as cursor. Stop when hasMore is false.
  • Use TikTok Ad Library Ad to look up a single ad from its adId.

Pricing

Billed at the actual cost of each call, about $0.0008 for the request above. Failed calls are not charged.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
TikTokOd $0.0008 za wywołanieJSON
TikTokOd $0.0012 za wywołanieJSON
TikTokOd $0.0008 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON

Przewodniki:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API TikTok Ad Library Search?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/tiktok/ad-library-search z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API TikTok Ad Library Search?

Od $0.0008 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API TikTok Ad Library Search?

Nie są wymagane żadne parametry. Opcjonalne: query (string), cursor (string), region (string) i advertiserName (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API TikTok Ad Library Search?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego TikTok lub klucza API?

Nie. TikTok Ad Library Search działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API TikTok.