dailyhot-api
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese全网热榜聚合 API
Cross-platform Hot List Aggregation API
Source: imsyy/DailyHotApi · Self-hosted locally, zero cost, zero configuration
A locally running cross-platform hot list aggregation service that covers real-time hot search data from more than 40 platforms. It is automatically deployed when installing the Agent, and users do not need any additional operations.
关键规则
Key Rules
- 调用前必须确保服务已启动(执行 )
bash scripts/ensure_running.sh - 所有 HTTP 请求添加超时:
-m 15 - 请求失败不重试 — 报告错误并提示用户
- 默认端口:6688,可通过环境变量 修改
DAILYHOT_PORT
- You must ensure the service is started before calling (execute )
bash scripts/ensure_running.sh - Add timeout for all HTTP requests:
-m 15 - No retry on request failure — report the error and prompt the user
- Default port: 6688, which can be modified via the environment variable
DAILYHOT_PORT
服务管理
Service Management
确保服务运行(每次使用前调用)
Ensure the service is running (call before each use)
bash
bash scripts/ensure_running.sh自动完成以下操作:
- 检查 DailyHotApi 是否已安装,未安装则自动
npm install - 检查服务是否运行中,未运行则自动启动
- 等待服务就绪并返回状态
bash
bash scripts/ensure_running.shAutomatically complete the following operations:
- Check if DailyHotApi is installed, run automatically if it is not installed
npm install - Check if the service is running, start it automatically if it is not running
- Wait for the service to be ready and return the status
停止服务
Stop the service
bash
bash scripts/stop.shbash
bash scripts/stop.sh支持的平台(40+)
Supported Platforms (40+)
| 平台 | 接口路径 | 类别 |
|---|---|---|
| 抖音 | | 热点榜 |
| 微博 | | 热搜榜 |
| 知乎 | | 热榜 |
| B站 | | 热门榜 |
| 百度 | | 热搜榜 |
| 今日头条 | | 热榜 |
| 快手 | | 热点榜 |
| 豆瓣电影 | | 新片榜 |
| 百度贴吧 | | 热议榜 |
| 腾讯新闻 | | 热点榜 |
| 新浪新闻 | | 热点榜 |
| 网易新闻 | | 热点榜 |
| 澎湃新闻 | | 热榜 |
| 36氪 | | 热榜 |
| 虎嗅 | | 24小时 |
| IT之家 | | 热榜 |
| 少数派 | | 热榜 |
| 稀土掘金 | | 热榜 |
| Platform | Interface Path | Category |
|---|---|---|
| Douyin | | Hot Spot List |
| Hot Search List | |
| Zhihu | | Hot List |
| Bilibili | | Popular List |
| Baidu | | Hot Search List |
| Toutiao | | Hot List |
| Kuaishou | | Hot Spot List |
| Douban Movie | | New Film List |
| Baidu Tieba | | Hot Discussion List |
| Tencent News | | Hot Spot List |
| Sina News | | Hot Spot List |
| NetEase News | | Hot Spot List |
| The Paper | | Hot List |
| 36Kr | | Hot List |
| Huxiu | | 24 Hours |
| IT Home | | Hot List |
| SSPAI | | Hot List |
| Juejin | | Hot List |
数据获取
Data Acquisition
获取单平台热榜
Get hot list of a single platform
bash
curl -s -m 15 "http://localhost:6688/douyin"bash
curl -s -m 15 "http://localhost:6688/douyin"返回格式
Return format
json
{
"code": 200,
"name": "douyin",
"title": "抖音",
"type": "热点榜",
"total": 50,
"updateTime": "2026-03-31T08:09:47.743Z",
"data": [
{
"id": "2449453",
"title": "热点标题",
"hot": 12115951,
"url": "https://www.douyin.com/hot/2449453"
}
]
}json
{
"code": 200,
"name": "douyin",
"title": "抖音",
"type": "热点榜",
"total": 50,
"updateTime": "2026-03-31T08:09:47.743Z",
"data": [
{
"id": "2449453",
"title": "热点标题",
"hot": 12115951,
"url": "https://www.douyin.com/hot/2449453"
}
]
}批量获取多平台热榜(推荐用于趋势收集)
Batch get hot lists of multiple platforms (recommended for trend collection)
bash
undefinedbash
undefined在脚本中批量调用
Batch call in scripts
python3 scripts/collect_trends.py --platforms douyin weibo toutiao zhihu bilibili baidu
---python3 scripts/collect_trends.py --platforms douyin weibo toutiao zhihu bilibili baidu
---趋势收集工作流
Trend Collection Workflow
本 skill 在流水线中的位置:阶段 1 — 趋势收集
确保服务运行 → 批量请求多平台热榜 → 汇总并格式化 → 输出到阶段 2The position of this skill in the pipeline: Phase 1 — Trend Collection
Ensure service running → Batch request hot lists of multiple platforms → Summarize and format → Output to Phase 2采集策略
Collection Strategy
每次采集从以下平台拉取数据(可在 config.json 中自定义):
- 短视频平台:抖音、快手、B站
- 社交媒体:微博、知乎、百度贴吧
- 新闻资讯:今日头条、百度、腾讯新闻、澎湃新闻
- 科技财经:36氪、虎嗅、IT之家
Each collection pulls data from the following platforms (can be customized in config.json):
- Short video platforms: Douyin, Kuaishou, Bilibili
- Social media: Weibo, Zhihu, Baidu Tieba
- News and information: Toutiao, Baidu, Tencent News, The Paper
- Technology and finance: 36Kr, Huxiu, IT Home
错误处理
Error Handling
| 情况 | 处理 |
|---|---|
| 服务未启动 | 自动执行 |
| 单平台请求失败 | 跳过该平台,继续采集其他平台 |
| 返回数据为空 | 记录警告,不影响整体流程 |
| 端口被占用 | 自动尝试 6689-6699 端口 |
| Scenario | Handling |
|---|---|
| Service not started | Automatically execute |
| Single platform request failed | Skip this platform and continue collecting other platforms |
| Returned data is empty | Record a warning, does not affect the overall process |
| Port is occupied | Automatically try ports 6689-6699 |