querystringwymagane
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).
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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": ""
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
querystringwymaganeSearch query (advertiser name or keyword)
limitintegerNumber of results per page (max 50)
Domyślnie: 12
offsetintegerPagination offset (0-based). Requires search_id from a previous response for values > 0.
Domyślnie: 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.
Domyślnie: "all"
Możliwe wartości: all, FR, DE, GB
sort_bystringSort order: 'last_shown_date,desc' or 'last_shown_date,asc'
Domyślnie: "last_shown_date,desc"
Możliwe wartości: 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.
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
TikTok Ads Library | $0.06 za wywołanie | JSON |
TikTok Ads Library | $0.03 za wywołanie | JSON |
TikTok Ads Library | $0.03 za wywołanie | JSON |
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/tiktok-ads-library/search-ads 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.
$0.06 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: query (string). Opcjonalne: limit (integer), offset (integer), region (jedna z opcji: all, FR, DE, GB), sort_by (jedna z opcji: last_shown_date,desc, last_shown_date,asc), end_time (integer) i search_id (string) i jeszcze 1. Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).
Nie. TikTok Ads Library Search Ads 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 Ads Library.