查看各区王者英雄最高战力
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 是 | 接口调用密钥 | |
| hero | string | 是 | 王者英雄名 | 孙悟空 |
| type | string | 否 | 输出格式默认json,可选json/text | json |
| id | string | 否 | 查询方式:1=默认查询(默认选择id=1) 2=备用查询 | 1 |
[
{
"name": "key",
"type": "string",
"required": true,
"description": "接口调用密钥",
"example": ""
},
{
"name": "hero",
"type": "string",
"required": true,
"description": "王者英雄名",
"example": "孙悟空"
},
{
"name": "type",
"type": "string",
"required": false,
"description": "输出格式默认json,可选json/text",
"example": "json"
},
{
"name": "id",
"type": "string",
"required": false,
"description": "查询方式:1=默认查询(默认选择id=1) 2=备用查询",
"example": "1"
}
]
{
"openapi": "3.1.1",
"info": {
"title": "王者战力查询",
"description": "查看各区王者英雄最高战力",
"version": "1.0.0"
},
"paths": {
"/api/yljk/wzzlcx/api.php": {
"get": {
"summary": "王者战力查询",
"description": "查看各区王者英雄最高战力",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "hero",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "孙悟空"
},
"description": "王者英雄名"
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "json"
},
"description": "输出格式默认json,可选json/text"
},
{
"name": "id",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "1"
},
"description": "查询方式:1=默认查询(默认选择id=1) 2=备用查询"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"summary": "王者战力查询",
"description": "查看各区王者英雄最高战力",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "hero",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "孙悟空"
},
"description": "王者英雄名"
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "json"
},
"description": "输出格式默认json,可选json/text"
},
{
"name": "id",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "1"
},
"description": "查询方式:1=默认查询(默认选择id=1) 2=备用查询"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https://api.317ak.com",
"description": "当前访问入口(https)"
}
]
}
{
"code": 1,
"message": "Success/成功",
"data": {
"安卓-扣扣区": {
"uid": "167",
"name": "孙悟空",
"alias": "齐天大圣-孙悟空",
"platform": "安卓-扣扣区",
"photo": "https://game.gtimg.cn/images/yxzj/img201606/heroimg/167/167.jpg",
"province": "北京市",
"provincePower": "7336",
"city": "黄山市",
"cityPower": "5793",
"area": "平顺县",
"areaPower": "3873",
"guobiao": "9394",
"stamp": "1790519863",
"updatetime": "2026/09/27 22:37:43"
},
"安卓-微信区": {
"uid": "167",
"name": "孙悟空",
"alias": "齐天大圣-孙悟空",
"platform": "安卓-微信区",
"photo": "https://game.gtimg.cn/images/yxzj/img201606/heroimg/167/167.jpg",
"province": "澳门",
"provincePower": "6624",
"city": "池州市",
"cityPower": "4750",
"area": "白杨",
"areaPower": "1545",
"guobiao": "9113",
"stamp": "1790523742",
"updatetime": "2026/09/27 23:42:22"
},
"苹果-扣扣区": {
"uid": "167",
"name": "孙悟空",
"alias": "齐天大圣-孙悟空",
"platform": "苹果-扣扣区",
"photo": "https://game.gtimg.cn/images/yxzj/img201606/heroimg/167/167.jpg",
"province": "澳门",
"provincePower": "6380",
"city": "嘉峪关市",
"cityPower": "4453",
"area": "繁昌区",
"areaPower": "1000",
"guobiao": "8876",
"stamp": "1790515971",
"updatetime": "2026/09/27 21:32:51"
},
"苹果-微信区": {
"uid": "167",
"name": "孙悟空",
"alias": "齐天大圣-孙悟空",
"platform": "苹果-微信区",
"photo": "https://game.gtimg.cn/images/yxzj/img201606/heroimg/167/167.jpg",
"province": "澳门",
"provincePower": "6142",
"city": "铜川市",
"cityPower": "4075",
"area": "内丘县",
"areaPower": "1000",
"guobiao": "8699",
"stamp": "1790514553",
"updatetime": "2026/09/27 21:09:13"
}
}
}
查询指定王者英雄在各区的最高战力及相关排名信息。适用于需要获取王者荣耀英雄战力数据的开发者和应用。
https://api-v2.317ak.com/api/yljk/wzzlcx/api.php
支持 GET 和 POST 请求,用于查询王者英雄在各区的最高战力。请求时需提供英雄名称。
调用时必须提供密钥,通过 URL 查询参数 key 传递。
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
key |
string | 是 | 接口调用密钥,使用查询参数 key 传递。 |
hero |
string | 是 | 王者英雄名,例如:孙悟空。 |
type |
string | 否 | 输出格式,默认值为 json,可选 json 或 text。 |
id |
string | 否 | 查询方式选择参数;未传入时使用默认查询方式。 |
{
"code": 1,
"message": "Success/成功",
"data": {
"安卓-扣扣区": {
"uid": "167",
"name": "孙悟空",
"alias": "齐天大圣-孙悟空",
"platform": "安卓-扣扣区",
"photo": "https://game.gtimg.cn/images/yxzj/img201606/heroimg/167/167.jpg",
"province": "北京市",
"provincePower": "7336",
"city": "黄山市",
"cityPower": "5793",
"area": "平顺县",
"areaPower": "3873",
"guobiao": "9394",
"stamp": "1790519863",
"updatetime": "2026/09/27 22:37:43"
},
"安卓-微信区": {
"uid": "167",
"name": "孙悟空",
"alias": "齐天大圣-孙悟空",
"platform": "安卓-微信区",
"photo": "https://game.gtimg.cn/images/yxzj/img201606/heroimg/167/167.jpg",
"province": "澳门",
"provincePower": "6624",
"city": "池州市",
"cityPower": "4750",
"area": "白杨",
"areaPower": "1545",
"guobiao": "9113",
"stamp": "1790523742",
"updatetime": "2026/09/27 23:42:22"
},
"苹果-扣扣区": {
"uid": "167",
"name": "孙悟空",
"alias": "齐天大圣-孙悟空",
"platform": "苹果-扣扣区",
"photo": "https://game.gtimg.cn/images/yxzj/img201606/heroimg/167/167.jpg",
"province": "澳门",
"provincePower": "6380",
"city": "嘉峪关市",
"cityPower": "4453",
"area": "繁昌区",
"areaPower": "1000",
"guobiao": "8876",
"stamp": "1790515971",
"updatetime": "2026/09/27 21:32:51"
},
"苹果-微信区": {
"uid": "167",
"name": "孙悟空",
"alias": "齐天大圣-孙悟空",
"platform": "苹果-微信区",
"photo": "https://game.gtimg.cn/images/yxzj/img201606/heroimg/167/167.jpg",
"province": "澳门",
"provincePower": "6142",
"city": "铜川市",
"cityPower": "4075",
"area": "内丘县",
"areaPower": "1000",
"guobiao": "8699",
"stamp": "1790514553",
"updatetime": "2026/09/27 21:09:13"
}
}
}
| 字段 | 类型 | 说明 |
|---|---|---|
code |
integer | 请求状态标识。 |
message |
string | 请求处理结果信息。 |
data |
object | 各平台分区的英雄战力数据集合,键名为平台分区名称。 |
data.{platform}.uid |
string | 英雄编号。 |
data.{platform}.name |
string | 英雄名称。 |
data.{platform}.alias |
string | 英雄别名。 |
data.{platform}.platform |
string | 平台分区名称。 |
data.{platform}.photo |
string | 英雄头像地址。 |
data.{platform}.province |
string | 省级地区名称。 |
data.{platform}.provincePower |
string | 省级战力值。 |
data.{platform}.city |
string | 城市名称。 |
data.{platform}.cityPower |
string | 城市战力值。 |
data.{platform}.area |
string | 区县名称。 |
data.{platform}.areaPower |
string | 区县战力值。 |
data.{platform}.guobiao |
string | 英雄标识战力值。 |
data.{platform}.stamp |
string | 数据时间戳。 |
data.{platform}.updatetime |
string | 数据更新时间,格式为 YYYY/MM/DD HH:mm:ss。 |
接口发生业务错误时,返回 JSON 错误信息:
{"code":0,"msg":"未提供调用密钥","errcode":11001}
| errcode | 含义 |
|---|---|
| 11001 | 未提供调用密钥 |
| 11002 | 密钥错误 |
| 11003 | 密钥已禁用 |
| 11004 | 积分余额不足 |
| 11005 | 请求过于频繁(QPM 限制) |
| 11006 | 接口维护中 |
| 11007 | 接口已禁用 |
| 11008 | 接口不可用 |
| 11009 | 密钥校验暂不可用 |
| 11010 | 积分系统暂不可用 |
| 11011 | 收费接口须提供有效密钥 |
| 11012 | 鉴权方式错误 |
| 11013 | 接口不存在 |
| 11014 | ***地址无效 |
| 11015 | ***地址不允许 |
| 11016 | ***请求失败 |
| 11017 | 服务暂不可用 |
| 11018 | 请求方式不允许 |
| 11019 | 当前 IP 不在白名单内 |
| 11020 | 启用出口代理须提供有效密钥 |
| 11021 | 未配置可用出口代理 |
| 11022 | 出口代理不可用 |
| 11023 | 密钥已过期 |
| 11024 | 令牌分配积分不足 |
将示例中的 请替换为你的密钥 换成实际密钥。以下请求查询孙悟空各区战力,并以 JSON 格式返回结果。
curl --get 'https://api-v2.317ak.com/api/yljk/wzzlcx/api.php' \
--data-urlencode 'key=请替换为你的密钥' \
--data-urlencode 'hero=孙悟空' \
--data-urlencode 'type=json'
// PHP
$url = 'https://api-v2.317ak.com/api/yljk/wzzlcx/api.php';
$query = http_build_query([
'key' => '请替换为你的密钥',
'hero' => '孙悟空',
'type' => 'json',
]);
$curl = curl_init($url . '?' . $query);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
key 查询参数传递,并妥善保管;不要将密钥写入公开网页、客户端代码或可被他人访问的日志中。hero 已提供,并填写有效的王者英雄名,例如 孙悟空。type 可选,支持 json 或 text,默认返回 json。id 可选,默认使用 1;需要备用查询方式时传入 2。传入其他值时可能无法按预期查询。curl -G 'https://api-v2.317ak.com/api/yljk/wzzlcx/api.php' \
--data-urlencode 'key=YOUR_API_KEY' \
--data-urlencode 'hero=孙悟空' \
--data-urlencode 'type=json' \
--data-urlencode 'id=1'