Install
openclaw skills install @thcjp/dailyhotopenclaw skills install @thcjp/dailyhot基于DailyHotApi(5.5k+星)的50+平台热搜聚合服务,支持微博/知乎/抖音/B站/百度/头条/豆瓣等平台热搜列表获取、多平台批量查询和关键词搜索。内置5分钟缓存机制,减少重复请求,提升响应速度。支持代理池自动切换,确保数据采集稳定性。
{
"platform": "weibo",
"limit": 20
}
{
"platforms": "weibo,zhihu,douyin",
"limit": 10
}
{
"keyword": "AI",
"platform": "weibo",
"limit": 20
}
{
"success": true,
"data": {
"platform": "weibo",
"items": [
{"title": "热搜标题", "hot": 1234567, "url": "https://...", "index": 1}
],
"total": 20,
"from_cache": false
},
"error": null,
"code": null
}
| 工具 | 参数 | 说明 |
|---|---|---|
| get_hot_list | platform, limit | 获取指定平台热搜榜 |
| get_multi_hot | platforms, limit | 批量获取多平台热搜 |
| get_supported_platforms | 无 | 获取支持的平台列表 |
| search_hot_keyword | keyword, platform, limit | 在热搜中搜索关键词 |
| 平台ID | 名称 | 类型 |
|---|---|---|
| 微博热搜 | 社交 | |
| zhihu | 知乎热榜 | 知识 |
| douyin | 抖音热搜 | 视频 |
| bilibili | B站热门 | 视频 |
| baidu | 百度热搜 | 搜索 |
| toutiao | 今日头条 | 新闻 |
| douban | 豆瓣热门 | 文化 |
| ithome | IT之家 | 科技 |
| 36kr | 36氪 | 科技 |
| tieba | 百度贴吧 | 社交 |
| 错误代码 | 场景 | 处理方式 |
|---|---|---|
| HOTLIST_ERROR | 热搜列表获取失败 | 尝试返回缓存数据,无缓存则报错 |
| HOTLIST_CACHE_FALLBACK | API请求失败但缓存可用 | 返回缓存数据并标注cache_reason |
| MULTI_HOT_ERROR | 多平台批量查询失败 | 返回已成功平台数据,标注failed_platforms |
| PLATFORM_ERROR | 平台列表获取失败 | 返回错误信息 |
| SEARCH_ERROR | 关键词搜索失败 | 返回空结果+错误信息 |
| NETWORK_TIMEOUT | 网络超时(30s) | 自动重试1次,失败后返回缓存 |
| PROXY_UNAVAILABLE | 代理池不可用 | 降级为直连模式继续请求 |
输入:
{"platform": "weibo", "limit": 10}
执行:
输出:
{
"success": true,
"data": {
"platform": "weibo",
"items": [
{"title": "AI大模型新突破", "hot": 2345678, "url": "https://weibo.com/...", "index": 1},
{"title": "科技股大涨", "hot": 1890123, "url": "https://weibo.com/...", "index": 2}
],
"total": 10
}
}
输入:
{"platforms": "weibo,zhihu,douyin", "limit": 5}
执行:
输出:
{
"success": true,
"data": {
"platforms": {
"weibo": [{"title": "AI大模型", "hot": 2345678, "url": "..."}],
"zhihu": [{"title": "AI新突破", "hot": 890123, "url": "..."}],
"douyin": [{"title": "AI话题", "hot": 567890, "url": "..."}]
},
"total_platforms": 3,
"failed_platforms": null
}
}