sec_uidstringจำเป็น
User sec_id
https://api.sandbase.ai/v1/api/douyin/billboard/hot-account-fans-interest-topic-listReturns the top ten topics that an account's followers were interested in over the last three days based on a specified user ID.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns up to ten topics (hashtags) that followers of a Douyin account were interested in over the last three days. It needs one input, the account's sec_uid.
sec_uid.trends values.curl -X POST "https://api.sandbase.ai/v1/api/douyin/billboard/hot-account-fans-interest-topic-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sec_uid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
sec_uid | string | Yes | User sec_id |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": [
{
"challenge_base_info": {
"avg_play_cnt": 126318,
"challenge_id": "1609320153042948",
"challenge_name": "theshy",
"challenge_type": 1,
"cover_url": "https://p26-sign.douyinpic.com/aweme/200x200/image-cut-tos/a612fcb74474ed514f978…",
"create_time": 1534767297,
"fancy_qrcode": "https://p11-sign.douyinpic.com/aweme-qrcode/SEWOcX7703835840601917194~c5_200x200…",
"play_cnt": 60937251819
},
"challenge_data": {
"challenge_id": 1609320153042948,
"comment_cnt": 97727,
"hot_score": 1169147,
"like_cnt": 897683,
"plav_avg": 3538.751681000782,
"play_cnt": 67890951,
"publish_cnt": 19185
},
"trends": [
{
"datetime": 1785686400,
"value": 878729
}
]
}
],
"extra": {
"now": 1793691105000
},
"message": ""
}
| Field | Meaning |
|---|---|
data[].challenge_base_info.challenge_name | Name of the topic or hashtag. |
data[].challenge_base_info.challenge_id | ID of the topic, returned as a string. |
data[].challenge_base_info.play_cnt / data[].challenge_base_info.avg_play_cnt | Play count figures for the topic. play_cnt is the larger total and avg_play_cnt is a per-item average. |
data[].challenge_base_info.challenge_type | Numeric type code of the topic. Values seen are 0, 1 and 2. The response does not explain what each code means. |
data[].challenge_base_info.create_time | Unix timestamp in seconds for when the topic was created. |
data[].challenge_base_info.cover_url / data[].challenge_base_info.fancy_qrcode | Links to the topic cover image and a QR code image. |
data[].challenge_data.hot_score | Heat score for the topic. It is 0 when no recent data is returned for that topic. |
data[].challenge_data.publish_cnt / play_cnt / like_cnt / comment_cnt | Recent activity counts for the topic: videos published, plays, likes and comments. All are 0 when no recent data is returned. |
data[].trends[].datetime / data[].trends[].value | One point per day in the topic trend. datetime is a Unix timestamp in seconds. The list is empty for some topics. |
sec_uid as a string. Use the same account ID format shown in the example, which starts with MS4w.data list has no pagination parameters. The request takes only sec_uid.0 in every challenge_data field and an empty trends list. Use challenge_base_info for those topics.$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/billboard/hot-account-fans-interest-topic-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sec_uid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
sec_uidstringจำเป็นUser sec_id
บันทึกตัวอย่างการตอบกลับสำหรับ 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/billboard/hot-account-fans-interest-topic-list โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: sec_uid (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Douyin Account Fan Interest Topics ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก