dailyhot-api

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

全网热榜聚合 API

Cross-platform Hot List Aggregation API

来源imsyy/DailyHotApi · 本地自部署,零成本,零配置
本地运行的全网热榜聚合服务,覆盖 40+ 平台实时热搜数据。安装 agent 时自动部署,用户无需任何额外操作。

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
自动完成以下操作:
  1. 检查 DailyHotApi 是否已安装,未安装则自动
    npm install
  2. 检查服务是否运行中,未运行则自动启动
  3. 等待服务就绪并返回状态
bash
bash scripts/ensure_running.sh
Automatically complete the following operations:
  1. Check if DailyHotApi is installed, run
    npm install
    automatically if it is not installed
  2. Check if the service is running, start it automatically if it is not running
  3. Wait for the service to be ready and return the status

停止服务

Stop the service

bash
bash scripts/stop.sh

bash
bash scripts/stop.sh

支持的平台(40+)

Supported Platforms (40+)

平台接口路径类别
抖音
/douyin
热点榜
微博
/weibo
热搜榜
知乎
/zhihu
热榜
B站
/bilibili
热门榜
百度
/baidu
热搜榜
今日头条
/toutiao
热榜
快手
/kuaishou
热点榜
豆瓣电影
/douban-movie
新片榜
百度贴吧
/tieba
热议榜
腾讯新闻
/qq-news
热点榜
新浪新闻
/sina-news
热点榜
网易新闻
/netease-news
热点榜
澎湃新闻
/thepaper
热榜
36氪
/36kr
热榜
虎嗅
/huxiu
24小时
IT之家
/ithome
热榜
少数派
/sspai
热榜
稀土掘金
/juejin
热榜

PlatformInterface PathCategory
Douyin
/douyin
Hot Spot List
Weibo
/weibo
Hot Search List
Zhihu
/zhihu
Hot List
Bilibili
/bilibili
Popular List
Baidu
/baidu
Hot Search List
Toutiao
/toutiao
Hot List
Kuaishou
/kuaishou
Hot Spot List
Douban Movie
/douban-movie
New Film List
Baidu Tieba
/tieba
Hot Discussion List
Tencent News
/qq-news
Hot Spot List
Sina News
/sina-news
Hot Spot List
NetEase News
/netease-news
Hot Spot List
The Paper
/thepaper
Hot List
36Kr
/36kr
Hot List
Huxiu
/huxiu
24 Hours
IT Home
/ithome
Hot List
SSPAI
/sspai
Hot List
Juejin
/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
undefined
bash
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 — 趋势收集
确保服务运行 → 批量请求多平台热榜 → 汇总并格式化 → 输出到阶段 2
The 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

情况处理
服务未启动自动执行
ensure_running.sh
启动
单平台请求失败跳过该平台,继续采集其他平台
返回数据为空记录警告,不影响整体流程
端口被占用自动尝试 6689-6699 端口
ScenarioHandling
Service not startedAutomatically execute
ensure_running.sh
to start
Single platform request failedSkip this platform and continue collecting other platforms
Returned data is emptyRecord a warning, does not affect the overall process
Port is occupiedAutomatically try ports 6689-6699