微博、知乎热榜聚合 API,部署在 Cloudflare Workers 全球边缘节点。Fork 自 vikiboss/60s,本仓库聚焦微博 / 知乎热榜的子榜单与字段增强。
https://hot.shaomingbo.com/
接口前缀统一为 /v2。
| 方法 | 路径 | 说明 |
|---|---|---|
| GET | /v2/weibo |
微博实时热搜(约 50 条) |
| GET | /v2/weibo?category=xxx |
微博子榜单过滤(按类目,详见下文) |
| GET | /v2/zhihu |
知乎实时热榜(约 30 条) |
所有接口都支持 ?encoding= 参数切换响应格式:
json(默认)text:纯文本,适合终端markdown:Markdown,带链接
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
category |
string | 否 | 类目名(中文,需 URL encode)。不传返回全量;传值按类目过滤(复合类目如 综艺,体育 会同时命中 综艺 和 体育) |
encoding |
string | 否 | 响应格式:json / text / markdown |
{
"code": 200,
"message": "...",
"data": [
{
"title": "重庆市公安局局长张安疆不幸离世",
"tag": "新",
"hotValue": 1727669,
"hotValueDesc": "172.8万",
"cover": null,
"detail": "民生新闻领域热度第1名,搜索热度高于同类999%",
"link": "https://s.weibo.com/weibo?q=...",
"category": "民生新闻",
"fieldTag": "民生新闻领域热度TOP1",
"onboardTime": "2026-05-07 20:11:21"
}
]
}| 字段 | 类型 | 说明 |
|---|---|---|
title |
string | 热搜标题 |
tag |
string | null | 标签:新 / 热(微博热搜不出现 沸 / 爆) |
hotValue |
number | null | 真实热度数值 |
hotValueDesc |
string | null | 热度展示文本(如 172.8万 / 2.9万 / 1.23亿) |
cover |
null | 微博热搜接口不返回封面 |
detail |
string | null | 领域排名描述 |
link |
string | 微博话题搜索链接 |
category |
string | null | 所属类目(用于子榜单过滤) |
fieldTag |
string | null | 领域排名标签(如 国内时政领域热度TOP1) |
onboardTime |
string | null | 上榜时间(YYYY-MM-DD HH:mm:ss,Asia/Shanghai) |
微博热榜由若干类目组成,类目列表会随当前热点动态变化,没有固定枚举。获取当前可用类目的两种方式:
方式一:从默认接口动态发现(推荐)
curl -s https://hot.shaomingbo.com/v2/weibo \
| jq -r '.data[].category' \
| sort -u每次返回的类目即为当前可用值。
方式二:常见类目(实测样本,仅供参考)
互联网 体育 剧集 综艺 艺人 演出
国内时政 国际时政 海外新闻 民生新闻 电竞 数码
情感 美食 幽默
# 默认(全量 JSON)
curl https://hot.shaomingbo.com/v2/weibo
# 体育子榜单(中文须 URL encode)
curl "https://hot.shaomingbo.com/v2/weibo?category=%E4%BD%93%E8%82%B2"
# 国内时政
curl "https://hot.shaomingbo.com/v2/weibo?category=%E5%9B%BD%E5%86%85%E6%97%B6%E6%94%BF"
# 终端友好的纯文本
curl "https://hot.shaomingbo.com/v2/weibo?encoding=text"
# Markdown 输出
curl "https://hot.shaomingbo.com/v2/weibo?encoding=markdown"
# 组合:体育榜的 markdown 输出
curl "https://hot.shaomingbo.com/v2/weibo?category=%E4%BD%93%E8%82%B2&encoding=markdown"| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
encoding |
string | 否 | 响应格式:json / text / markdown |
知乎暂不支持子榜单 / 主题热榜过滤——
zhihu.com/knowledge-plan/...接口需要客户端签名(X-Zse-93/X-Zse-96),尚未支持;zhihu.com/topsearch因 Cloudflare 出口 IP 被知乎风控屏蔽,本部署上不可用。
{
"code": 200,
"data": [
{
"title": "如何看待「耿同学讲故事」再举报中山大学副院长邝栋明论文造假?",
"tag": "沸",
"hotValue": 25460000,
"hotValueDesc": "2546 万热度",
"cover": "https://pic4.zhimg.com/v2-9c2d4dd8111fc35a753b4f966e2826f5_1440w.jpg",
"detail": "耿同学刚锤完中大杰青时隔一天再锤副院长……",
"link": "https://www.zhihu.com/question/2035524771035792318"
}
]
}| 字段 | 类型 | 说明 |
|---|---|---|
title |
string | 问题标题 |
tag |
string | null | 标签:新 / 热 / 沸 |
hotValue |
number | null | 热度数值(推算自 hotValueDesc) |
hotValueDesc |
string | null | 知乎原始热度文本(如 2546 万热度) |
cover |
string | null | 问题封面 / 缩略图 |
detail |
string | null | 问题摘要 |
link |
string | 问题详情链接 |
知乎与微博的
hotValueDesc格式不一致(微博172.8万,知乎2546 万热度)。如需统一展示,建议消费方用hotValue自行格式化。
curl https://hot.shaomingbo.com/v2/zhihu
curl "https://hot.shaomingbo.com/v2/zhihu?encoding=text"
curl "https://hot.shaomingbo.com/v2/zhihu?encoding=markdown"