sec_uidstringbắt buộc
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.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp 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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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_"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
sec_uidstringbắt buộcUser sec_id
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/billboard/hot-account-fans-interest-topic-list 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.
$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ý.
Bắt buộc: sec_uid (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
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.
Không. Douyin Account Fan Interest Topics 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 Douyin.