{"id":13547469,"url":"https://github.com/imsyy/DailyHotApi","last_synced_at":"2025-04-02T19:33:14.455Z","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":"2024-10-15T09:26:32.000Z","size":346,"stargazers_count":1353,"open_issues_count":6,"forks_count":691,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-29T15:19:40.228Z","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":"2024-10-29T13:11:48.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":16,"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":246880385,"owners_count":20848852,"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-08-01T12:00:56.477Z","updated_at":"2025-04-02T19:33:09.439Z","avatar_url":"https://github.com/imsyy.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"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\u003e 🟢 状态正常 / 🟠 可能失效 / ❌ 无法使用 / ⚠️ 需要科学上网\n\n\u003cdetails\u003e\n\u003csummary\u003e查看全部接口状态\u003c/summary\u003e\n\n| **站点**         | **类别**     | **调用名称**   | **状态** |\n| ---------------- | ------------ | -------------- | -------- |\n| 哔哩哔哩         | 热门榜       | bilibili       | 🟢       |\n| AcFun            | 排行榜       | acfun          | 🟢       |\n| 微博             | 热搜榜       | weibo          | 🟢       |\n| 知乎             | 热榜         | zhihu          | 🟢       |\n| 知乎日报         | 推荐榜       | zhihu-daily    | 🟢       |\n| 百度             | 热搜榜       | baidu          | 🟢       |\n| 抖音             | 热点榜       | douyin         | 🟢       |\n| 豆瓣电影         | 新片榜       | douban-movie   | 🟢       |\n| 豆瓣讨论小组     | 讨论精选     | douban-group   | 🟢       |\n| 百度贴吧         | 热议榜       | tieba          | 🟢       |\n| 少数派           | 热榜         | sspai          | 🟢       |\n| IT之家           | 热榜         | ithome         | 🟠       |\n| IT之家「喜加一」 | 最新动态     | ithome-xijiayi | 🟠       |\n| 简书             | 热门推荐     | jianshu        | 🟠       |\n| 澎湃新闻         | 热榜         | thepaper       | 🟢       |\n| 今日头条         | 热榜         | toutiao        | 🟢       |\n| 36 氪            | 热榜         | 36kr           | 🟢       |\n| 51CTO            | 推荐榜       | 51cto          | 🟢       |\n| CSDN             | 排行榜       | csdn           | 🟢       |\n| NodeSeek         | 最新动态     | nodeseek       | 🟢       |\n| 稀土掘金         | 热榜         | juejin         | 🟢       |\n| 腾讯新闻         | 热点榜       | qq-news        | 🟢       |\n| 新浪网           | 热榜         | sina           | 🟢       |\n| 新浪新闻         | 热点榜       | sina-news      | 🟢       |\n| 网易新闻         | 热点榜       | netease-news   | 🟢       |\n| 吾爱破解         | 榜单         | 52pojie        | ❌       |\n| 全球主机交流     | 榜单         | hostloc        | ❌       |\n| 虎嗅             | 24小时       | huxiu          | 🟢       |\n| 虎扑             | 步行街热帖   | hupu           | 🟢       |\n| 爱范儿           | 快讯         | ifanr          | 🟢       |\n| 英雄联盟         | 更新公告     | lol            | 🟢       |\n| 原神             | 最新消息     | genshin        | 🟢       |\n| 崩坏3            | 最新动态     | honkai         | 🟢       |\n| 崩坏：星穹铁道   | 最新动态     | starrail       | 🟢       |\n| 微信读书         | 飙升榜       | weread         | 🟢       |\n| NGA              | 热帖         | ngabbs         | 🟢       |\n| V2EX             | 主题榜       | v2ex           | ⚠️       |\n| HelloGitHub      | Trending     | hellogithub    | 🟢       |\n| 中央气象台       | 全国气象预警 | weatheralarm   | 🟢       |\n| 中国地震台       | 地震速报     | earthquake     | 🟢       |\n| 历史上的今天     | 月-日        | history        | 🟢       |\n\n\u003c/details\u003e\n\n## ⚙️ 使用\n\n本项目支持 `Node.js` 调用，可在安装完成后调用 `serveHotApi` 来开启服务器\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# 运行\ndocker run -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# 运行\ndocker run -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#### 开发\n\n```bash\nnpm run dev\n```\n\n成功启动后程序会在控制台输出可访问的地址\n\n#### 编译运行\n\n```bash\nnpm run build\nnpm run start\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","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"}