end_datestringbắt buộc
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-topicReturns trending creative topics for a specific Douyin category. Filter results by category ID, evaluation period, ranking metric, and end date.
Đầ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 a list of trending creative topics (hashtags) for one Douyin content category. Each topic comes with engagement totals and a few sample videos. You send a tag_id and an end_date.
index, digg_cnt and item_cnt to pick tags for new videos.rank_type to rise to find topics that are growing fastest.curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/content-creative-topic" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"end_date": "20260405", "tag_id": "601"}'
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 |
tag_id | string | Yes | Category ID (same as category_id in fetch_item_query) |
period | string | No | "1" / "3" / "7" |
rank_type | string | No | "index" or "rise" |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"topic_list": [
{
"digg_cnt": "171445435",
"id": "1635669004810253",
"index": "201575639",
"item_cnt": "19739286",
"item_list": [
{
"img": "https://p9-byteindex-sign.byteimg.com/tos-cn-p-0015c000-ce/oAfEB3pEBb9bEEkAFmALx…",
"item_id": "7621900494017844389",
"title": "仅用了0秒就接受了自己的新身份#vlog十亿流量扶持计划 #内容太过真实 #vlog日常 #搞笑 #学生时代",
"url": "https://www.douyin.com/share/video/7621900494017844389"
}
],
"name": "搞笑",
"vv": "9700000928"
}
]
}
| Field | Meaning |
|---|---|
topic_list[].name | Topic name, shown as a hashtag-style label such as 搞笑. |
topic_list[].id | ID of the topic. |
topic_list[].index | Index score used to rank the topic. Higher values mean a higher rank under rank_type index. |
topic_list[].digg_cnt | Total like count for videos under the topic. |
topic_list[].item_cnt | Number of videos under the topic. |
topic_list[].vv | View count for the topic. |
topic_list[].item_list[].title | Caption of a sample video, including its hashtags. |
topic_list[].item_list[].item_id | ID of the sample video. |
topic_list[].item_list[].url | Share link to the sample video on douyin.com. |
topic_list[].item_list[].img | Cover image URL of the sample video. The link is signed and carries an expiry in its query string. |
digg_cnt, index and vv come back as strings.end_date uses the format YYYYMMDD. It must be a Sunday when period is 7. Any day works for 1 or 3.tag_id is the same value as category_id in the video search APIs. Douyin Index Video Search is a related call.$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/index/content-creative-topic" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"period": "7",
"tag_id": "601",
"end_date": "20260405",
"rank_type": "index"
}'Đặ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.
end_datestringbắt buộcEnd date YYYYMMDD. **Must be a Sunday only when period=7**; any day for period=1/3
tag_idstringbắt buộcCategory ID (same as category_id in fetch_item_query)
periodstring"1" / "3" / "7"
Mặc định: "7"
Giá trị có thể dùng: 1, 3, 7
rank_typestring"index" or "rise"
Mặc định: "index"
Giá trị có thể dùng: index, rise
Đâ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/index/content-creative-topic 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: end_date (string) và tag_id (string). Tùy chọn: period (một trong số 1, 3, 7) và rank_type (một trong số index, rise). 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 Content Creative 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.