TikTok Search Module Safety Configuration
https://api.sandbase.ai/v1/api/tiktok/ads/configure-safetyReturns the safety and availability configuration switches for TikTok Creative Center search modules. It indicates whether searches for top ads, keywords, hashtags, sounds, and creators are currently available.
- Cena
- $0.001USD / wywołanie
- Metoda
- POST
- Odpowiedź
- JSON
- Parametry
- 0 wymaganych · 0 opcjonalnych
Playground
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
README API
TikTok Search Module Safety Configuration API
Returns a set of configuration switches for the TikTok Creative Center search modules. It needs no input. The response has one flag each for top ads, keyword, hashtag, sound, and creator search.
Use cases
- Check the switches before you call a Creative Center search API, so your job can skip a module that is turned off.
- Poll the response to log when a search module changes state.
- Show a status panel for top ads, keyword, hashtag, sound, and creator search in an internal dashboard.
Request
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/ads/configure-safety" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"cc_banner_key": "",
"creator_search": 0,
"hashtag_search": 0,
"keyword_search": 0,
"sound_search": 0,
"top_ads_search": 0
},
"msg": "OK"
}
Response fields
| Field | Meaning |
|---|---|
code | Status code of the call. 0 appears together with msg set to OK in the sample response. |
data.top_ads_search | Switch for the top ads search module. The sample value is 0. |
data.keyword_search | Switch for the keyword search module. The sample value is 0. |
data.hashtag_search | Switch for the hashtag search module. The sample value is 0. |
data.sound_search | Switch for the sound search module. The sample value is 0. |
data.creator_search | Switch for the creator search module. The sample value is 0. |
data.cc_banner_key | Banner key string for the Creative Center. It is an empty string in the sample response. |
Notes
- Send an empty JSON body
{}. The API has no request parameters. - All five search switches are
0in the sample response. The response does not state what0or1means, so compare values over time rather than assuming a meaning. - To search ads after checking the switches, call TikTok Creative Center Ad Search.
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Zacznij tworzyć
Wyślij pierwsze żądanie
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/ads/configure-safety" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Uwierzytelnianie
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.
3. Parametry
Nie opublikowano schematu parametrów dla tego API.
4. Odpowiedź
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
Powiązane APIs
| API | Cena | Odpowiedź |
|---|---|---|
TikTok | $0.001 za wywołanie | JSON |
TikTok | $0.001 za wywołanie | JSON |
TikTok | $0.001 za wywołanie | JSON |
TikTok | $0.001 za wywołanie | JSON |
TikTok | $0.001 za wywołanie | JSON |
TikTok | $0.001 za wywołanie | JSON |
Przewodniki:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Pytania
FAQ
Jak używać API TikTok Search Module Safety Configuration?
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/tiktok/ads/configure-safety 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 Search Module Safety Configuration?
$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Jakie parametry przyjmuje API TikTok Search Module Safety Configuration?
TikTok Search Module Safety Configuration nie przyjmuje żadnych parametrów wejściowych; wyślij pustą treść JSON.
Co zwraca API TikTok Search Module Safety Configuration?
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 Search Module Safety Configuration 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.
