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.
- 料金
- $0.001USD / 回
- メソッド
- POST
- レスポンス
- JSON
- パラメータ
- 必須 0 件 · 任意 0 件
プレイグラウンド
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
API README
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.
開発を始める
最初のリクエストを送信
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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. 認証
SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
3. パラメータ
このAPIのパラメータスキーマは公開されていません。
4. レスポンス
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
関連 APIs
| API | 価格 | レスポンス |
|---|---|---|
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
ガイド:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
質問
FAQ
TikTok Search Module Safety Configuration API はどのように使いますか?
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tiktok/ads/configure-safety に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
TikTok Search Module Safety Configuration API の料金はいくらですか?
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
TikTok Search Module Safety Configuration API はどのパラメータを受け付けますか?
TikTok Search Module Safety Configuration は入力パラメータを取りません。空の JSON ボディを送信してください。
TikTok Search Module Safety Configuration API は何を返しますか?
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
TikTok の開発者アカウントまたは API key は必要ですか?
いいえ。TikTok Search Module Safety Configuration は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。
