querystringobbligatorio
Search query (advertiser name or keyword)
https://api.sandbase.ai/v1/api/tiktok-ads-library/search-adsSearch the TikTok Ad Library for ads matching a query (advertiser name or keyword).
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
Search the TikTok Ad Library for ads matching a query (advertiser name or keyword).
curl -X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "tiktok-ads-library/search-ads", "limit": 12, "query": "nike", "offset": 0, "region": "all", "sort_by": "last_shown_date,desc", "search_id": ""}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search query (advertiser name or keyword) |
end_time | integer | No | End of date range as Unix timestamp (seconds). Defaults to now. |
limit | integer | No | Number of results per page (max 50) |
offset | integer | No | Pagination offset (0-based). Requires search_id from a previous response for values > 0. |
region | string | No | Region/country code filter (e.g. 'FR', 'DE', 'GB') or 'all' for all regions. Use get_supported_regions for the full list of accepted codes. One of: all, FR, DE, GB. |
search_id | string | No | Search ID returned from a previous search_ads call. Required when offset > 0 to paginate through results. |
sort_by | string | No | Sort order: 'last_shown_date,desc' or 'last_shown_date,asc' One of: last_shown_date,desc, last_shown_date,asc. |
start_time | integer | No | Start of date range as Unix timestamp (seconds). Defaults to 1 year ago. |
Flat $0.06 per call. 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-ads-library/search-ads" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 12,
"query": "nike",
"offset": 0,
"region": "all",
"sort_by": "last_shown_date,desc",
"search_id": ""
}'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.
querystringobbligatorioSearch query (advertiser name or keyword)
limitintegerNumber of results per page (max 50)
Predefinito: 12
offsetintegerPagination offset (0-based). Requires search_id from a previous response for values > 0.
Predefinito: 0
regionstringRegion/country code filter (e.g. 'FR', 'DE', 'GB') or 'all' for all regions. Use get_supported_regions for the full list of accepted codes.
Predefinito: "all"
Valori possibili: all, FR, DE, GB
sort_bystringSort order: 'last_shown_date,desc' or 'last_shown_date,asc'
Predefinito: "last_shown_date,desc"
Valori possibili: last_shown_date,desc, last_shown_date,asc
end_timeintegerEnd of date range as Unix timestamp (seconds). Defaults to now.
search_idstringSearch ID returned from a previous search_ads call. Required when offset > 0 to paginate through results.
start_timeintegerStart of date range as Unix timestamp (seconds). Defaults to 1 year ago.
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 Ads Library Search AdsQuesta API TikTok Ads Library | $0.06 per chiamata | JSON |
TikTok Ads Library | $0.03 per chiamata | JSON |
TikTok Ads Library | $0.03 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/tiktok-ads-library/search-ads 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.
$0.06 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: query (string). Facoltativi: limit (integer), offset (integer), region (uno tra all, FR, DE, GB), sort_by (uno tra last_shown_date,desc, last_shown_date,asc), end_time (integer) e search_id (string) e altri 1. La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona).
No. TikTok Ads Library Search Ads 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 Ads Library.