category_codestring
Hot list category code, get from hot list category, empty for all
Mặc định: ""
https://api.sandbase.ai/v1/api/douyin/billboard/hot-calendar-listRetrieves the Douyin trending activity calendar with event details, schedules, and categories. Supports filtering by date range, city code, and category code.
[
{
"data": {
"code": 0,
"data": {
"event_list": [
{
"category_name": "美食",
"city_name": "",
"cover_url": "http://p6-dyhot.byteimg.com/tos-cn-i-jid1fmi4d3/b2a4e31229c85f2d04b83278a2ce2082.png",
"end_date": 1735660799,
"event_ids": null,
"event_status": -1,
"hot_title": "冬日与干净饮食的适配度",
"id": 1549,
"is_favorite": 0,
"level_code": 2,
"parent_id": 1462,
"publish_cnt": 0,
"related_topics": "",
"sentence": "",
"start_date": 1730304000,
"tags": [],
"timeline": null
},
{
"category_name": "美食",
"city_name": "",
"cover_url": "http://p6-dyhot.byteimg.com/tos-cn-i-jid1fmi4d3/b2a4e31229c85f2d04b83278a2ce2082.png",
"end_date": 1735574399,
"event_ids": null,
"event_status": -1,
"hot_title": "无辣不欢的美食小城",
"id": 1557,
"is_favorite": 0,
"level_code": 2,
"parent_id": 1029,
"publish_cnt": 0,
"related_topics": "",
"sentence": "",
"start_date": 1729785600,
"tags": [],
"timeline": null
},
{
"category_name": "美食",
"city_name": "",
"cover_url": "http://p6-dyhot.byteimg.com/tos-cn-i-jid1fmi4d3/b2a4e31229c85f2d04b83278a2ce2082.png",
"end_date": 1735574399,
"event_ids": null,
"event_status": -1,
"hot_title": "嘎嘎好吃的东北小城",
"id": 1590,
"is_favorite": 0,
"level_code": 2,
"parent_id": 0,
"publish_cnt": 0,
"related_topics": "",
"sentence": "",
"start_date": 1730044800,
"tags": [],
"timeline": null
},
"… 32 more items in the full response"
],
"topic_list": [
{
"category_name": "",
"city_name": "",
"cover_url": "",
"end_date": 1738339199,
"event_ids": [
1690
],
"event_status": -1,
"hot_title": "dou有民歌计划",
"id": 1689,
"is_favorite": 0,
"level_code": 1,
"parent_id": 0,
"publish_cnt": 0,
"related_topics": "",
"sentence": "",
"start_date": 1732636800,
"tags": [],
"timeline": null
},
{
"category_name": "",
"city_name": "",
"cover_url": "",
"end_date": 1738684799,
"event_ids": [
1718
],
"event_status": -1,
"hot_title": "抖音生活新年季",
"id": 1717,
"is_favorite": 0,
"level_code": 1,
"parent_id": 0,
"publish_cnt": 0,
"related_topics": "",
"sentence": "",
"start_date": 1734624000,
"tags": [],
"timeline": null
},
{
"category_name": "",
"city_name": "",
"cover_url": "",
"end_date": 1735660799,
"event_ids": [
1549
],
"event_status": -1,
"hot_title": "干净饮食",
"id": 1462,
"is_favorite": 0,
"level_code": 1,
"parent_id": 0,
"publish_cnt": 0,
"related_topics": "",
"sentence": "",
"start_date": 1724774400,
"tags": [],
"timeline": null
}
]
},
"extra": {
"now": 1791290413000
},
"message": ""
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns the Douyin trending activity calendar as two lists: scheduled events and the larger topics they belong to. All inputs are optional. You can filter by start_date, end_date, city_code and category_code.
start_date and end_date.curl -X POST "https://api.sandbase.ai/v1/api/douyin/billboard/hot-calendar-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
category_code | string | No | Hot list category code, get from hot list category, empty for all |
city_code | string | No | City code, get from city list, empty for all |
end_date | integer | No | Snapshot end time format 10 digit timestamp |
start_date | integer | No | Snapshot start time format 10 digit timestamp |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"event_list": [
{
"category_name": "美食",
"city_name": "",
"cover_url": "http://p6-dyhot.byteimg.com/tos-cn-i-jid1fmi4d3/b2a4e31229c85f2d04b83278a2ce2082…",
"end_date": 1735660799,
"event_ids": null,
"event_status": -1,
"hot_title": "冬日与干净饮食的适配度",
"id": 1549,
"is_favorite": 0,
"level_code": 2,
"parent_id": 1462,
"publish_cnt": 0
}
],
"topic_list": [
{
"category_name": "",
"city_name": "",
"cover_url": "",
"end_date": 1738684799,
"event_ids": [
1718
],
"event_status": -1,
"hot_title": "抖音生活新年季",
"id": 1717,
"is_favorite": 0,
"level_code": 1,
"parent_id": 0,
"publish_cnt": 0
}
]
},
"extra": {
"now": 1793691106000
},
"message": ""
}
| Field | Meaning |
|---|---|
data.event_list[].hot_title | Title of the scheduled event. |
data.event_list[].category_name | Content category of the event, such as food. The topic entries in topic_list leave it empty. |
data.event_list[].start_date / data.event_list[].end_date | Start and end of the event as 10-digit Unix timestamps. |
data.event_list[].id | ID of the event. Topic entries list it in event_ids. |
data.event_list[].parent_id | ID of the topic the event belongs to. The value 0 means no parent topic appears in the response. |
data.event_list[].cover_url | Cover image URL for the event. It is an empty string for topics. |
data.topic_list[].hot_title | Title of a larger topic or campaign that groups events. |
data.topic_list[].event_ids | List of event IDs that belong to this topic. |
data.topic_list[].level_code | Level marker of the entry. Topics show 1 and events show 2 in this response. |
data.event_list[].city_name / data.event_list[].event_status / data.event_list[].publish_cnt | City name, status code and publish count of the event. In the sample they are empty, -1 and 0. |
start_date and end_date as 10-digit Unix timestamps in seconds.city_code and category_code empty to get all cities and all categories.city_code values from Douyin Billboard City List and category_code values from Douyin Billboard Hot Category List.$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-calendar-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"end_date": 1735488000,
"city_code": "",
"start_date": 1734902400,
"category_code": ""
}'Đặ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.
category_codestringHot list category code, get from hot list category, empty for all
Mặc định: ""
city_codestringCity code, get from city list, empty for all
Mặc định: ""
end_dateintegerSnapshot end time format 10 digit timestamp
Mặc định: 1735488000
start_dateintegerSnapshot start time format 10 digit timestamp
Mặc định: 1734902400
Đâ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.
[
{
"data": {
"code": 0,
"data": {
"event_list": [
{
"category_name": "美食",
"city_name": "",
"cover_url": "http://p6-dyhot.byteimg.com/tos-cn-i-jid1fmi4d3/b2a4e31229c85f2d04b83278a2ce2082.png",
"end_date": 1735660799,
"event_ids": null,
"event_status": -1,
"hot_title": "冬日与干净饮食的适配度",
"id": 1549,
"is_favorite": 0,
"level_code": 2,
"parent_id": 1462,
"publish_cnt": 0,
"related_topics": "",
"sentence": "",
"start_date": 1730304000,
"tags": [],
"timeline": null
},
{
"category_name": "美食",
"city_name": "",
"cover_url": "http://p6-dyhot.byteimg.com/tos-cn-i-jid1fmi4d3/b2a4e31229c85f2d04b83278a2ce2082.png",
"end_date": 1735574399,
"event_ids": null,
"event_status": -1,
"hot_title": "无辣不欢的美食小城",
"id": 1557,
"is_favorite": 0,
"level_code": 2,
"parent_id": 1029,
"publish_cnt": 0,
"related_topics": "",
"sentence": "",
"start_date": 1729785600,
"tags": [],
"timeline": null
},
{
"category_name": "美食",
"city_name": "",
"cover_url": "http://p6-dyhot.byteimg.com/tos-cn-i-jid1fmi4d3/b2a4e31229c85f2d04b83278a2ce2082.png",
"end_date": 1735574399,
"event_ids": null,
"event_status": -1,
"hot_title": "嘎嘎好吃的东北小城",
"id": 1590,
"is_favorite": 0,
"level_code": 2,
"parent_id": 0,
"publish_cnt": 0,
"related_topics": "",
"sentence": "",
"start_date": 1730044800,
"tags": [],
"timeline": null
},
"… 32 more items in the full response"
],
"topic_list": [
{
"category_name": "",
"city_name": "",
"cover_url": "",
"end_date": 1738339199,
"event_ids": [
1690
],
"event_status": -1,
"hot_title": "dou有民歌计划",
"id": 1689,
"is_favorite": 0,
"level_code": 1,
"parent_id": 0,
"publish_cnt": 0,
"related_topics": "",
"sentence": "",
"start_date": 1732636800,
"tags": [],
"timeline": null
},
{
"category_name": "",
"city_name": "",
"cover_url": "",
"end_date": 1738684799,
"event_ids": [
1718
],
"event_status": -1,
"hot_title": "抖音生活新年季",
"id": 1717,
"is_favorite": 0,
"level_code": 1,
"parent_id": 0,
"publish_cnt": 0,
"related_topics": "",
"sentence": "",
"start_date": 1734624000,
"tags": [],
"timeline": null
},
{
"category_name": "",
"city_name": "",
"cover_url": "",
"end_date": 1735660799,
"event_ids": [
1549
],
"event_status": -1,
"hot_title": "干净饮食",
"id": 1462,
"is_favorite": 0,
"level_code": 1,
"parent_id": 0,
"publish_cnt": 0,
"related_topics": "",
"sentence": "",
"start_date": 1724774400,
"tags": [],
"timeline": null
}
]
},
"extra": {
"now": 1791290413000
},
"message": ""
}
}
]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-calendar-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ý.
Không có tham số bắt buộc. Tùy chọn: category_code (string), city_code (string), end_date (integer) và start_date (integer). 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 Billboard Hot Calendar List 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.