querystringจำเป็น
Seed keyword to expand (e.g. ashwagandha gummies).
https://api.sandbase.ai/v1/api/tiktok-shop/search-suggestionsGet TikTok Shop search autocomplete terms for a keyword: the long-tail queries shoppers actually type, for keyword and demand research.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
This API returns TikTok Shop search autocomplete suggestions for a seed keyword. It needs a query and can also take a country code and a language tag.
ashwagandha gummies into the long-tail searches shoppers type.country.curl -X POST "https://api.sandbase.ai/v1/api/tiktok-shop/search-suggestions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "ashwagandha gummies", "country": "US"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Seed keyword to expand (e.g. ashwagandha gummies). |
country | string | No | Two-letter country code of the TikTok Shop market (e.g. US). |
language | string | No | Language tag for the suggestions (e.g. en-US). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"suggestions": [
"ashwagandha gummies"
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.suggestions[] | Autocomplete terms for the seed keyword, as plain strings. Each string is a search phrase that can include the seed keyword plus extra words, such as ashwagandha gummies for men. |
data.suggestions[0] | In this response, the first suggestion repeats the seed keyword exactly. |
found | Boolean flag. It is true when the lookup returned data. |
outputs[0].data. A lookup that finds nothing still succeeds and returns found: false.country defaults to US and language defaults to en-US.Billed at the actual cost of each call, about $0.00095 for the request above. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/tiktok-shop/search-suggestions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "ashwagandha gummies",
"country": "US",
"language": "en-US"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
querystringจำเป็นSeed keyword to expand (e.g. ashwagandha gummies).
countrystringTwo-letter country code of the TikTok Shop market (e.g. US).
ค่าเริ่มต้น: "US"
languagestringLanguage tag for the suggestions (e.g. en-US).
ค่าเริ่มต้น: "en-US"
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
TikTok Shop | เริ่มต้นที่ $0.00095 ต่อครั้ง | JSON |
TikTok Shop | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
TikTok Shop | เริ่มต้นที่ $0.0055 ต่อครั้ง | JSON |
TikTok Shop | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
TikTok Shop | เริ่มต้นที่ $0.00095 ต่อครั้ง | JSON |
TikTok Shop | เริ่มต้นที่ $0.00095 ต่อครั้ง | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/tiktok-shop/search-suggestions โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.00095 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: query (string). ตัวเลือก: country (string) และ language (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น TikTok Shop Search Suggestions ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง TikTok Shop API แยกต่างหาก