Weibo Hot Search List
https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search-summaryGet the complete real-time Weibo hot search ranking (top 50): keyword, rank, heat tag and search link for each trending topic.
- 价格
- $0.0015美元 / 次调用
- 方法
- POST
- 响应
- JSON
- 参数
- 0 个必填 · 0 个可选
Playground
[
{
"data": {
"data": [
{
"heat": "",
"is_top": true,
"keyword": "总书记指引宣传思想文化工作",
"keyword_url": "/weibo?q=%23%E6%80%BB%E4%B9%A6%E8%AE%B0%E6%8C%87%E5%BC%95%E5%AE%A3%E4%BC%A0%E6%80%9D%E6%83%B3%E6%96%87%E5%8C%96%E5%B7%A5%E4%BD%9C%23&Refer=new_time",
"rank": 0,
"tag": "热"
},
{
"heat": "",
"is_top": false,
"keyword": "疑似缅北电诈园区图片曝光",
"keyword_url": "/weibo?q=%E7%96%91%E4%BC%BC%E7%BC%85%E5%8C%97%E7%94%B5%E8%AF%88%E5%9B%AD%E5%8C%BA%E5%9B%BE%E7%89%87%E6%9B%9D%E5%85%89&t=31&band_rank=1&Refer=top",
"rank": 1,
"tag": ""
},
{
"heat": "",
"is_top": false,
"keyword": "华为PuraXView",
"keyword_url": "/weibo?q=%E5%8D%8E%E4%B8%BAPuraXView&t=31&band_rank=2&Refer=top",
"rank": 2,
"tag": "新"
},
"… 49 more items in the full response"
],
"total": 52
}
}
]示例
选择一个示例,将其输入和结果加载到 playground 中。
API README
Weibo Hot Search List API
Returns the current Weibo hot search ranking as a list of trending topics. Each entry has a keyword, rank, tag and a search link. The request takes no input parameters.
Use cases
- Track which topics trend on Weibo right now and log the list at set times.
- Send an alert when a brand name or product keyword appears in the hot list.
- Build a daily report of trending topics and how long each stays in the ranking.
- Feed trending keywords into a post search to collect the discussion around each topic.
Request
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search-summary" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"heat": "",
"is_top": true,
"keyword": "乌镇网事",
"keyword_url": "/weibo?q=%23%E4%B9%8C%E9%95%87%E7%BD%91%E4%BA%8B%23&Refer=new_time",
"rank": 0,
"tag": "热"
}
],
"total": 51
}
Response fields
| Field | Meaning |
|---|---|
data[].keyword | The trending topic text as shown on the hot search list. |
data[].rank | Position of the topic in the list. The first entry has rank set to 0, so the count starts at zero. |
data[].tag | Short label for the topic, such as 热 (hot) or 新 (new). |
data[].keyword_url | Relative Weibo search path for the topic. The q value is the URL-encoded keyword wrapped in # hashtag marks. |
data[].is_top | true for the pinned entry at the top of the list, false for the others. |
data[].heat | Heat value for the topic. It can be an empty string, as in the sample response. |
total | Number of items counted for the list. It can be one higher than the number of ranked entries. |
Notes
- The request body is an empty JSON object
{}. There is no pagination. keyword_urlis a relative path. Add the Weibo domain before you open it in a browser.- To read the posts behind a topic, pass the
keywordto Weibo Real-Time Search or Weibo Topic Search. - For a different view of the ranking, see Weibo Real-Time Hot Search.
Pricing
$0.0015 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/weibo/web-v2/hot-search-summary" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. 身份验证
将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
3. 参数
此 API 尚未发布参数 Schema。
4. 响应
这是该 API 保存的示例响应;查看时不会发起实时请求。
[
{
"data": {
"data": [
{
"heat": "",
"is_top": true,
"keyword": "总书记指引宣传思想文化工作",
"keyword_url": "/weibo?q=%23%E6%80%BB%E4%B9%A6%E8%AE%B0%E6%8C%87%E5%BC%95%E5%AE%A3%E4%BC%A0%E6%80%9D%E6%83%B3%E6%96%87%E5%8C%96%E5%B7%A5%E4%BD%9C%23&Refer=new_time",
"rank": 0,
"tag": "热"
},
{
"heat": "",
"is_top": false,
"keyword": "疑似缅北电诈园区图片曝光",
"keyword_url": "/weibo?q=%E7%96%91%E4%BC%BC%E7%BC%85%E5%8C%97%E7%94%B5%E8%AF%88%E5%9B%AD%E5%8C%BA%E5%9B%BE%E7%89%87%E6%9B%9D%E5%85%89&t=31&band_rank=1&Refer=top",
"rank": 1,
"tag": ""
},
{
"heat": "",
"is_top": false,
"keyword": "华为PuraXView",
"keyword_url": "/weibo?q=%E5%8D%8E%E4%B8%BAPuraXView&t=31&band_rank=2&Refer=top",
"rank": 2,
"tag": "新"
},
"… 49 more items in the full response"
],
"total": 52
}
}
]探索更多
相关 APIs
| API | 价格 | 响应 |
|---|---|---|
Weibo | $0.0015 每次调用 | JSON |
Weibo | $0.001 每次调用 | JSON |
Weibo | $0.001 每次调用 | JSON |
Weibo | $0.001 每次调用 | JSON |
Weibo | $0.001 每次调用 | JSON |
Weibo | $0.001 每次调用 | JSON |
问题
常见问题
如何使用 Weibo Hot Search List API?
向 https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search-summary 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
Weibo Hot Search List API 的价格是多少?
每次调用 $0.0015。每个组织在每个 UTC 日可获得 100 次免费调用,适用于包括此接口在内的所有符合条件的 SandBase APIs;超过后,每次调用将按此价格从您的 SandBase 余额中扣费。无需订阅。
Weibo Hot Search List API 接受哪些参数?
Weibo Hot Search List 不接受输入参数;请发送空的 JSON 请求体。
Weibo Hot Search List API 返回什么?
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
我需要 Weibo 开发者账户或 API key 吗?
不需要。Weibo Hot Search List 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Weibo API 访问权限。
