Git Product home page Git Product logo

news-server's Introduction

news-server

米哈游新闻获取服务器

相关项目:hoyo-news-search

新闻数据默认缓存 1 小时,启动时会全量获取数据,可能会消耗较多时间

请求示例

/<game>/news

路径参数:

game:要获取新闻的游戏,可选值:genshin, starrail, honkai3, zzz, mihoyo, genshin_os, starrail_os, honkai3_os, zzz_os, hoyoverse

查询参数:

  • (可选)force_refresh:是否强制更新数据,可选值:0, 1,默认为0

响应示例:

{
    "code": 0,
    "newsCount": 2727,
    "newsData": [
       {
            "banner": "https://fastcdn.mihoyo.com/content-v2/hk4e/122096/84688fc7a094fd0757e6f9ab78c17afe_1614695288761725973.jpg",
            "createTime": "2024-01-28 23:39:30",
            "id": 122096,
            "startTime": "2024-01-31 10:00:00",
            "title": "「神铸赋形」祈愿:「法器·鹤鸣余音」「法器·千夜浮梦」概率UP!",
            "video": null
        },
        ...
    ],
    "updateTime": 1706866847
}

news-server's People

Contributors

orilights avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.