接口大厅/王者战力查询
01
Request Info
请求信息
Endpoint
GET
https://cyapi.top/API/wzry_zhanli.php
Example
https://cyapi.top/API/wzry_zhanli.php?heroId=105&plat=qq
02
Parameters
2 params| Name | Type | Required | Description |
|---|---|---|---|
| heroId | string | 是 | 英雄id,访问英雄列表接口可获取 |
| plat | string | 否 | 查询的平台,支持qq,vx,ios_qq,ios_vx |
03
Status Codes
状态码| Code | Meaning |
|---|---|
| 200 | 请求成功 |
| 403 | 无权限或密钥无效 |
| 404 | 接口不存在或参数错误 |
| 429 | 请求过于频繁,已达限额 |
| 500 | 服务器内部错误 |
04
Online Test
在线测试请求参数
响应结果
点击「立即测试」查看接口返回结果
05
Code Examples
调用示例<?php $url = 'https://cyapi.top/API/wzry_zhanli.php?heroId=' . urlencode($params['heroId']) . '&plat=' . urlencode($params['plat'])'; $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://cyapi.top/API/wzry_zhanli.php'
params = {
'heroId': '105',
'plat': 'qq'
}
response = requests.get(url, params=params)
print(response.text)
const url = new URL('https://cyapi.top/API/wzry_zhanli.php');
const params = new URLSearchParams();
params.append('heroId', '105');
params.append('plat', 'qq');
url.search = params.toString();
fetch(url)
.then(res => res.text())
.then(data => console.log(data));