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 |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/douyin/billboard/hot-category-list。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.001。每個組織每個 UTC 日可免費呼叫 100 次,並可在包含此 API 在內的所有符合資格之 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 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Douyin API 存取權。