Files
hot-news-api/README_EN.md
2026-03-26 15:04:59 +08:00

6.3 KiB
Raw Permalink Blame History

中文

License: MIT Build Status Web Scraping REST API

Daily Hot News API

Overview

The Daily Hot News API provides access to real-time hot news data from various platforms. The data is refreshed automatically about every half an hour. This API can be used to retrieve hot news headlines along with their URLs and scores.

  • Base URL: https://orz.ai/api/v1/dailynews

Supported Platforms

We currently support trending content from the following platforms:

Serial No. Platform Name Platform Code Content Type Status
1 Baidu Hot Search baidu Social trends, entertainment, events
2 Sspai sspai Tech, digital, lifestyle
3 Weibo Hot Search weibo Social media trends, entertainment, events
4 Zhihu Hot List zhihu Q&A, in-depth content, social topics
5 36Kr tskr Tech startups, business news
6 52Pojie Forum ftpojie Technology, software, security
7 Bilibili bilibili Videos, anime, gaming, lifestyle
8 Douban douban Books, movies, music, culture
9 Hupu hupu Sports, gaming, digital
10 Baidu Tieba tieba Interest communities, topic discussions
11 Juejin juejin Programming, technical articles
12 TikTok/Douyin douyin Short video trends, entertainment
13 V2EX vtex Technology, programming, creativity
14 Toutiao jinritoutiao News, trending events
15 Stack Overflow stackoverflow Programming Q&A, technical discussions
16 GitHub Trending github Open source projects, programming languages
17 Hacker News hackernews Tech news, startups, programming
18 Sina Finance sina_finance Financial news, stock market information
19 East Money eastmoney Financial information, investment advice
20 Xueqiu xueqiu Stock investment, financial community
21 Cailianpress cls Financial news, market updates
22 Tencent News tenxunwang General news, entertainment, technology
23 WeChat weixin Social, information

Usage

  • Method: GET

  • Parameters:

    • platform: Specify the platform. Supported platforms are:
      • baidu
      • shaoshupai
      • ....
  • Example Request:

    GET https://orz.ai/api/v1/dailynews/?platform=baidu
    
  • Example Response:

    {
      "status": "200",
      "data": [
        {
          "title": "32岁'母单'女孩6年相亲百人",
          "url": "https://www.baidu.com/s?word=32%E5%B2%81%E2%80%9C%E6%AF%8D%E5%8D%95%E2%80%9D%E5%A5%B3%E5%AD%A9%EF%BC%9A6%E5%B9%B4%E7%9B%B8%E4%BA%B2%E7%99%BE%E4%BA%BA&sa=fyb_news",
          "score": "4955232",
          "desc": ""
        },
        {
          "title": "女高中生被父母退学:打工卖包子",
          "url": "https://www.baidu.com/s?word=%E5%A5%B3%E9%AB%98%E4%B8%AD%E7%94%9F%E8%A2%AB%E7%88%B6%E6%AF%8D%E9%80%80%E5%AD%A6%EF%BC%9A%E6%89%93%E5%B7%A5%E5%8D%96%E5%8C%85%E5%AD%90&sa=fyb_news",
          "score": "100000",
          "desc": "近日一名高二女生被父母强制辍学去广东打工卖包子引发热议。26日当地教育局回应已经妥善处理了女生已复学。"
        }
      ],
      "msg": "success"
    }
    

Notes

  • This API is for legal use only. Any illegal use is not supported and is the responsibility of the user.
  • The data provided by this API is for informational purposes only and should not be used as a primary platform of news.

Rate Limiting

There is currently no explicit rate limiting on this API, but please use it responsibly to avoid overloading the server.

Disclaimer

The information provided by this API may not always be accurate or up-to-date. Users should verify the information from other platforms before relying on it.

Telegram Bot

Link

You can use the bot directly or add it to your group.

If you want to deploy the bot by yourself, you should set the TG_BOT_TOKEN in the environment variables and then run the following command: python3 news_tg_bot.py

Fetch Basic Information API

MethodGET

GET https://orz.ai/api/v1/tools/website-meta/?url=https://v2ex.com/

{
  "status": "200",
  "data": {
    "meta_info": {
      "title": "V2EX",
      "description": "创意工作者的社区。讨论编程、设计、硬件、游戏等令人激动的话题。",
      "keywords": "",
      "author": "",
      "og:title": "",
      "og:description": "",
      "og:image": "/static/icon-192.png",
      "og:url": "https://v2ex.com/",
      "twitter:card": "",
      "twitter:title": "",
      "twitter:description": "",
      "twitter:image": "/static/icon-192.png"
    },
    "favicon_url": "https://v2ex.com/static/icon-192.png"
  },
  "msg": "Success"
}