billboard_typestring必填
Billboard type
https://api.sandbase.ai/v1/api/douyin/billboard/hot-category-listReturns category IDs and popularity metrics from Douyin hot list billboards. Supports filtering by billboard type, search keywords, and snapshot time ranges.
[
{
"data": {
"code": 0,
"data": [
{
"label": "美食",
"num": 120,
"value": [
9000
]
},
{
"label": "旅行",
"num": 434,
"value": [
10000
]
},
{
"label": "站内玩法",
"num": 426,
"value": [
1004,
1000,
1002,
"… 2 more items in the full response"
]
},
"… 20 more items in the full response"
],
"extra": {
"now": 1790689544000
},
"message": ""
}
}
]选择一个示例,将其输入和结果加载到 playground 中。
Returns a list of Douyin hot list categories for a given billboard type, with a category label, a count, and numeric category IDs. It needs one input, billboard_type (for example rise). You can narrow results with keyword, snapshot_time, or a start_date and end_date range.
rise billboard to build a category filter for other billboard calls.num counts across categories such as food and travel to see which categories have more entries.snapshot_time values to compare how the category list looks at different times.keyword to check which categories a hot search term falls under.curl -X POST "https://api.sandbase.ai/v1/api/douyin/billboard/hot-category-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"billboard_type": "rise"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
billboard_type | string | Yes | Billboard type |
end_date | string | No | Snapshot end time |
keyword | string | No | Hot search term |
snapshot_time | string | No | Snapshot time |
start_date | string | No | Snapshot start time |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": [
{
"label": "美食",
"num": 74,
"value": [
9000
]
}
],
"extra": {
"now": 1793691107000
},
"message": ""
}
| Field | Meaning |
|---|---|
data[].label | Category name in Chinese, for example 美食 (food) or 旅行 (travel). |
data[].num | A count for the category. Larger numbers appear for broader categories, such as 326 for 站内玩法. |
data[].value[] | List of numeric category IDs for this label. Most labels have one ID, and some have several, such as 1004, 1000 and 1002. |
code / message | code is 0 on success. message is an empty string in this response. |
extra.now | Server time of the response as a Unix timestamp in milliseconds. |
billboard_type is the only required parameter. The example uses rise.snapshot_time for a single snapshot, or start_date and end_date for a range.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/billboard/hot-category-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"billboard_type": "rise"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
billboard_typestring必填Billboard type
end_datestringSnapshot end time
keywordstringHot search term
snapshot_timestringSnapshot time
start_datestringSnapshot start time
这是该 API 保存的示例响应;查看时不会发起实时请求。
[
{
"data": {
"code": 0,
"data": [
{
"label": "美食",
"num": 120,
"value": [
9000
]
},
{
"label": "旅行",
"num": 434,
"value": [
10000
]
},
{
"label": "站内玩法",
"num": 426,
"value": [
1004,
1000,
1002,
"… 2 more items in the full response"
]
},
"… 20 more items in the full response"
],
"extra": {
"now": 1790689544000
},
"message": ""
}
}
]探索更多
| 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 |
问题
向 https://api.sandbase.ai/v1/api/douyin/billboard/hot-category-list 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.001。每个组织在每个 UTC 日可获得 100 次免费调用,适用于包括此接口在内的所有符合条件的 SandBase APIs;超过后,每次调用将按此价格从您的 SandBase 余额中扣费。无需订阅。
必填:billboard_type (string)。 可选:end_date (string), keyword (string), snapshot_time (string) 和 start_date (string)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Douyin Billboard Hot Category List 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Douyin API 访问权限。