Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Weibo Hot Search Rankings

Tài liệu API
https://api.sandbase.ai/v1/api/weibo/app/hot-search

Returns current Weibo hot search rankings across various categories. Supports filtering by category such as realtime trends or by city name for regional topics.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
0 bắt buộc · 4 tùy chọn
100 lượt gọi miễn phí / ngày100 lượt gọi đầu tiên mỗi ngày miễn phí (chia sẻ theo tổ chức) · Đặt lại lúc 00:00 UTC. Sau đó tính phí theo mỗi lượt gọi.

Phòng thử nghiệm

Đầu vào
Hot search category
150
Items per page, default 20, max 50 Phạm vi: 1 đến 50.
Page number, starts from 1 (default 1) Tối thiểu: 1.
City name for local hot search, only effective when category=region, default Beijing
Đầu raVí dụ
Phản hồioutputs · 18.8 KB · 477 dòng
[
  {
    "data": {
      "channelInfo": {
        "channelConfig": {
          "auto_refresh_config": {
            "106003_-_type:25_-_filter_type:mineband": {
              "page_resume_expire_sec": 80000,
              "tab_and_background_expire_min": 1
            },
            "106003type=25&t=3&disable_hot=1&filter_type=fun": {
              "page_resume_expire_sec": 80000,
              "tab_and_background_expire_min": 1
            },
            "106003type=25&t=3&disable_hot=1&filter_type=gamenav": {
              "page_resume_expire_sec": 80000,
              "tab_and_background_expire_min": 1
            },
            "106003type=25&t=3&disable_hot=1&filter_type=lifenav": {
              "page_resume_expire_sec": 80000,
              "tab_and_background_expire_min": 1
            },
            "106003type=25&t=3&disable_hot=1&filter_type=realtimehot": {
              "page_resume_expire_sec": 80000,
              "tab_and_background_expire_min": 1
            },
            "106003type=25&t=3&disable_hot=1&filter_type=region": {
              "page_resume_expire_sec": 80000,
              "tab_and_background_expire_min": 1
            },
            "106003type=25&t=3&disable_hot=1&filter_type=social": {
              "page_resume_expire_sec": 80000,
              "tab_and_background_expire_min": 1
            },
            "106003type=25&t=3&disable_hot=1&filter_type=sportnav": {
              "page_resume_expire_sec": 80000,
              "tab_and_background_expire_min": 1
            },
            "106003type=25&t=3&disable_hot=1&filter_type=technologynav": {
              "page_resume_expire_sec": 80000,
              "tab_and_background_expire_min": 1
            },
            "nyw7f7uo9f": {
              "page_resume_expire_sec": 80000,
              "tab_and_background_expire_min": 1
            }
          },
          "refresh_configs": {
            "106003_-_type:25_-_filter_type:mineband": 1,
            "106003type=25&t=3&disable_hot=1&filter_type=fun": 1,
            "106003type=25&t=3&disable_hot=1&filter_type=gamenav": 1,
            "106003type=25&t=3&disable_hot=1&filter_type=lifenav": 1,
            "106003type=25&t=3&disable_hot=1&filter_type=realtimehot": 1,
            "106003type=25&t=3&disable_hot=1&filter_type=region": 1,
            "106003type=25&t=3&disable_hot=1&filter_type=social": 1,
            "106003type=25&t=3&disable_hot=1&filter_type=sportnav": 1,
            "106003type=25&t=3&disable_hot=1&filter_type=technologynav": 1,
            "nyw7f7uo9f": 1
          },
          "selectInfo": {
            "flowId": "106003type=25&t=3&disable_hot=1&filter_type=realtimehot",
            "pageDataType": "flow",
            "tabKey": "commonPage"
          }
        },
        "channels": [
          {
            "actionlog": {
              "act_code": 554,
              "act_type": 1,
              "ext": "seqid:17872186803400105419531|srid:08ffb0d8784da8fa4d650aea5ae155ba|lcate:1001|cate:5092|t:31|nav_tab:mineband|qtime:1787218680|c_type:31|page:1|type:25|dgr:0",
              "fid": "106003type=25&t=3&disable_hot=1&filter_type=realtimehot",
              "lfid": "102803_ctg1_1780_-_ctg1_1780",
              "luicode": "10000512",
              "uicode": "10000011"
            },
            "apiPath": "flowpage",
            "containerid": "106003_-_type:25_-_filter_type:mineband",
            "flowId": "106003_-_type:25_-_filter_type:mineband",
            "pageDataType": "flow",
            "params": {
              "is_container": 1,
              "transType": "pageinfo"
            },
            "scheme": "sinaweibo://pageinfo?containerid=106003_-_type:25_-_filter_type:mineband&title=热搜榜&extparam=",
            "style": {
              "flowType": "flow",
              "padding": [
                0,
                0,
                0,
                "… 1 more items in the full response"
              ]
            },
            "title": "我的",
            "titleInfo": {
              "icon": "",
              "iconDark": "",
              "style": {
                "backgroundDarkIcon": "",
                "backgroundIcon": "",
                "font": "",
                "fontSize": 15,
                "iconHeight": 24,
                "iconWidth": 24,
                "padding": [
                  0,
                  10,
                  2,
                  "… 1 more items in the full response"
                ],
                "selectBackgroundDarkIcon": "",
                "selectBackgroundIcon": "",
                "selectFont": "Bold",
                "selectFontSize": 15,
                "selectTextColor": "#333333",
                "selectTextDarkColor": "#D3D3D3",
                "sliderColor": [
                  "#FFA300",
                  "#FF6A00"
                ],
                "sliderDarkColor": [
                  "#FF6A00",
                  "#FF6A00"
                ],
                "textColor": "#939393",
                "textDarkColor": "#AAAAAA"
              },
              "subTitle": ""
            }
          },
          {
            "actionlog": {
              "act_code": 554,
              "act_type": 1,
              "ext": "seqid:17872186803400105419531|srid:08ffb0d8784da8fa4d650aea5ae155ba|lcate:1001|cate:5092|t:31|nav_tab:realtimehot|qtime:1787218680|c_type:31|page:1|type:25|dgr:0",
              "fid": "106003type=25&t=3&disable_hot=1&filter_type=realtimehot",
              "lfid": "102803_ctg1_1780_-_ctg1_1780",
              "luicode": "10000512",
              "uicode": "10000011"
            },
            "apiPath": "flowpage",
            "containerid": "106003type=25&t=3&disable_hot=1&filter_type=realtimehot",
            "flowId": "106003type=25&t=3&disable_hot=1&filter_type=realtimehot",
            "pageDataType": "flow",
            "params": {
              "is_container": 1,
              "transType": "pageinfo"
            },
            "scheme": "sinaweibo://pageinfo?containerid=106003type=25&t=3&disable_hot=1&filter_type=realtimehot&title=热搜榜&extparam=",
            "style": {
              "flowType": "flow",
              "padding": [
                0,
                0,
                0,
                "… 1 more items in the full response"
              ]
            },
            "title": "热搜",
            "titleInfo": {
              "icon": "",
              "iconDark": "",
              "style": {
                "backgroundDarkIcon": "",
                "backgroundIcon": "",
                "font": "",
                "fontSize": 15,
                "iconHeight": 24,
                "iconWidth": 24,
                "padding": [
                  2,
                  10,
                  2,
                  "… 1 more items in the full response"
                ],
                "selectBackgroundDarkIcon": "",
                "selectBackgroundIcon": "",
                "selectFont": "Bold",
                "selectFontSize": 15,
                "selectTextColor": "#333333",
                "selectTextDarkColor": "#D3D3D3",
                "sliderColor": [
                  "#FFA300",
                  "#FF6A00"
                ],
                "sliderDarkColor": [
                  "#FF6A00",
                  "#FF6A00"
                ],
                "textColor": "#939393",
                "textDarkColor": "#AAAAAA"
              },
              "subTitle": ""
            }
          },
          {
            "actionlog": {
              "act_code": 554,
              "act_type": 1,
              "ext": "seqid:17872186803400105419531|srid:08ffb0d8784da8fa4d650aea5ae155ba|lcate:1001|cate:5092|t:31|nav_tab:fun|qtime:1787218680|c_type:31|page:1|type:25|dgr:0",
              "fid": "106003type=25&t=3&disable_hot=1&filter_type=realtimehot",
              "lfid": "102803_ctg1_1780_-_ctg1_1780",
              "luicode": "10000512",
              "uicode": "10000011"
            },
            "apiPath": "flowpage",
            "containerid": "106003type=25&t=3&disable_hot=1&filter_type=fun",
            "flowId": "106003type=25&t=3&disable_hot=1&filter_type=fun",
            "pageDataType": "flow",
            "params": {
              "is_container": 1,
              "transType": "pageinfo"
            },
            "scheme": "sinaweibo://pageinfo?containerid=106003type=25&t=3&disable_hot=1&filter_type=fun&title=热搜榜&extparam=",
            "style": {
              "flowType": "flow",
              "padding": [
                0,
                0,
                0,
                "… 1 more items in the full response"
              ]
            },
            "title": "文娱",
            "titleInfo": {
              "icon": "",
              "iconDark": "",
              "style": {
                "backgroundDarkIcon": "",
                "backgroundIcon": "",
                "font": "",
                "fontSize": 15,
                "iconHeight": 24,
                "iconWidth": 24,
                "padding": [
                  2,
                  10,
                  2,
                  "… 1 more items in the full response"
                ],
                "selectBackgroundDarkIcon": "",
                "selectBackgroundIcon": "",
                "selectFont": "Bold",
                "selectFontSize": 15,
                "selectTextColor": "#333333",
                "selectTextDarkColor": "#D3D3D3",
                "sliderColor": [
                  "#FFA300",
                  "#FF6A00"
                ],
                "sliderDarkColor": [
                  "#FF6A00",
                  "#FF6A00"
                ],
                "textColor": "#939393",
                "textDarkColor": "#AAAAAA"
              },
              "subTitle": ""
            }
          },
          "… 7 more items in the full response"
        ]
      },
      "config": "{}",
      "items": [
        {
          "category": "cell",
          "text": {
            "content": "实时热点,每分钟更新一次",
            "style": {
              "ellipsize": "end",
              "margin": [
                12,
                5.5,
                12,
                "… 1 more items in the full response"
              ],
              "maxLines": 1,
              "textColor": "#939393",
              "textColorKey": "CommonGray93",
              "textSize": 12
            }
          },
          "type": "text"
        },
        {
          "category": "group",
          "itemId": "hotword",
          "items": [
            {
              "category": "card",
              "data": {
                "actionlog": {
                  "act_code": 554,
                  "act_type": 1,
                  "ext": "seqid:17872186803400105419531|srid:08ffb0d8784da8fa4d650aea5ae155ba|lcate:1001|cate:5000|t:51|key:#总书记指引宣传思想文化工作#|qtime:1787218680|pos:0_0|c_type:51|page:1|type:25|dgr:0",
                  "fid": "106003type=25&t=3&disable_hot=1&filter_type=realtimehot",
                  "lfid": "102803_ctg1_1780_-_ctg1_1780",
                  "luicode": "10000512",

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

Weibo Hot Search Rankings API

Returns the current Weibo hot search ranking as a list of topic cards, plus the tab list for the other ranking categories. All inputs are optional: category picks the ranking, region_name picks a city, and page and count control paging.

Use cases

  • Pull the top realtime Weibo topics and store the ranked list with each topic's heat number.
  • Check which topics carry a rank flag icon to see how Weibo marks them.
  • Request a city ranking with category set to region and a region_name value to follow local topics.
  • Read the channelInfo.channels[].title tabs to see which ranking tabs Weibo shows.

Request

curl -X POST "https://api.sandbase.ai/v1/api/weibo/app/hot-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
categorystringNoHot search category
countintegerNoItems per page, default 20, max 50
pageintegerNoPage number, starts from 1 (default 1)
region_namestringNoCity name for local hot search, only effective when category=region, default Beijing

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "channelInfo": {
    "channelConfig": {
      "auto_refresh_config": {
        "106003_-_type:25_-_filter_type:mineband": {
          "page_resume_expire_sec": 80000,
          "tab_and_background_expire_min": 1
        },
        "106003type=25&t=3&disable_hot=1&filter_type=fun": {
          "page_resume_expire_sec": 80000,
          "tab_and_background_expire_min": 1
        },
        "106003type=25&t=3&disable_hot=1&filter_type=gamenav": {
          "page_resume_expire_sec": 80000,
          "tab_and_background_expire_min": 1
        },
        "106003type=25&t=3&disable_hot=1&filter_type=lifenav": {
          "page_resume_expire_sec": 80000,
          "tab_and_background_expire_min": 1
        },
        "106003type=25&t=3&disable_hot=1&filter_type=realtimehot": {
          "page_resume_expire_sec": 80000,
          "tab_and_background_expire_min": 1
        },
        "106003type=25&t=3&disable_hot=1&filter_type=region": {
          "page_resume_expire_sec": 80000,
          "tab_and_background_expire_min": 1
        },
        "106003type=25&t=3&disable_hot=1&filter_type=social": {
          "page_resume_expire_sec": 80000,
          "tab_and_background_expire_min": 1
        },
        "106003type=25&t=3&disable_hot=1&filter_type=sportnav": {
          "page_resume_expire_sec": 80000,
          "tab_and_background_expire_min": 1
        }
      },
      "refresh_configs": {
        "106003_-_type:25_-_filter_type:mineband": 1,
        "106003type=25&t=3&disable_hot=1&filter_type=fun": 1,
        "106003type=25&t=3&disable_hot=1&filter_type=gamenav": 1,
        "106003type=25&t=3&disable_hot=1&filter_type=lifenav": 1,
        "106003type=25&t=3&disable_hot=1&filter_type=realtimehot": 1,
        "106003type=25&t=3&disable_hot=1&filter_type=region": 1,
        "106003type=25&t=3&disable_hot=1&filter_type=social": 1,
        "106003type=25&t=3&disable_hot=1&filter_type=sportnav": 1
      },
      "selectInfo": {
        "flowId": "106003type=25&t=3&disable_hot=1&filter_type=realtimehot",
        "pageDataType": "flow",
        "tabKey": "commonPage"
      }
    },
    "channels": [
      {
        "actionlog": {
          "act_code": 554,
          "act_type": 1,
          "ext": "seqid:17936919682050238243232|srid:56d365cce1fd9aab4fdf0021b89f242d|lcate:1001|t…",
          "fid": "106003type=25&t=3&disable_hot=1&filter_type=realtimehot",
          "lfid": "102803_ctg1_1780_-_ctg1_1780",
          "luicode": "10000512",
          "uicode": "10000011"
        },
        "apiPath": "flowpage",
        "containerid": "106003_-_type:25_-_filter_type:mineband",
        "flowId": "106003_-_type:25_-_filter_type:mineband",
        "pageDataType": "flow",
        "params": {
          "is_container": 1,
          "transType": "pageinfo"
        },
        "scheme": "sinaweibo://pageinfo?containerid=106003_-_type:25_-_filter_type:mineband&title=热…",
        "style": {
          "flowType": "flow",
          "padding": [
            0
          ]
        },
        "title": "我的",
        "titleInfo": {
          "icon": "",
          "iconDark": "",
          "style": {
            "backgroundDarkIcon": "",
            "backgroundIcon": "",
            "font": "",
            "fontSize": 15,
            "iconHeight": 24,
            "iconWidth": 24,
            "padding": [
              0
            ],
            "selectBackgroundDarkIcon": ""
          },
          "subTitle": ""
        }
      }
    ]
  },
  "config": "{}",
  "items": [
    {
      "category": "cell",
      "text": {
        "content": "实时热点,每分钟更新一次",
        "style": {
          "ellipsize": "end",
          "margin": [
            12
          ],
          "maxLines": 1,
          "textColor": "#939393",
          "textColorKey": "CommonGray93",
          "textSize": 12
        }
      },
      "type": "text"
    }
  ],
  "loadedInfo": "{}",
  "pageData": "{}",
  "pageHeader": "{}",
  "pageRefresh": "{}",
  "pageTabBar": "{}",
  "pageTitle": "{}",
  "refreshInfo": "{}"
}

Response fields

FieldMeaning
items[].items[].data.descText of the hot search topic, without the surrounding # marks.
items[].items[].data.desc_extrNumber shown next to the topic, such as 2173490. It looks like a heat or popularity count. Some cards, such as the first pinned one, do not have it.
items[].items[].data.iconURL of the small flag image shown beside the topic. The file name changes between topics (for example 2_0.png and 1_0.png).
items[].items[].data.actionlog.extTracking string with key: (the topic with # marks), pos: and realpos: (position in the list) and cate: (category code).
items[].items[].data.itemid / items[].items[].itemExt.anchorIdInternal ID strings for the card. They repeat the position and topic key.
items[].itemIdName of the group of cards. The topic list sits in the group with itemId set to hotword.
items[].text.contentLabel text between card groups, such as the notice that the list updates every minute.
channelInfo.channels[].titleName of each ranking tab, such as 热搜 (hot search) and 文娱 (entertainment).
channelInfo.channels[].containeridID of the tab. Its filter_type= part names the ranking, such as realtimehot or fun.

Notes

  • Read topics from the items entry whose itemId is hotword. Other entries in items are text labels.
  • The first card in the example has no desc_extr. Check that it exists before you read it.
  • The filter_type values in channelInfo.channelConfig.refresh_configs include realtimehot, fun, gamenav, lifenav, region, social and sportnav. To list the categories, call Weibo Hot Search Categories.
  • region_name only takes effect when category is region.

Pricing

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

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Weibo$0.001 mỗi lần gọiJSON
Weibo$0.001 mỗi lần gọiJSON
Weibo$0.001 mỗi lần gọiJSON
Weibo$0.001 mỗi lần gọiJSON
Weibo$0.001 mỗi lần gọiJSON
Weibo$0.001 mỗi lần gọiJSON

Hướng dẫn:Best Weibo API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Weibo Hot Search Rankings?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/weibo/app/hot-search 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.

API Weibo Hot Search Rankings có giá bao nhiêu?

$0.001 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.

API Weibo Hot Search Rankings chấp nhận những tham số nào?

Không có tham số bắt buộc. Tùy chọn: category (string), count (integer), page (integer) và region_name (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Weibo Hot Search Rankings trả về gì?

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.

Tôi có cần tài khoản nhà phát triển hoặc API key của Weibo không?

Không. Weibo Hot Search Rankings 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 Weibo.