end_datestringจำเป็น
End date YYYYMMDD
https://api.sandbase.ai/v1/api/douyin/index/topic-queryReturns Douyin topic performance metrics matching a search term over a specific date range, including item counts, like counts, and view counts.
[
{
"data": {
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"topic_list": [
{
"datetime": "",
"digg_cnt": "3886643",
"item_cnt": "26313",
"play_read_cnt": "201528869",
"topic_id": "1576073697445901",
"topic_index": "2729228",
"topic_name": "人工智能"
},
{
"datetime": "",
"digg_cnt": "0",
"item_cnt": "0",
"play_read_cnt": "0",
"topic_id": "1761040785381389",
"topic_index": "0",
"topic_name": "人工智能与就业"
},
{
"datetime": "",
"digg_cnt": "108324",
"item_cnt": "1202",
"play_read_cnt": "5712508",
"topic_id": "1607024574053384",
"topic_index": "49588",
"topic_name": "ai人工智能"
},
"… 97 more items in the full response"
]
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Returns Douyin topics that match a search keyword, with item, like, and view counts for a date range. It needs a keyword, a start_date, and an end_date in YYYYMMDD format.
人工智能 has against related topics such as 人工智能机器人.topic_id of a Douyin topic from its name.curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/topic-query" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"end_date": "20260412", "keyword": "人工智能", "start_date": "20260406"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
end_date | string | Yes | End date YYYYMMDD |
keyword | string | Yes | Topic keyword |
start_date | string | Yes | Start date YYYYMMDD |
app_name | string | No | Platform |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"topic_list": [
{
"datetime": "",
"digg_cnt": "3886643",
"item_cnt": "26313",
"play_read_cnt": "201528869",
"topic_id": "1576073697445901",
"topic_index": "2729228",
"topic_name": "人工智能"
}
]
}
| Field | Meaning |
|---|---|
topic_list[] | List of topics whose names match the keyword. Each entry is one topic. |
topic_list[].topic_name | Name of the topic, for example 人工智能. |
topic_list[].topic_id | ID of the topic, returned as a string. |
topic_list[].item_cnt | Number of items (videos) counted for the topic. Returned as a string. |
topic_list[].digg_cnt | Like count for the topic. Returned as a string. |
topic_list[].play_read_cnt | View count for the topic. Returned as a string. |
topic_list[].topic_index | Index value for the topic. It is 0 for topics with no activity. |
topic_list[].datetime | Date field for the entry. It is an empty string in this response. |
BaseResp.StatusCode / BaseResp.StatusMessage | Status of the call. StatusCode is 0 and StatusMessage is empty in this response. |
app_name accepts aweme or toutiao. It defaults to aweme.$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/topic-query" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "人工智能",
"app_name": "aweme",
"end_date": "20260412",
"start_date": "20260406"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
end_datestringจำเป็นEnd date YYYYMMDD
keywordstringจำเป็นTopic keyword
start_datestringจำเป็นStart date YYYYMMDD
app_namestringPlatform
ค่าเริ่มต้น: "aweme"
ค่าที่เป็นไปได้: aweme, toutiao
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"topic_list": [
{
"datetime": "",
"digg_cnt": "3886643",
"item_cnt": "26313",
"play_read_cnt": "201528869",
"topic_id": "1576073697445901",
"topic_index": "2729228",
"topic_name": "人工智能"
},
{
"datetime": "",
"digg_cnt": "0",
"item_cnt": "0",
"play_read_cnt": "0",
"topic_id": "1761040785381389",
"topic_index": "0",
"topic_name": "人工智能与就业"
},
{
"datetime": "",
"digg_cnt": "108324",
"item_cnt": "1202",
"play_read_cnt": "5712508",
"topic_id": "1607024574053384",
"topic_index": "49588",
"topic_name": "ai人工智能"
},
"… 97 more items in the full response"
]
}
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Douyin Topic SearchAPI นี้ 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/topic-query โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: end_date (string), keyword (string) และ start_date (string). ตัวเลือก: app_name (หนึ่งใน aweme, toutiao). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Douyin Topic Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก