https://xxyh.xiaoli.icu/api/p_lol_match.phphttps://xxyh.xiaoli.icu/api/p_lol_match.php?region=kr&action=profile&count=5英雄联盟海外服战绩查询,数据来自 Riot 官方 API(Data Dragon 之外的正式数据接口)。
【密钥】由站长在后台「API 广场 → LOL 战绩设置」配置一次 Riot API Key,调用方无需也不应传密钥;未配置时返回 code=503。
【服区】' . kr(韩服)/jp(日服)/tw(台服)/na(北美)/euw(西欧)/eun(东欧)/br(巴西)/oce(大洋洲)/tr(土耳其)/ru(俄罗斯)/sg(新加坡) . '。注意:Riot 官方 API 不覆盖国服(腾讯服),国服请用「LOL 国服战绩说明」接口或客户端/WeGame 查询。
【Riot ID】新版本用「游戏名#标签」,例如 Faker#KR1;分别传 name=Faker 与 tag=KR1,或直接传 riot_id=Faker%23KR1(# 需 URL 编码为 %23)。
【action】
· profile:召唤师等级、头像 ID、各队列段位(单双排/灵活排),胜率。
· matches:最近 count 场的对局 ID 列表。
· detail:指定 matchId 的单场详情,只摘该玩家数据(KDA/补刀/伤害/装备/位置)。
· recent:最近 count 场精简战绩 + 汇总(胜率/场均KDA),一次返回,推荐。
【返回】code=200 为成功,data 随 action 不同;密钥无效 403、限流 429、未找到 404 均返回友好中文提示。
【说明】战绩实时查询不缓存;Riot 免费密钥有速率限制,请勿高频调用(建议 count≤10)。英雄中文对照可用本系统「LOL 英雄图鉴」接口按 key 反查。
响应示例为 action=profile。
| 参数名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
region |
string | 选填 | kr | 大区:kr(韩服)/jp(日服)/tw(台服)/na(北美)/euw(西欧)/eun(东欧)/br(巴西)/oce(大洋洲)/tr(土耳其)/ru(俄罗斯)/sg(新加坡),默认 kr |
name |
string | 选填 | — | Riot ID 游戏名(与 tag 一起传);也可直接传 riot_id=游戏名#标签 |
tag |
string | 选填 | — | Riot ID 标签(# 后面的部分,如 NA1、KR、EUW2) |
riot_id |
string | 选填 | — | 完整 Riot ID「游戏名#标签」,传了它可省略 name/tag |
action |
string | 选填 | profile | profile=段位档案(默认)/matches=对局ID列表/detail=单场详情/recent=最近N场战绩汇总 |
count |
int | 选填 | 5 | matches/recent 取最近几场,1~20,默认 5 |
matchId |
string | 选填 | — | action=detail 时的对局 ID(可从 matches 获取) |
https://xxyh.xiaoli.icu/api/p_lol_match.php
此处将显示接口返回结果…
{
"code": 200,
"msg": "ok",
"data": {
"riotId": "Faker#KR1",
"puuid": "xxxx...",
"region": "kr",
"regionName": "韩服",
"platform": "kr",
"summoner": { "name": "Faker", "level": 512, "icon": 586 },
"ranks": [
{ "queueType": "RANKED_SOLO_5x5", "tier": "CHALLENGER", "rank": "I",
"leaguePoints": 812, "wins": 320, "losses": 180, "winRate": 64.0 }
]
}
}
—