end_datestringจำเป็น
End date YYYYMMDD. **Must be a Sunday only when period=7**; any day for period=1/3
https://api.sandbase.ai/v1/api/douyin/index/content-creative-keyword-itemsReturns videos associated with a specific trending keyword in a category. Filters include category ID, target keyword, analysis period, and end date.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns videos linked to a trending keyword in one Douyin category. You send a category ID in tag_id, a keyword, and an end_date. You can also set period to 1, 3 or 7 days.
人工智能 in a single category.curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/content-creative-keyword-items" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"end_date": "1735660799", "keyword": "人工智能", "tag_id": "2027"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
end_date | string | Yes | End date YYYYMMDD. Must be a Sunday only when period=7; any day for period=1/3 |
keyword | string | Yes | Hot keyword (typically from fetch_content_creative_keywords) |
tag_id | string | Yes | Category ID (same as category_id in fetch_item_query) |
period | string | No | "1" / "3" / "7" days |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": -1,
"StatusMessage": "json data error,key:ca,2027,人工智能,1735660799,keyword_items_v2,aweme,7"
}
}
| Field | Meaning |
|---|---|
BaseResp | Status wrapper for the call. It is the only top-level object in the sample response. |
BaseResp.StatusCode | Numeric status of the lookup. The sample request returned -1, which marks a failed lookup. |
BaseResp.StatusMessage | Text describing the status. In the sample it reads json data error and then lists the values used for the lookup: 2027, 人工智能, 1735660799 and 7. |
end_date 1735660799 and returned StatusCode -1. The schema asks for end_date in YYYYMMDD format, so send a date like 20241229.period is 7, end_date must be a Sunday. For 1 or 3, any day works.keyword from Douyin Content Creative Keywords. Use the same category ID as tag_id.period accepts only the strings 1, 3 and 7.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/content-creative-keyword-items" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tag_id": "2027",
"keyword": "人工智能",
"end_date": "1735660799"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
end_datestringจำเป็นEnd date YYYYMMDD. **Must be a Sunday only when period=7**; any day for period=1/3
keywordstringจำเป็นHot keyword (typically from fetch_content_creative_keywords)
tag_idstringจำเป็นCategory ID (same as category_id in fetch_item_query)
periodstring"1" / "3" / "7" days
ค่าที่เป็นไปได้: 1, 3, 7
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Douyin | $0.001 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/douyin/index/content-creative-keyword-items โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: end_date (string), keyword (string) และ tag_id (string). ตัวเลือก: period (หนึ่งใน 1, 3, 7). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Douyin Creative Keyword Related Videos ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก