Skip to content

前瞻直播兑换码查询API #73

@Cassy-Lee

Description

@Cassy-Lee

URL是https://api-takumi-static.mihoyo.com/event/miyolive/refreshCode?version=3d6c3b&time={精确到秒的时间戳}
需要带一个HTTP请求头x-rpc-act_id,内容是直播页面URL里的act_id,否则会提示活动已结束(返回码-500012)
官方网页请求时会带一个Accept头,内容是application/json, text/plain, */*,试过不带也可以
返回的data内容大概是下面这样的(原神的code_list里会有3个):

{"code_list":[{"title":"{HTML格式兑换码内容}","code":"{兑换码}","img":"{兑换码图标URL}","to_get_time":"{兑换码出现时间戳}"}]}

暂时还没出现的兑换码在列表里是全空的:

{"title":"","code":"","img":"","to_get_time":""}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions