Riot Login 指南
Riot Login 基于 Preflight 获取 rqdata 与提交验证流程
快速开始:免费注册获取 User-Token → | 请求头可填
Developer-Id: hqLmMS最近更新:2026-03-11
重要:如何获取 rqdata?
第一步:从 Preflight 预请求接口获取地区、UA 与 sdkVersion
JSON
{
"success": true,
"data": {
"preflight_uuid": "b5e404b6-55ca-4672-a83f-9a5f3e2e9882",
"data": {
"region": "US",
"navigator": {
"userAgent": "..."
},
"sdkVersion": "25.11.1.0"
}
}
}第二步:根据返回的 UA 区分不同方式获取 rqdata
A. 客户端 UA(Client UA)
示例:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) riot-client-ux/120.0.0 Chrome/108.0.5359.215 Electron/22.3.27 Safari/537.36
TEXT
POST https://authenticate.riotgames.com/api/v1/login
## 将 {sdkVersion} 替换为 preflight 返回的实际 sdkVersion
headers:
Host: authenticate.riotgames.com
Accept-Encoding: deflate, gzip, zstd
user-agent: RiotGamesApi/{sdkVersion} (Windows;10;;Enterprise, x64) riot-client/0
Accept: application/json
Content-Type: application/json
baggage: sdksid=394cd6c3-88ff-ad4a-9b53-9d0cbdabbfaa
traceparent: 00-bb48251ac0381a46875ef973ce68bd5b-4d5e838356e20349-00
{
"apple": null,
"campaign": null,
"clientId": "riot-client",
"code": null,
"facebook": null,
"gamecenter": null,
"google": null,
"language": "en_GB",
"mockDeviceId": null,
"mockPlatform": null,
"multifactor": null,
"nintendo": null,
"platform": "windows",
"playstation": null,
"qrcode": null,
"remember": false,
"riot_identity": {
"captcha": null,
"password": null,
"state": "auth",
"username": null
},
"riot_identity_signup": null,
"rso": null,
"sdkVersion": "25.11.1.0",
"type": "auth",
"xbox": null
}获取到 hcaptchaToken 后提交登录请求:
TEXT
POST https://authenticate.riotgames.com/api/v1/login
## 将 {sdkVersion} 替换为 preflight 返回的实际 sdkVersion
headers:
Host: authenticate.riotgames.com
Accept-Encoding: deflate, gzip, zstd
user-agent: RiotGamesApi/{sdkVersion} (Windows;10;;Enterprise, x64) riot-client/0
Accept: application/json
Content-Type: application/json
baggage: sdksid=394cd6c3-88ff-ad4a-9b53-9d0cbdabbfaa
traceparent: 00-bb48251ac0381a46875ef973ce68bd5b-4d5e838356e20349-00
{
"campaign": null,
"language": "en_GB",
"remember": false,
"riot_identity": {
"captcha": "hcaptcha " + hcaptchaToken,
"password": pwd,
"state": null,
"username": usr
},
"type": "auth"
}B. 网页端 UA(Web UA)
示例:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
按常规浏览器网页流程获取 rqdata 即可。
重要:传入 confirm 参数
TEXT
POST http://api.nocaptcha.io/api/wanda/hcaptcha/universal
{
"sitekey": "019....",
"confirm": "v1.0.1"
}传入正确的 confirm 参数表示你已确认按上述方式正确获取 rqdata。
准备接入 Riot Login 指南? 免费注册获取 API Key → | 查看服务目录与状态 →