王者战力查询-API接口
正常 需密钥调用免费
接口信息
总调用次数: 66
所属分类: 查询
请求方式: GET
响应格式: JSON
添加时间: 2026-05-24
更新时间: 2026-06-16
接口描述: 查看各区王者英雄最高战力
请求信息
请求地址
https://api.key5.site/API/king/index.php
示例地址
https://api.key5.site/API/king/index.php?hero=孙悟空
请求参数
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
apikey |
string | 是 | 密钥 |
msg |
string | 是 | 英雄名 |
返回示例
{
"code": 1,
"message": "Success/成功",
"data": {
"安卓-扣扣区": {
"uid": "167",
"name": "孙悟空",
"alias": "齐天大圣-孙悟空",
"photo": "https://game.gtimg.cn/images/yxzj/img201606/heroimg/167/167.jpg",
"province": "香港",
"provincePower": "8522",
"city": "淄博市",
"cityPower": "6473",
"area": "满城区",
"areaPower": "4318",
"guobiao": "12584",
"stamp": "1777221648",
"updatetime": "2026/04/27 00:40:48"
},
"安卓-微信区": {
"uid": "167",
"name": "孙悟空",
"alias": "齐天大圣-孙悟空",
"photo": "https://game.gtimg.cn/images/yxzj/img201606/heroimg/167/167.jpg",
"province": "台湾省",
"provincePower": "4342",
"city": "三门峡市",
"cityPower": "2000",
"area": "绛县",
"areaPower": "1000",
"guobiao": "10208",
"stamp": "1777230471",
"updatetime": "2026/04/27 03:07:51"
},
"苹果-扣扣区": {
"uid": "167",
"name": "孙悟空",
"alias": "齐天大圣-孙悟空",
"photo": "https://game.gtimg.cn/images/yxzj/img201606/heroimg/167/167.jpg",
"province": "香港",
"provincePower": "7106",
"city": "营口市",
"cityPower": "5039",
"area": "旌德县",
"areaPower": "1700",
"guobiao": "11230",
"stamp": "1777217836",
"updatetime": "2026/04/26 23:37:16"
},
"苹果-微信区": {
"uid": "167",
"name": "孙悟空",
"alias": "齐天大圣-孙悟空",
"photo": "https://game.gtimg.cn/images/yxzj/img201606/heroimg/167/167.jpg",
"province": "香港",
"provincePower": "7010",
"city": "阳泉市",
"cityPower": "4601",
"area": "神池县",
"areaPower": "1147",
"guobiao": "10986",
"stamp": "1777213996",
"updatetime": "2026/04/26 22:33:16"
}
}
}
状态码说明
| 状态码 | 说明 |
|---|---|
| 200 | 请求成功,服务器已成功处理了请求。 |
| 403 | 服务器拒绝请求。这可能是由于缺少必要的认证凭据(如API密钥)或权限不足。 |
| 404 | 请求的资源未找到。请检查您的请求地址是否正确。 |
| 429 | 请求过于频繁。您已超出速率限制,请稍后再试。 |
| 500 | 服务器内部错误。服务器在执行请求时遇到了问题。 |
调用示例
<?php
$url = 'https://api.key5.site/API/king/index.php';
$params = [
'apikey' => 'YOUR_VALUE',
'msg' => 'YOUR_VALUE',
];
$url .= '?' . http_build_query($params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = "https://api.key5.site/API/king/index.php"
params = {
"apikey": "YOUR_VALUE",
"msg": "YOUR_VALUE",
}
response = requests.get(url, params=params)
print(response.text)
const url = new URL('https://api.key5.site/API/king/index.php');
const params = {
'apikey': 'YOUR_VALUE',
'msg': 'YOUR_VALUE',
};
Object.keys(params).forEach(key => {
url.searchParams.append(key, params[key]);
});
fetch(url)
.then(response => response.text())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl "https://api.key5.site/API/king/index.php?apikey=YOUR_VALUE&msg=YOUR_VALUE"