Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Douyin City Hot List

API 文件
https://api.sandbase.ai/v1/api/douyin/billboard/hot-city-list

Returns Douyin trending topics filtered by city location. Allows sorting and filtering by city code, category tags, and search keywords.

價格
$0.001美元/次呼叫
方法
POST
回應
JSON
參數
3 個必填 · 3 個選填

Playground

輸入
Sorting method
Page number
Number of items per page
City code, get from city list, empty for all
Hot search term
Hot category tag, get from hot list category, multiple categories separated by commas, empty for all
輸出範例
回應outputs · 4.1 KB · 145 行
[
  {
    "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": ""
    }
  }
]

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Douyin City Hot List API

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.

Use cases

  • Track which topics rank highest in a single city such as Beijing.
  • Filter a city's hot topics by category, for example travel or food, to find local content ideas.
  • Sort by rank_diff to find topics that moved the most in the ranking.
  • Chart the trends history of a topic to see how its hot score changed over time.

Request

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.

Parameters

NameTypeRequiredDescription
orderstringYesSorting method
pageintegerYesPage number
page_sizeintegerYesNumber of items per page
city_codestringNoCity code, get from city list, empty for all
keywordstringNoHot search term
sentence_tagstringNoHot category tag, get from hot list category, multiple categories separated by commas, empty for all

Example response

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": ""
}

Response fields

FieldMeaning
data.objs[].sentenceThe hot topic text as shown on the billboard.
data.objs[].rank / data.objs[].indexPosition of the topic in the list. Both are 1 for the first item.
data.objs[].rank_diffChange value for the rank. Use it with order set to rank_diff to sort by this value.
data.objs[].hot_scoreCurrent hot score of the topic.
data.objs[].city_name / data.objs[].city_codeName 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_nameNumeric category tag and its name, such as 旅行 (travel), 娱乐 (entertainment) or 美食 (food).
data.objs[].sentence_idNumeric ID of the hot topic.
data.objs[].video_countNumber 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.totalTotal number of matching topics across all pages.
data.last_update_timeTime of the latest snapshot, written as YYYYMMDDHHMMSS.

Notes

  • Get city_code from Douyin Billboard City List.
  • Get sentence_tag values from Douyin Billboard Hot Category List. Separate several tags with commas.
  • Page through results with 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.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相關 APIs

所有 APIs
API價格回應
Douyin每次呼叫 $0.001JSON
Douyin每次呼叫 $0.001JSON
Douyin每次呼叫 $0.001JSON
Douyin每次呼叫 $0.001JSON
Douyin每次呼叫 $0.001JSON
Douyin每次呼叫 $0.001JSON

指南:Best Douyin API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Douyin City Hot List API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/douyin/billboard/hot-city-list。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Douyin City Hot List API 的費用是多少?

每次 $0.001,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Douyin City Hot List API 接受哪些參數?

必要:order (string), page (integer) 和 page_size (integer)。 選填:city_code (string), keyword (string) 和 sentence_tag (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Douyin City Hot List API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Douyin 開發者帳號或 API 金鑰嗎?

不需要。Douyin City Hot List 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Douyin API 存取權。