跳至主要內容

游戏启动器信息

UIGF-org大约 8 分钟

游戏启动器信息


获取推荐内容

请求方式:GET

《原神》国服:https://sdk-static.mihoyo.com/hk4e_cn/mdk/launcher/api/content

《原神》国际服:https://hk4e-launcher-static.hoyoverse.com/hk4e_global/mdk/launcher/api/content

《原神》国际服:https://sdk-os-static.mihoyo.com/hk4e_global/mdk/launcher/api/content

《崩坏:星穹铁道》国服:https://api-launcher.mihoyo.com/hkrpg_cn/mdk/launcher/api/content

《崩坏:星穹铁道》国际服:https://hkrpg-launcher-static.hoyoverse.com/hkrpg_global/mdk/launcher/api/content

《崩坏3》国服:https://bh3-launcher-static.mihoyo.com/bh3_cn/mdk/launcher/api/content

《崩坏3》国际服:https://sdk-os-static.mihoyo.com/bh3_global/mdk/launcher/api/content

参数:

字段类型内容备注
keystr启动器Key
launcher_idnum启动器ID
languagestr返回文本语言的国家代码国服仅支持中文(zh-cn)
filter_advbool是否不获取资讯信息留空则返回所有信息,即false

JSON返回:

根对象:

字段类型内容备注
retcodenum返回码
-204 请求参数launcher_id的值无效
-205 请求参数key的值无效
messagestr返回消息
dataobj推荐信息若请求参数中的language为不支持的语言,则所有数据均为空与空数组

data对象:

字段类型内容备注
advobj背景图片信息
bannerarr游戏资讯
iconarr启动器侧边栏图标及其信息
postarr最近的官方资讯文章信息
qqobj官方QQ群信息
moreobj待调查
linksobj常见问题页面的URL

data对象→adv对象:

字段类型内容备注
backgroundstr背景图片的URL文件名中“_”字符前为该图片的MD5校验码
iconstr版本热点按钮图片的URL
urlstr版本专题内容页面的URL
versionstr背景图版本
bg_checksumstr待调查疑似为背景图片的校验码,但经过比对后,发现其与MD5和任何哈希散列算法通过图片内容生成的值无法匹配

data对象→banner数组→对象:

字段类型内容备注
banner_idstr待调查
namestr待调查似乎总是为空字符串
imgstr文章封面图片的URL
urlstr文章页面的URL
orderstr文章滚动的排序值范围为1-10

data对象→icon数组→对象:

字段类型内容备注
icon_idstr待调查
imgstr图标URL
urlstr该图标将会跳转至的URL
titlestr二维码下方按钮的文本
tittlestrtitle字段的内容相同
qr_imgstr二维码图片URL
qr_descstr二维码下方描述的文本
img_hoverstr鼠标悬停时显示图标的URL
other_linksarr待调查似乎总是为空数组
linksarr二维码下方按钮的跳转URL
icon_linkstr待调查总是为空字符串

data对象→icon数组→对象→links数组→对象:

字段类型内容备注
titlestr按钮内文本
urlstr按钮将跳转的URL

data对象→post数组→对象:

字段类型内容备注
post_idstr待调查
typestr米游社文章类型
titlestr文章标题
show_timestr文章发布的时间格式为“月/日”
urlstr文章链接
tittlestrtitle字段的内容相同
orderstr列表排序值范围为1-12

data对象→qq数组→对象:

字段类型内容备注
qq_idstr待调查
numberstrQQ群号
namestrQQ群名称
codestrQQ群URLURL经过Unicode转义

data对象→links对象:

字段类型内容备注
faqstr常见问题页面的URL
versionstr待调查总是为1
查看示例
{
  "retcode": 0,
  "message": "OK",
  "data": {
    "adv": {
      "background": "https://launcher-webstatic.mihoyo.com/launcher-public/2023/08/14/7f92b296633974293b1cc9ced73952f9_2267874619055857570.png",
      "icon": "https://launcher-webstatic.mihoyo.com/launcher-public/2023/08/14/5d0d835da94aaf76f6c41a0a51cd51af_3635147868632833439.png",
      "url": "https://webstatic.mihoyo.com/ys/event/e20210601blue_post/vert.html?page_sn=d5dda66067224184\\u0026bbs_presentation_style=fullscreen\\u0026utm_source=game\\u0026utm_medium=ys\\u0026utm_campaign=bt",
      "version": "308",
      "bg_checksum": "8b375f844058d43255c33e2e4e71483a"
    },
    "banner": [
      {
        "banner_id": "64df45b948f1ddd6ee9b3fd2",
        "name": "",
        "img": "https://launcher-webstatic.mihoyo.com/launcher-public/2023/08/18/7c65cb9f5367e6b06ae1051c2c16f3a2_7403794543422733768.jpg",
        "url": "https://www.miyoushe.com/ys/article/42537480",
        "order": "7"
      },
      ...
    ],
    "icon": [
      {
        "icon_id": "5f5b7ca3b10d9a70d0e47d86",
        "img": "https://webstatic.mihoyo.com/upload/operation_location/2020/09/11/41dbaf011ef6fd782450e6b59255d410_2396120149109972020.png",
        "tittle": "加入QQ群",
        "url": "https://ys.mihoyo.com/launcher/18/zh-cn/qq?api_url=https%3A%2F%2Fapi-sdk.mihoyo.com%2Fhk4e_cn\\u0026prev=false",
        "qr_img": "",
        "qr_desc": "",
        "img_hover": "https://webstatic.mihoyo.com/upload/operation_location/2020/09/11/d9b6a36596d49e8c2b262f3db8b271d9_6971507594010738352.png",
        "other_links": [],
        "title": "加入QQ群",
        "icon_link": "https://ys.mihoyo.com/launcher/18/zh-cn/qq?api_url=https%3A%2F%2Fapi-sdk.mihoyo.com%2Fhk4e_cn\\u0026prev=false",
        "links": [
          {
            "title": "加入QQ群",
            "url": "https://ys.mihoyo.com/launcher/18/zh-cn/qq?api_url=https%3A%2F%2Fapi-sdk.mihoyo.com%2Fhk4e_cn\\u0026prev=false"
          },
          ...
        ]
      },
      ...
    ],
    "post": [
      {
        "post_id": "64e587f248f1ddd6ee9b3fe9",
        "type": "POST_TYPE_INFO",
        "tittle": "《原神》枫丹实机画面展示片|Gamescom 2023",
        "url": "https://www.miyoushe.com/ys/article/42711525",
        "show_time": "08/23",
        "order": "11",
        "title": "《原神》枫丹实机画面展示片|Gamescom 2023"
      },
      ...
    ],
    "qq": [
      {
        "qq_id": "5fe2a761b15384c3e4621420",
        "name": "原神官方玩家群11",
        "number": "512047400",
        "code": "https://jq.qq.com/?_wv=1027\\u0026k=4dhAg811"
      },
      ...
    ],
    "more": {
      "activity_link": "",
      "announce_link": "",
      "info_link": "",
      "news_link": "",
      "trends_link": "",
      "supply_link": "",
      "tools_link": ""
    },
    "links": {
      "faq": "https://bbs.mihoyo.com/ys/article/4004423",
      "version": "1"
    }
  }
}

获取游戏资源文件信息

请求方式:GET

《原神》国服:https://sdk-static.mihoyo.com/hk4e_cn/mdk/launcher/api/resource

《原神》国际服:https://hk4e-launcher-static.hoyoverse.com/hk4e_global/mdk/launcher/api/resource

《原神》国际服:https://sdk-os-static.mihoyo.com/hk4e_global/mdk/launcher/api/resource

《崩坏:星穹铁道》国服:https://api-launcher.mihoyo.com/hkrpg_cn/mdk/launcher/api/resource

《崩坏:星穹铁道》国际服:https://hkrpg-launcher-static.hoyoverse.com/hkrpg_global/mdk/launcher/api/resource

《崩坏3》国服:https://bh3-launcher-static.mihoyo.com/bh3_cn/mdk/launcher/api/resource

《崩坏3》国际服:https://sdk-os-static.mihoyo.com/bh3_global/mdk/launcher/api/resource

参数:

字段类型内容备注
keystr启动器Key
launcher_idnum启动器ID

JSON返回:

根对象:

字段类型内容备注
retcodenum返回码
messagestr返回消息
dataobj资源信息

data对象:

字段类型内容备注
gameobj游戏主要资源信息
pluginobj游戏运行库信息
web_urlstr启动器下载页面URL
force_update待调查
pre_download_game预下载资源信息
sdk待调查
deprecated_packagesarr已弃用游戏资源文件的文件名与MD5值
deprecated_filesarr已弃用游戏文件的文件名与MD5值

data对象→game对象:

字段类型内容备注
latestobj最新版本文件信息
diffsarr一些旧版本至当前版本的增量文件信息

data对象→game对象→latest对象:

字段类型内容备注
versionstr最新游戏版本
namestr文件名称总是为空字符串
pathstr空字符串根据diffs数组→对象→path字段的规律,本应为文件URL,但是被segments字段取代
sizestr文件解压后的大小
md5str该文件的MD5值
voice_packsarr所有语音包信息《崩坏:星穹铁道》为空数组
decompressed_pathstr待调查
segmentsarr游戏资源压缩文件各分卷的信息《崩坏:星穹铁道》为空数组
package_sizestr压缩包文件大小
entrystr游戏启动程序的文件名

data对象→game对象→latest对象→voice_packs数组→对象:

字段类型内容备注
languagestr语音资源对应的语言代码
pathstr该资源文件的URL
namestr语音包文件名称总是为空字符串
sizestr文件解压后的大小
package_sizestr压缩包文件大小
md5str文件的MD5值

data对象→game对象→latest对象→segments数组→对象:

字段类型内容备注
pathstr该资源文件的URL
md5str文件的MD5值
package_sizestr压缩包文件大小

data对象→game对象→diffs数组→对象:

字段类型内容备注
namestr文件名
versionstr该增量包修补的旧版本
pathstr该增量包的URL
sizestr文件解压后的大小
md5str文件的MD5值
package_sizestr压缩包文件大小
is_recommended_updatebool待调查
voice_packsobj所有语音增量包信息《崩坏:星穹铁道》为空

data对象→game对象→diffs数组→voice_packs数组→对象:

data对象→game对象→latest对象→voice_packs数组→对象的结构相同

data对象→plugin对象:

字段类型内容备注
pluginsarr运行库信息
versionstr运行库版本

data对象→plugin对象→plugins数组→对象:

字段类型内容备注
namestr运行库文件名
pathstr运行库文件URL
md5str文件的MD5值
versionstr该文件的版本总是为空字符串
sizestr文件大小
entrystr运行库安装程序的文件名可能为空字符串

data对象→pre_download_game对象:

data对象→game对象的结构相同

data对象→game对象→deprecated_packages数组→对象:

字段类型内容备注
namestr文件名
md5str文件的MD5值

data对象→game对象→deprecated_files数组→对象:

data对象→game对象→deprecated_packages数组→对象的结构相同

查看示例
{
  "retcode": 0,
  "message": "OK",
  "data": {
    "game": {
      "latest": {
        "name": "",
        "version": "4.0.0",
        "path": "",
        "size": "120599654462",
        "md5": "3c70931b5ae61d89abe0403dff2365ef",
        "entry": "YuanShen.exe",
        "voice_packs": [
          {
            "language": "zh-cn",
            "name": "",
            "path": "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230804185703_R1La3H9xIH1hBiHJ/Audio_Chinese_4.0.0.zip",
            "size": "22459851756",
            "md5": "690b7cf26d12ffdad839027f2ed75914",
            "package_size": "11224682998"
          },
          ...
        ],
        "decompressed_path": "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230804185703_R1La3H9xIH1hBiHJ/ScatteredFiles",
        "segments": [
          {
            "path": "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230804185703_R1La3H9xIH1hBiHJ/YuanShen_4.0.0.zip.001",
            "md5": "7da1c2721272ffa2d0df2a14ca9b7885",
            "package_size": "10737418240"
          },
          ...
        ],
        "package_size": "60294584351"
      },
      "diffs": [
        {
          "name": "game_3.8.0_4.0.0_hdiff_h2FAbmpdS1P3OQ6r.zip",
          "version": "3.8.0",
          "path": "https://autopatchcn.yuanshen.com/client_app/update/hk4e_cn/18/game_3.8.0_4.0.0_hdiff_h2FAbmpdS1P3OQ6r.zip",
          "size": "67793295222",
          "md5": "42BA351D7B2ED6058E3BC19AC88EF639",
          "is_recommended_update": false,
          "voice_packs": [
            {
              "language": "zh-cn",
              "name": "zh-cn_3.8.0_4.0.0_hdiff_q7JUo5yfuLOYZVFE.zip",
              "path": "https://autopatchcn.yuanshen.com/client_app/update/hk4e_cn/18/zh-cn_3.8.0_4.0.0_hdiff_q7JUo5yfuLOYZVFE.zip",
              "size": "1436148319",
              "md5": "30438FBF20AE9C7706D78C76DBBA38AF",
              "package_size": "658001593"
            },
            ...
          ],
          "package_size": "33699060276"
        },
        ...
      ]
    },
    "plugin": {
      "plugins": [
        {
          "name": "DXSETUP.zip",
          "version": "",
          "path": "https://autopatchcn.yuanshen.com/client_app/plugins/DXSETUP.zip",
          "size": "100647892",
          "md5": "CA2AC3835D7D7DA6CB8624FEFB177083",
          "entry": "",
          "package_size": "0"
        },
        ...
      ],
      "version": "1"
    },
    "web_url": "https://ys.mihoyo.com/launcher",
    "force_update": null,
    "pre_download_game": null,
    "deprecated_packages": [
      {
        "name": "YuanShen_4.0.0.zip.001",
        "md5": "7da1c2721272ffa2d0df2a14ca9b7885"
      },
      ...
    ],
    "sdk": null,
    "deprecated_files": [
      {
        "name": "YuanShen_Data/Plugins/PCGameSDK.dll",
        "md5": ""
      },
      ...
    ]
  }
}

获取用户协议

请求方式:GET

《原神》国服:https://sdk-static.mihoyo.com/hk4e_cn/mdk/launcher/api/protocol

《原神》国际服:https://hk4e-launcher-static.hoyoverse.com/hk4e_global/mdk/launcher/api/protocol

《崩坏:星穹铁道》国服:https://api-launcher.mihoyo.com/hkrpg_cn/mdk/launcher/api/protocol

参数:

字段类型内容备注
keystr启动器Key
launcher_idnum启动器ID
languagestr返回文本语言的国家代码国服仅支持中文(zh-cn)

JSON返回:

根对象:

字段类型内容备注
retcodenum返回码
messagestr返回消息
dataobj用户协议以及用户协议版本若请求参数中的language为不支持的语言,则所有数据均为空与空数组

data对象:

字段类型内容备注
protocolstr用户协议为HTML
titlestr用户协议标题
agreement_versionstr用户协议版本一般为当前游戏版本
查看示例
{
    "retcode": 0,
    "message": "OK",
    "data": {
        "protocol": "<p style=\"white-space: pre-wrap;\"><span style=\"color:rgba(0,0,0,1)\">Effective Date: July 5, 2023</span></p>\n\n<p style=\"white-space: pre-wrap; min-height: 1.5em; text-align: justify;\"><span style=\"color:rgba(0,0,0,1)\"> </span></p>\n\n<p style=\"white-space: pre-wrap; text-align: justify;\"><span style=\"color:rgba(0,0,0,1)\">PLEASE READ THESE TERMS OF SERVICE CAREFULLY, INCLUDING OUR PRIVACY POLICY.</span></p>\n\n<p style=\"white-space: pre-wrap; text-align: justify;\"><span style=\"color:rgba(0,0,0,1)\">This Terms of Service (&#34;Agreement&#34;) is a legally binding agreement between COGNOSPHERE PTE. LTD. (&#34;COGNOSPHERE,&#34; &#34;we,&#34; &#34;our,&#34; or &#34;us&#34;) and you (&#34;you&#34; or &#34;User&#34;). This Agreement governs your use of or access to COGNOSPHERE Game(s), our online website, any game-specific site, software systems, customer support, social media, community channels and/or any other online services provided by COGNOSPHERE and by any of our authorized third party (collectively the &#34;COGNOSPHERE ...",
        "title": "Terms of Service",
        "agreement_version": "4.0"
    }
}