热搜
检索当前的微博热搜排名。用于识别热门话题以进行新闻监测、内容规划或及时话题发现。
参数
此接口无需参数。
代码示例
curl "https://api.mofa-ai.com/v1/weibo/hot_search_v1" \
-H "Authorization: Bearer $MOFA_API_KEY"
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/weibo/hot_search_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/weibo/hot_search_v1");
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
在线试用
登录后可以在这里直接调用此接口,按价格从余额扣费,失败不收费。新账户赠送 $0.50 试用额度。
响应示例
采集于 2026-11-07,耗时 1132 ms
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "weibo.hot_search_v1",
"cost_usd": 0.02,
"data": {
"code": 0,
"data": {
"ok": 1,
"data": {
"hotgov": {
"mid": "5362587692696079",
"pos": 1,
"url": "http://weibo.com/2286908003/RqgbTbjn9",
"flag": 2,
"icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
"name": "#共赴进博之约共享中国机遇#",
"note": "#共赴进博之约共享中国机遇#",
"word": "#共赴进博之约共享中国机遇#",
"stime": 1794054741,
"is_gov": 1,
"is_hot": 1,
"icon_desc": "热",
"icon_width": 24,
"topic_flag": 1,
"icon_height": 24,
"icon_desc_color": "#ff9406",
"small_icon_desc": "热",
"small_icon_desc_color": "#ff9406"
},
"hotgovs": [
{
"pos": 1,
"flag": 2,
"icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
"name": "#共赴进博之约共享中国机遇#",
"word": "#共赴进博之约共享中国机遇#",
"icon_desc": "热",
"icon_width": 24,
"topic_flag": 1,
"icon_height": 24,
"icon_desc_color": "#ff9406",
"small_icon_desc": "热",
"small_icon_desc_color": "#ff9406"
}
],
"realtime": [
{
"num": 1050771,
"flag": 2,
"icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
"note": "8省份大到暴雪",
"rank": 0,
"word": "8省份大到暴雪",
"realpos": 1,
"emoticon": "",
"icon_desc": "热",
"icon_width": 24,
"label_name": "热",
"topic_flag": 1,
"icon_height": 24,
"word_scheme": "#8省份大到暴雪#",
"icon_desc_color": "#ff9406",
"small_icon_desc": "热",
"small_icon_desc_color": "#ff9406"
},
{
"num": 987441,
"flag": 0,
"note": "iG对战GEN",
"rank": 1,
"word": "iG对战GEN",
"realpos": 2,
"emoticon": "",
"label_name": "",
"topic_flag": 1,
"word_scheme": "#iG对战GEN#"
},
"… +49"
]
},
"logs": {
"ext": "cate:1003|words:#8省份大到暴雪#,#iG对战GEN#,#共赴APEC之约#,卡萨帝送你上澳网,#于正求厉娜原谅许飞#,#国乒六站冠军赛仅孙颖莎夺冠#,#iG急不可耐#,#Canyon琪亚娜杀穿iG#,#莱巴金娜退出年终总决赛#,陈熠0比4温特,#白小纯青稚的关系已经成了一门学问#,英国老公拒吃中餐被夸有毅力有原则,易烊千玺,iG醒醒,#小糯米听到刘恺威有新女友的反应#,#马天宇和…",
"act_code": 7948
},
"curTab": "hot",
"topLogs": {
"ext": "cate:1002|words:#共赴进博之约共享中国机遇#",
"act_code": 7948
}
},
"message": null,
"requestId": "53d1caa505e04c89b3835f5b0a241c48",
"recordTime": "2026-11-08T07:57:59.838538225",
"requestParams": {
"body": null,
"query": {}
}
}
}