{"id":14979112,"url":"https://github.com/imsyy/dailyhotapi","last_synced_at":"2025-05-13T17:12:53.328Z","repository":{"id":149896039,"uuid":"613757215","full_name":"imsyy/DailyHotApi","owner":"imsyy","description":"🔥 今日热榜 API，一个聚合热门数据的 API 接口，支持 RSS 模式 及 Vercel 部署 | 前端页面：https://github.com/imsyy/DailyHot","archived":false,"fork":false,"pushed_at":"2025-05-10T16:01:55.000Z","size":517,"stargazers_count":2156,"open_issues_count":8,"forks_count":906,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-10T17:18:57.881Z","etag":null,"topics":["api","daily-hot","list","rss","vercel"],"latest_commit_sha":null,"homepage":"https://hot.imsyy.top","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imsyy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-14T08:01:01.000Z","updated_at":"2025-05-10T16:29:19.000Z","dependencies_parsed_at":"2024-01-02T02:42:01.063Z","dependency_job_id":"38db52df-454d-468f-853b-5644b0d8bc85","html_url":"https://github.com/imsyy/DailyHotApi","commit_stats":{"total_commits":96,"total_committers":10,"mean_commits":9.6,"dds":"0.23958333333333337","last_synced_commit":"36802252c0e94f72ea18ba2fec87bbd3ac6f7bc1"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imsyy%2FDailyHotApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imsyy%2FDailyHotApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imsyy%2FDailyHotApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imsyy%2FDailyHotApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imsyy","download_url":"https://codeload.github.com/imsyy/DailyHotApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253990483,"owners_count":21995775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","daily-hot","list","rss","vercel"],"created_at":"2024-09-24T13:59:16.409Z","updated_at":"2025-05-13T17:12:53.256Z","avatar_url":"https://github.com/imsyy.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg alt=\"logo\" height=\"120\" src=\"./public/favicon.png\" width=\"120\"/\u003e\n\u003ch2\u003e今日热榜\u003c/h2\u003e\n\u003cp\u003e一个聚合热门数据的 API 接口\u003c/p\u003e\n\u003cbr /\u003e\n\u003cimg src=\"https://img.shields.io/github/last-commit/imsyy/DailyHotApi\" alt=\"last commit\"/\u003e\n \u003cimg src=\"https://img.shields.io/github/languages/code-size/imsyy/DailyHotApi\" alt=\"code size\"/\u003e\n \u003cimg src=\"https://img.shields.io/docker/image-size/imsyy/dailyhot-api\" alt=\"docker-image-size\"/\u003e\n\u003cimg src=\"https://github.com/imsyy/DailyHotApi/actions/workflows/docker.yml/badge.svg\" alt=\"Publish Docker image\"/\u003e\n\u003cimg src=\"https://github.com/imsyy/DailyHotApi/actions/workflows/npm.yml/badge.svg\" alt=\"Publish npm package\"/\u003e\n\u003c/div\u003e\n\n## 🚩 特性\n\n- 极快响应，便于开发\n- 支持 RSS 模式和 JSON 模式\n- 支持多种部署方式\n- 简明的路由目录，便于新增\n\n## 👀 示例\n\n\u003e 这里是使用该 API 的示例站点  \n\u003e 示例站点可能由于访问量或者长久未维护而访问异常  \n\u003e 若您也使用了本 API 搭建了网站，欢迎提交您的站点链接\n\n- [今日热榜 - https://hot.imsyy.top/](https://hot.imsyy.top/)\n\n## 📊 接口总览\n\n\u003cdetails\u003e\n\u003csummary\u003e查看全部接口\u003c/summary\u003e\n\n\u003e 示例站点运行于海外服务器，部分国内站点可能存在访问异常，请以实际情况为准\n\n| **站点**         | **类别**     | **调用名称**   | **状态**                                                                                                                                                            |\n| ---------------- | ------------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| 哔哩哔哩         | 热门榜       | bilibili       | ![https://api-hot.imsyy.top/bilibili](https://img.shields.io/website.svg?label=bilibili\u0026url=https://api-hot.imsyy.top/bilibili\u0026cacheSeconds=7200)                   |\n| AcFun            | 排行榜       | acfun          | ![https://api-hot.imsyy.top/acfun](https://img.shields.io/website.svg?label=acfun\u0026url=https://api-hot.imsyy.top/acfun\u0026cacheSeconds=7200)                            |\n| 微博             | 热搜榜       | weibo          | ![https://api-hot.imsyy.top/weibo](https://img.shields.io/website.svg?label=weibo\u0026url=https://api-hot.imsyy.top/weibo\u0026cacheSeconds=7200)                            |\n| 知乎             | 热榜         | zhihu          | ![https://api-hot.imsyy.top/zhihu](https://img.shields.io/website.svg?label=zhihu\u0026url=https://api-hot.imsyy.top/zhihu\u0026cacheSeconds=7200)                            |\n| 知乎日报         | 推荐榜       | zhihu-daily    | ![https://api-hot.imsyy.top/zhihu-daily](https://img.shields.io/website.svg?label=zhihu-daily\u0026url=https://api-hot.imsyy.top/zhihu-daily\u0026cacheSeconds=7200)          |\n| 百度             | 热搜榜       | baidu          | ![https://api-hot.imsyy.top/baidu](https://img.shields.io/website.svg?label=baidu\u0026url=https://api-hot.imsyy.top/baidu\u0026cacheSeconds=7200)                            |\n| 抖音             | 热点榜       | douyin         | ![https://api-hot.imsyy.top/douyin](https://img.shields.io/website.svg?label=douyin\u0026url=https://api-hot.imsyy.top/douyin\u0026cacheSeconds=7200)                         |\n| 快手             | 热点榜       | kuaishou       | ![https://api-hot.imsyy.top/kuaishou](https://img.shields.io/website.svg?label=kuaishou\u0026url=https://api-hot.imsyy.top/kuaishou\u0026cacheSeconds=7200)                   |\n| 豆瓣电影         | 新片榜       | douban-movie   | ![https://api-hot.imsyy.top/douban-movie](https://img.shields.io/website.svg?label=douban-movie\u0026url=https://api-hot.imsyy.top/douban-movie\u0026cacheSeconds=7200)       |\n| 豆瓣讨论小组     | 讨论精选     | douban-group   | ![https://api-hot.imsyy.top/douban-group](https://img.shields.io/website.svg?label=douban-group\u0026url=https://api-hot.imsyy.top/douban-group\u0026cacheSeconds=7200)       |\n| 百度贴吧         | 热议榜       | tieba          | ![https://api-hot.imsyy.top/tieba](https://img.shields.io/website.svg?label=tieba\u0026url=https://api-hot.imsyy.top/tieba\u0026cacheSeconds=7200)                            |\n| 少数派           | 热榜         | sspai          | ![https://api-hot.imsyy.top/sspai](https://img.shields.io/website.svg?label=sspai\u0026url=https://api-hot.imsyy.top/sspai\u0026cacheSeconds=7200)                            |\n| IT之家           | 热榜         | ithome         | ![https://api-hot.imsyy.top/ithome](https://img.shields.io/website.svg?label=ithome\u0026url=https://api-hot.imsyy.top/ithome\u0026cacheSeconds=7200)                         |\n| IT之家「喜加一」 | 最新动态     | ithome-xijiayi | ![https://api-hot.imsyy.top/ithome-xijiayi](https://img.shields.io/website.svg?label=ithome-xijiayi\u0026url=https://api-hot.imsyy.top/ithome-xijiayi\u0026cacheSeconds=7200) |\n| 简书             | 热门推荐     | jianshu        | ![https://api-hot.imsyy.top/jianshu](https://img.shields.io/website.svg?label=jianshu\u0026url=https://api-hot.imsyy.top/jianshu\u0026cacheSeconds=7200)                      |\n| 果壳             | 热门文章     | guokr          | ![https://api-hot.imsyy.top/guokr](https://img.shields.io/website.svg?label=guokr\u0026url=https://api-hot.imsyy.top/guokr\u0026cacheSeconds=7200)                            |\n| 澎湃新闻         | 热榜         | thepaper       | ![https://api-hot.imsyy.top/thepaper](https://img.shields.io/website.svg?label=thepaper\u0026url=https://api-hot.imsyy.top/thepaper\u0026cacheSeconds=7200)                   |\n| 今日头条         | 热榜         | toutiao        | ![https://api-hot.imsyy.top/toutiao](https://img.shields.io/website.svg?label=toutiao\u0026url=https://api-hot.imsyy.top/toutiao\u0026cacheSeconds=7200)                      |\n| 36 氪            | 热榜         | 36kr           | ![https://api-hot.imsyy.top/36kr](https://img.shields.io/website.svg?label=36kr\u0026url=https://api-hot.imsyy.top/36kr\u0026cacheSeconds=7200)                               |\n| 51CTO            | 推荐榜       | 51cto          | ![https://api-hot.imsyy.top/51cto](https://img.shields.io/website.svg?label=51cto\u0026url=https://api-hot.imsyy.top/51cto\u0026cacheSeconds=7200)                            |\n| CSDN             | 排行榜       | csdn           | ![https://api-hot.imsyy.top/csdn](https://img.shields.io/website.svg?label=csdn\u0026url=https://api-hot.imsyy.top/csdn\u0026cacheSeconds=7200)                               |\n| NodeSeek         | 最新动态     | nodeseek       | ![https://api-hot.imsyy.top/nodeseek](https://img.shields.io/website.svg?label=nodeseek\u0026url=https://api-hot.imsyy.top/nodeseek\u0026cacheSeconds=7200)                   |\n| 稀土掘金         | 热榜         | juejin         | ![https://api-hot.imsyy.top/juejin](https://img.shields.io/website.svg?label=juejin\u0026url=https://api-hot.imsyy.top/juejin\u0026cacheSeconds=7200)                         |\n| 腾讯新闻         | 热点榜       | qq-news        | ![https://api-hot.imsyy.top/qq-news](https://img.shields.io/website.svg?label=qq-news\u0026url=https://api-hot.imsyy.top/qq-news\u0026cacheSeconds=7200)                      |\n| 新浪网           | 热榜         | sina           | ![https://api-hot.imsyy.top/sina](https://img.shields.io/website.svg?label=sina\u0026url=https://api-hot.imsyy.top/sina\u0026cacheSeconds=7200)                               |\n| 新浪新闻         | 热点榜       | sina-news      | ![https://api-hot.imsyy.top/sina-news](https://img.shields.io/website.svg?label=sina-news\u0026url=https://api-hot.imsyy.top/sina-news\u0026cacheSeconds=7200)                |\n| 网易新闻         | 热点榜       | netease-news   | ![https://api-hot.imsyy.top/netease-news](https://img.shields.io/website.svg?label=netease-news\u0026url=https://api-hot.imsyy.top/netease-news\u0026cacheSeconds=7200)       |\n| 吾爱破解         | 榜单         | 52pojie        | ![https://api-hot.imsyy.top/52pojie](https://img.shields.io/website.svg?label=52pojie\u0026url=https://api-hot.imsyy.top/52pojie\u0026cacheSeconds=7200)                      |\n| 全球主机交流     | 榜单         | hostloc        | ![https://api-hot.imsyy.top/hostloc](https://img.shields.io/website.svg?label=hostloc\u0026url=https://api-hot.imsyy.top/hostloc\u0026cacheSeconds=7200)                      |\n| 虎嗅             | 24小时       | huxiu          | ![https://api-hot.imsyy.top/huxiu](https://img.shields.io/website.svg?label=huxiu\u0026url=https://api-hot.imsyy.top/huxiu\u0026cacheSeconds=7200)                            |\n| 酷安             | 热榜         | coolapk        | ![https://api-hot.imsyy.top/coolapk](https://img.shields.io/website.svg?label=coolapk\u0026url=https://api-hot.imsyy.top/coolapk\u0026cacheSeconds=7200)                      |\n| 虎扑             | 步行街热帖   | hupu           | ![https://api-hot.imsyy.top/hupu](https://img.shields.io/website.svg?label=hupu\u0026url=https://api-hot.imsyy.top/hupu\u0026cacheSeconds=7200)                               |\n| 爱范儿           | 快讯         | ifanr          | ![https://api-hot.imsyy.top/ifanr](https://img.shields.io/website.svg?label=ifanr\u0026url=https://api-hot.imsyy.top/ifanr\u0026cacheSeconds=7200)                            |\n| 英雄联盟         | 更新公告     | lol            | ![https://api-hot.imsyy.top/lol](https://img.shields.io/website.svg?label=lol\u0026url=https://api-hot.imsyy.top/lol\u0026cacheSeconds=7200)                                  |\n| 米游社           | 最新消息     | miyoushe       | ![https://api-hot.imsyy.top/miyoushe](https://img.shields.io/website.svg?label=miyoushe\u0026url=https://api-hot.imsyy.top/miyoushe\u0026cacheSeconds=7200)                   |\n| 原神             | 最新消息     | genshin        | ![https://api-hot.imsyy.top/genshin](https://img.shields.io/website.svg?label=genshin\u0026url=https://api-hot.imsyy.top/genshin\u0026cacheSeconds=7200)                      |\n| 崩坏3            | 最新动态     | honkai         | ![https://api-hot.imsyy.top/honkai](https://img.shields.io/website.svg?label=honkai\u0026url=https://api-hot.imsyy.top/honkai\u0026cacheSeconds=7200)                         |\n| 崩坏：星穹铁道   | 最新动态     | starrail       | ![https://api-hot.imsyy.top/starrail](https://img.shields.io/website.svg?label=starrail\u0026url=https://api-hot.imsyy.top/starrail\u0026cacheSeconds=7200)                   |\n| 微信读书         | 飙升榜       | weread         | ![https://api-hot.imsyy.top/weread](https://img.shields.io/website.svg?label=weread\u0026url=https://api-hot.imsyy.top/weread\u0026cacheSeconds=7200)                         |\n| NGA              | 热帖         | ngabbs         | ![https://api-hot.imsyy.top/ngabbs](https://img.shields.io/website.svg?label=ngabbs\u0026url=https://api-hot.imsyy.top/ngabbs\u0026cacheSeconds=7200)                         |\n| V2EX             | 主题榜       | v2ex           | ![https://api-hot.imsyy.top/v2ex](https://img.shields.io/website.svg?label=v2ex\u0026url=https://api-hot.imsyy.top/v2ex\u0026cacheSeconds=7200)                               |\n| HelloGitHub      | Trending     | hellogithub    | ![https://api-hot.imsyy.top/hellogithub](https://img.shields.io/website.svg?label=hellogithub\u0026url=https://api-hot.imsyy.top/hellogithub\u0026cacheSeconds=7200)          |\n| 中央气象台       | 全国气象预警 | weatheralarm   | ![https://api-hot.imsyy.top/weatheralarm](https://img.shields.io/website.svg?label=weatheralarm\u0026url=https://api-hot.imsyy.top/weatheralarm\u0026cacheSeconds=7200)       |\n| 中国地震台       | 地震速报     | earthquake     | ![https://api-hot.imsyy.top/earthquake](https://img.shields.io/website.svg?label=earthquake\u0026url=https://api-hot.imsyy.top/earthquake\u0026cacheSeconds=7200)             |\n| 历史上的今天     | 月-日        | history        | ![https://api-hot.imsyy.top/history](https://img.shields.io/website.svg?label=history\u0026url=https://api-hot.imsyy.top/history\u0026cacheSeconds=7200)                      |\n\n\u003c/details\u003e\n\n## ⚙️ 使用\n\n本项目支持 `Node.js` 调用，可在安装完成后调用 `serveHotApi` 来开启服务器\n\n\u003e 该方式无法使用部分需要 Puppeteer 环境的接口\n\n```bash\npnpm add dailyhot-api\n```\n\n```js\nimport serveHotApi from \"dailyhot-api\";\n\n/**\n * 启动服务器\n * @param {Number} [port] - 端口号\n * @returns {Promise\u003cvoid\u003e}\n */\nserveHotApi(3000);\n```\n\n## ⚙️ 部署\n\n具体使用说明可参考 [我的博客](https://blog.imsyy.top/posts/2024/0408)，下方仅讲解基础操作：\n\n### Docker 部署\n\n\u003e 安装及配置 Docker 将不在此处说明，请自行解决\n\n#### 本地构建\n\n```bash\n# 构建\ndocker build -t dailyhot-api .\n\n# 运行\ndocker run --restart always -p 6688:6688 -d dailyhot-api\n# 或使用 Docker Compose\ndocker-compose up -d\n```\n\n#### 在线部署\n\n```bash\n# 拉取\ndocker pull imsyy/dailyhot-api:latest\n\n# 运行\ndocker run --restart always -p 6688:6688 -d imsyy/dailyhot-api:latest\n```\n\n### 手动部署\n\n最直接的方式，您可以按照以下步骤将 `DailyHotApi` 部署在您的电脑、服务器或者其他任何地方\n\n#### 安装\n\n```bash\ngit clone https://github.com/imsyy/DailyHotApi.git\ncd DailyHotApi\n```\n\n然后再执行安装依赖\n\n```bash\nnpm install\n```\n\n复制 `/.env.example` 文件并重命名为 `/.env` 并修改配置\n\n#### 开发\n\n```bash\nnpm run dev\n```\n\n成功启动后程序会在控制台输出可访问的地址\n\n#### 编译运行\n\n```bash\nnpm run build\nnpm run start\n```\n\n### pm2 部署\n\n```bash\nnpm i pm2 -g\nsh ./deploy.sh\n```\n\n成功启动后程序会在控制台输出可访问的地址\n\n### Vercel 部署\n\n本项目支持通过 `Vercel` 进行一键部署，点击下方按钮或前往 [项目仓库](https://github.com/imsyy/DailyHotApi-Vercel) 进行手动部署\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/imsyys-projects/clone?repository-url=https%3A%2F%2Fgithub.com%2Fimsyy%2FDailyHotApi-Vercel)\n\n### Railway 部署\n\n本项目支持使用 [Railway](https://railway.app/) 一键部署，请先将本项目 fork 到您的仓库中，即可使用一键部署。\n\n### Zeabur 部署\n\n本项目支持使用 [Zeabur](https://zeabur.com/) 一键部署，请先将本项目 fork 到您的仓库中，即可使用一键部署。\n\n## ⚠️ 须知\n\n- 本项目为了避免频繁请求官方数据，默认对数据做了缓存处理，默认为 `60` 分钟，如需更改，请自行修改配置\n- 本项目部分接口使用了 **页面爬虫**，若违反对应页面的相关规则，请 **及时通知我去除该接口**\n\n## 📢 免责声明\n\n- 本项目提供的 `API` 仅供开发者进行技术研究和开发测试使用。使用该 `API` 获取的信息仅供参考，不代表本项目对信息的准确性、可靠性、合法性、完整性作出任何承诺或保证。本项目不对任何因使用该 `API` 获取信息而导致的任何直接或间接损失负责。本项目保留随时更改 `API` 接口地址、接口协议、接口参数及其他相关内容的权利。本项目对使用者使用 `API` 的行为不承担任何直接或间接的法律责任\n- 本项目并未与相关信息提供方建立任何关联或合作关系，获取的信息均来自公开渠道，如因使用该 `API` 获取信息而产生的任何法律责任，由使用者自行承担\n- 本项目对使用 `API` 获取的信息进行了最大限度的筛选和整理，但不保证信息的准确性和完整性。使用 `API` 获取信息时，请务必自行核实信息的真实性和可靠性，谨慎处理相关事项\n- 本项目保留对 `API` 的随时更改、停用、限制使用等措施的权利。任何因使用本 `API` 产生的损失，本项目不负担任何赔偿和责任\n\n## 😘 鸣谢\n\n特此感谢为本项目提供支持与灵感的项目\n\n- [RSSHub](https://github.com/DIYgod/RSSHub)\n\n## ⭐ Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=imsyy/DailyHotApi\u0026type=Date)](https://star-history.com/#imsyy/DailyHotApi\u0026Date)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimsyy%2Fdailyhotapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimsyy%2Fdailyhotapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimsyy%2Fdailyhotapi/lists"}