Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

TikTok Search Module Safety Configuration

Tài liệu API
https://api.sandbase.ai/v1/api/tiktok/ads/configure-safety

Returns 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.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
0 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
Không có schema đầu vào
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

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

FieldMeaning
codeStatus code of the call. 0 appears together with msg set to OK in the sample response.
data.top_ads_searchSwitch for the top ads search module. The sample value is 0.
data.keyword_searchSwitch for the keyword search module. The sample value is 0.
data.hashtag_searchSwitch for the hashtag search module. The sample value is 0.
data.sound_searchSwitch for the sound search module. The sample value is 0.
data.creator_searchSwitch for the creator search module. The sample value is 0.
data.cc_banner_keyBanner 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 0 in the sample response. The response does not state what 0 or 1 means, 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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON

Hướng dẫn:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API TikTok Search Module Safety Configuration?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/tiktok/ads/configure-safety với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API TikTok Search Module Safety Configuration có giá bao nhiêu?

$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API TikTok Search Module Safety Configuration chấp nhận những tham số nào?

TikTok Search Module Safety Configuration không nhận tham số đầu vào; hãy gửi một phần thân JSON rỗng.

API TikTok Search Module Safety Configuration trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của TikTok không?

Không. TikTok Search Module Safety Configuration chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của TikTok.