orderstring필수
Sorting method
https://api.sandbase.ai/v1/api/douyin/billboard/hot-city-listReturns Douyin trending topics filtered by city location. Allows sorting and filtering by city code, category tags, and search keywords.
[
{
"data": {
"code": 0,
"data": {
"last_update_time": "20261006203500",
"objs": [
{
"SnapshotID": 20261006203500,
"SnapshotSubType": "110000",
"SnapshotType": 1,
"allow_publish": false,
"city_code": 0,
"city_name": "北京",
"create_at": 1791249182,
"first_item_cover_url": "",
"hot_score": 8222410,
"index": 1,
"is_favorite": false,
"item_list": null,
"item_list_i64": null,
"label": 0,
"label_name": "",
"rank": 1,
"rank_diff": 0,
"recommend_type": null,
"related_event": null,
"sentence": "假期打卡北京的秋天",
"sentence_id": 2682810,
"sentence_tag": 10000,
"sentence_tag_name": "旅行",
"trends": [
{
"datetime": "20261006092500",
"hot_score": 4026339
},
{
"datetime": "20261006093500",
"hot_score": 4017658
},
{
"datetime": "20261006094500",
"hot_score": 6898361
},
"… 65 more items in the full response"
],
"video_count": 3
},
{
"SnapshotID": 20261006203500,
"SnapshotSubType": "110000",
"SnapshotType": 1,
"allow_publish": false,
"city_code": 0,
"city_name": "北京",
"create_at": 1791182373,
"first_item_cover_url": "",
"hot_score": 6408460,
"index": 2,
"is_favorite": false,
"item_list": null,
"item_list_i64": null,
"label": 0,
"label_name": "",
"rank": 2,
"rank_diff": 0,
"recommend_type": null,
"related_event": null,
"sentence": "吴奇隆国庆假期爬长城",
"sentence_id": 2682074,
"sentence_tag": 2012,
"sentence_tag_name": "娱乐",
"trends": [
{
"datetime": "20261005145500",
"hot_score": 5626276
},
{
"datetime": "20261005150500",
"hot_score": 5625643
},
{
"datetime": "20261005151500",
"hot_score": 5628760
},
"… 176 more items in the full response"
],
"video_count": 1
},
{
"SnapshotID": 20261006203500,
"SnapshotSubType": "110000",
"SnapshotType": 1,
"allow_publish": false,
"city_code": 110000,
"city_name": "北京",
"create_at": 1791077229,
"first_item_cover_url": "",
"hot_score": 5692527,
"index": 3,
"is_favorite": false,
"item_list": null,
"item_list_i64": null,
"label": 0,
"label_name": "",
"rank": 3,
"rank_diff": 0,
"recommend_type": null,
"related_event": null,
"sentence": "高迪演唱会北京站来袭",
"sentence_id": 2680469,
"sentence_tag": 2005,
"sentence_tag_name": "娱乐",
"trends": [
{
"datetime": "20261004094500",
"hot_score": 5664651
},
{
"datetime": "20261004095500",
"hot_score": 5697792
},
{
"datetime": "20261004100500",
"hot_score": 5692497
},
"… 353 more items in the full response"
],
"video_count": 3
},
"… 7 more items in the full response"
],
"page": {
"page": 1,
"page_size": 10,
"total": 3785
}
},
"extra": {
"now": 1791290412000
},
"message": ""
}
}
]예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
Returns Douyin trending topics for a city, one ranked entry per topic with its hot score, category tag and recent score history. It needs order, page and page_size. You can narrow results with city_code, sentence_tag and keyword.
rank_diff to find topics that moved the most in the ranking.trends history of a topic to see how its hot score changed over time.curl -X POST "https://api.sandbase.ai/v1/api/douyin/billboard/hot-city-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"order": "rank", "page": 1, "page_size": 10}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
order | string | Yes | Sorting method |
page | integer | Yes | Page number |
page_size | integer | Yes | Number of items per page |
city_code | string | No | City code, get from city list, empty for all |
keyword | string | No | Hot search term |
sentence_tag | string | No | Hot category tag, get from hot list category, multiple categories separated by commas, empty for all |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"last_update_time": "20261103152500",
"objs": [
{
"SnapshotID": 20261103152500,
"SnapshotSubType": "110000",
"SnapshotType": 1,
"allow_publish": false,
"city_code": 0,
"city_name": "北京",
"create_at": 1793515244,
"first_item_cover_url": "",
"hot_score": 8223985,
"index": 1,
"is_favorite": false,
"item_list": null
}
],
"page": {
"page": 1,
"page_size": 10,
"total": 8017
}
},
"extra": {
"now": 1793691107000
},
"message": ""
}
| Field | Meaning |
|---|---|
data.objs[].sentence | The hot topic text as shown on the billboard. |
data.objs[].rank / data.objs[].index | Position of the topic in the list. Both are 1 for the first item. |
data.objs[].rank_diff | Change value for the rank. Use it with order set to rank_diff to sort by this value. |
data.objs[].hot_score | Current hot score of the topic. |
data.objs[].city_name / data.objs[].city_code | Name and code of the city the topic belongs to. A city_code of 0 appears on a row whose city_name is still the city name, so rely on city_name too. |
data.objs[].sentence_tag / data.objs[].sentence_tag_name | Numeric category tag and its name, such as 旅行 (travel), 娱乐 (entertainment) or 美食 (food). |
data.objs[].sentence_id | Numeric ID of the hot topic. |
data.objs[].video_count | Number of videos linked to the topic. |
data.objs[].trends[] | Score history for the topic. Each entry has a datetime and a hot_score. |
data.page.total | Total number of matching topics across all pages. |
data.last_update_time | Time of the latest snapshot, written as YYYYMMDDHHMMSS. |
city_code from Douyin Billboard City List.sentence_tag values from Douyin Billboard Hot Category List. Separate several tags with commas.page and page_size. Compare data.page.total with the number of rows you have read.datetime values in trends use the format YYYYMMDDHHMMSS. create_at is a Unix timestamp in seconds.$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-city-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"order": "rank",
"keyword": "",
"city_code": "",
"page_size": 10,
"sentence_tag": ""
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
orderstring필수Sorting method
pageinteger필수Page number
page_sizeinteger필수Number of items per page
city_codestringCity code, get from city list, empty for all
기본값: ""
keywordstringHot search term
기본값: ""
sentence_tagstringHot category tag, get from hot list category, multiple categories separated by commas, empty for all
기본값: ""
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
[
{
"data": {
"code": 0,
"data": {
"last_update_time": "20261006203500",
"objs": [
{
"SnapshotID": 20261006203500,
"SnapshotSubType": "110000",
"SnapshotType": 1,
"allow_publish": false,
"city_code": 0,
"city_name": "北京",
"create_at": 1791249182,
"first_item_cover_url": "",
"hot_score": 8222410,
"index": 1,
"is_favorite": false,
"item_list": null,
"item_list_i64": null,
"label": 0,
"label_name": "",
"rank": 1,
"rank_diff": 0,
"recommend_type": null,
"related_event": null,
"sentence": "假期打卡北京的秋天",
"sentence_id": 2682810,
"sentence_tag": 10000,
"sentence_tag_name": "旅行",
"trends": [
{
"datetime": "20261006092500",
"hot_score": 4026339
},
{
"datetime": "20261006093500",
"hot_score": 4017658
},
{
"datetime": "20261006094500",
"hot_score": 6898361
},
"… 65 more items in the full response"
],
"video_count": 3
},
{
"SnapshotID": 20261006203500,
"SnapshotSubType": "110000",
"SnapshotType": 1,
"allow_publish": false,
"city_code": 0,
"city_name": "北京",
"create_at": 1791182373,
"first_item_cover_url": "",
"hot_score": 6408460,
"index": 2,
"is_favorite": false,
"item_list": null,
"item_list_i64": null,
"label": 0,
"label_name": "",
"rank": 2,
"rank_diff": 0,
"recommend_type": null,
"related_event": null,
"sentence": "吴奇隆国庆假期爬长城",
"sentence_id": 2682074,
"sentence_tag": 2012,
"sentence_tag_name": "娱乐",
"trends": [
{
"datetime": "20261005145500",
"hot_score": 5626276
},
{
"datetime": "20261005150500",
"hot_score": 5625643
},
{
"datetime": "20261005151500",
"hot_score": 5628760
},
"… 176 more items in the full response"
],
"video_count": 1
},
{
"SnapshotID": 20261006203500,
"SnapshotSubType": "110000",
"SnapshotType": 1,
"allow_publish": false,
"city_code": 110000,
"city_name": "北京",
"create_at": 1791077229,
"first_item_cover_url": "",
"hot_score": 5692527,
"index": 3,
"is_favorite": false,
"item_list": null,
"item_list_i64": null,
"label": 0,
"label_name": "",
"rank": 3,
"rank_diff": 0,
"recommend_type": null,
"related_event": null,
"sentence": "高迪演唱会北京站来袭",
"sentence_id": 2680469,
"sentence_tag": 2005,
"sentence_tag_name": "娱乐",
"trends": [
{
"datetime": "20261004094500",
"hot_score": 5664651
},
{
"datetime": "20261004095500",
"hot_score": 5697792
},
{
"datetime": "20261004100500",
"hot_score": 5692497
},
"… 353 more items in the full response"
],
"video_count": 3
},
"… 7 more items in the full response"
],
"page": {
"page": 1,
"page_size": 10,
"total": 3785
}
},
"extra": {
"now": 1791290412000
},
"message": ""
}
}
]더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Douyin City Hot List이 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 |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/douyin/billboard/hot-city-list에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: order (string), page (integer) 및 page_size (integer). 선택: city_code (string), keyword (string) 및 sentence_tag (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Douyin City Hot List은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Douyin API 액세스를 별도로 신청할 필요는 없습니다.