menu 王者营地主页

更新日志

brightness_4 more_vert

查看营地主页详细内容

equalizer 累计使用:8098

short_text 接口文档 http 状态码 code 示例代码
编辑接口
接口信息
名称不能为空
请填写接口名称
介绍不能为空
请填写接口介绍
地址不能为空
请填写完整路径,包含http协议头
参数不能为空
格式:参数名=参数值&参数名=参数值(用于在接口文档展示)
请求方式

请求参数
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍


返回参数
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍


状态代码




short_text 请求说明

请求地址  https://api.yujn.cn/api/wzyd.php  

请求示例  https://api.yujn.cn/api/wzyd.php?type=json&id=2126732686

请求方式   GET

返回格式  JSON

short_text 返回示例
{
    "code": 201,
    "msg": "你输入的参数有误,或稍后再试!"
}

short_text 请求参数
参数名称 是否必需 参数说明
type 返回格式(text/json)默认json
id 王者营地id
short_text 返回参数
参数名称 参数类型 参数说明
code integer 状态码200正常/201错误
userId string 营地id
roleId string 战绩id
roleName string 游戏昵称
cover string 头像
ip string 归属地
roleJobIcon string 段位图片
starImg string 星星图片
rankingStar integer 星星数量
level integer 等级
roleJobName string 段位
areaName string 平台
serverName string 游戏大区
fighting string 战力数
totalBattleCoun string 游戏次数
mvpNum string mvp次数
winRate string 胜率
heroNum string 英雄数
skinNum string 皮肤数

short_text 更新时间

更新时间  2024-02-16 17:17:07

系统状态

状态码 状态说明
400 请求错误
403 请求被服务器拒绝
404 请求服务器失败
500 服务器错误
503 服务器维护






PHP


GET方法

$url = 'https://api.yujn.cn/api/wzyd.php';
$data = '?type=json&id=2126732686';
$get = $url.$data;
$result = file_get_contents($get);
if ($result) {
  //成功
  echo $result;
} else {
  //失败
}

POST方法

$url = 'https://api.yujn.cn/api/wzyd.php';
$data = array(
  'type' => 'json',
  'id' => '2126732686',
);
$data = http_build_query($data); $option = array('http'=>array('method'=>'POST','content'=>$data)); $context = stream_context_create($option); $result = file_get_contents($url,false,$context); if ($result) { //成功 echo $result; } else { //失败 }

JavaScript


GET方法

var url = "https://api.yujn.cn/api/wzyd.php"
var data = "?type=json&id=2126732686"
var xhrGet = new XMLHttpRequest();
xhrGet.open('GET', url + data, true);
xhrGet.send();
xhrGet.onreadystatechange = function() {
    if (xhrGet.readyState == 4 && xhrGet.status == 200) {
        //成功
        var result = xhrGet.responseText;
        console.log(result);
    } else {
        //失败
    }
};

POST方法

var url = "https://api.yujn.cn/api/wzyd.php"
var data = "type=json&id=2126732686"
var xhrPost = new XMLHttpRequest();
xhrPost.open('POST', url, true);
xhrPost.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhrPost.send(data);
xhrPost.onreadystatechange = function() {
    if (xhrPost.readyState == 4 && xhrPost.status == 200) {
        //成功
        var result = xhrPost.responseText;
        console.log(result);
    } else {
        //失败
    }
};

JAVA


GET方法

new Thread(){
  public void run() {
    String path = "https://api.yujn.cn/api/wzyd.php";
    String data = "?type=json&id=2126732686";      
     try {
        URL url = new URL(path + data);
        HttpURLConnection connection = (HttpURLConnection)url.openConnection();
        connection.setRequestMethod("GET");
        int code = connection.getResponseCode();
        if (code == 200) {
          //成功
          InputStreamReader isr = new InputStreamReader(connection.getInputStream());
          BufferedReader bufferedreader = new BufferedReader(isr);
          String string;
          StringBuilder stringbuilder = new StringBuilder();
            while ((string = bufferedreader.readLine()) != null) {
              stringbuilder.append(string);
            }
          final String result = stringbuilder.toString();
          System.out.println(result);
        } else {
          //失败
        }
	} catch (MalformedURLException e) {
        e.printStackTrace();
	} catch (IOException e) {
        e.printStackTrace();
	}
}}.start();

POST方法

new Thread(){
  public void run() {
    String path = "https://api.yujn.cn/api/wzyd.php";
    String data = "type=json&id=2126732686";
      try {
        URL url = new URL(path);
        HttpURLConnection connection = (HttpURLConnection)url.openConnection();
        connection.setRequestMethod("POST");          
        connection.setDoOutput(true);
        connection.getOutputStream().write(data.getBytes());
        int code = connection.getResponseCode();
        if (code == 200) {
          //成功
          InputStreamReader isr = new InputStreamReader(connection.getInputStream());
          BufferedReader bufferedreader = new BufferedReader(isr);
          String string;
          StringBuilder stringbuilder = new StringBuilder();
            while ((string = bufferedreader.readLine()) != null) {
            stringbuilder.append(string);
            }
          final String result = stringbuilder.toString();
          System.out.println(result);
        } else {
          //失败
        }
	} catch (MalformedURLException e) {
        e.printStackTrace();
	} catch (IOException e) {
        e.printStackTrace();
	}
}}.start();

Lua


GET方法

url="https://api.yujn.cn/api/wzyd.php"
data=url.."?type=json&id=2126732686"
Http.get(data,function(code,content,data)
  if code==200 then
    --成功
    print(content)
   else
    --失败
  end
end)

POST方法

url="https://api.yujn.cn/api/wzyd.php"
data="type=json&id=2126732686"
Http.post(url,data,function(code,content,data)
  if code==200 then
    --成功
    print(content)
   else
    --失败
  end
end)

结绳


GET方法

变量 网络GET操作 为 网络操作 = 创建 网络操作()
   变量 GET数据 为 文本型 = "?type=json&id=2126732686"   
   网络GET操作.取网页源码("https://api.yujn.cn/api/wzyd.php" + GET数据)
   事件 网络GET操作:取网页源码结束(结果 为 文本型,cookie 为 文本型)
      //成功
      调试输出(结果)
   结束 事件
   事件 网络GET操作:取网页源码失败(响应码 为 文本型)
      //失败
   结束 事件

POST方法

变量 网络POST操作 为 网络操作 = 创建 网络操作()
   变量 POST数据 为 文本型 = "type=json&id=2126732686"
   网络POST操作.发送数据("https://api.yujn.cn/api/wzyd.php",POST数据)
   事件 网络POST操作:发送数据结束(结果 为 文本型,cookie 为 文本型)
      //成功
      调试输出(结果)
   结束 事件
   事件 网络POST操作:发送数据失败(响应码 为 文本型)
      //失败
   结束 事件

iAPP


GET方法

s url="https://api.yujn.cn/api/wzyd.php"
s data="?type=json&id=2126732686"
ss(url+data,get)
t(){
  hs(get,result)
  f(result!=null){
    //成功
    syso(result)
  }else{
    //失败
  }
}

POST方法

s url="https://api.yujn.cn/api/wzyd.php"
s data="type=json&id=2126732686"
t(){
  hs(url,data,"utf-8",result)
  f(result!=null){
    //成功
    syso(result)
  }else{
    //失败
  }
}



接口反馈
反馈时间 反馈接口 反馈内容 反馈者IP
2025-04-24 16:06:49 王者战绩查询 营地ID正确,也是提示201。我用别的接口能查战绩 113.74.201.7
2025-03-26 16:52:05 cosplay写真 跨域不显示图片内容怎么回事 ??是不是http的问题 118.249.41.79
2025-03-23 18:55:47 短视频去水印[支持大部分] 无法访问 124.135.126.239
2025-03-23 18:55:47 短视频去水印[支持大部分] 无法访问 124.135.126.239
2025-03-23 18:55:47 短视频去水印[支持大部分] 无法访问 124.135.126.239
2025-03-23 18:55:47 短视频去水印[支持大部分] 无法访问 124.135.126.239
2025-03-23 18:55:47 短视频去水印[支持大部分] 无法访问 124.135.126.239
2025-03-23 18:55:47 短视频去水印[支持大部分] 无法访问 124.135.126.239
2025-03-14 03:10:46 涩涩图片(新r18) 服务器404 223.88.211.235
2025-02-25 15:43:40 聚合短视频解析 本接口已失效 182.200.240.108
2025-02-12 15:34:58 王者营地主页 响应提示参数错误 116.224.53.91
2025-02-11 20:18:52 福利视频 接口没了 223.74.11.159
2025-02-08 22:11:25 小姐姐随机视频 (站长推荐) 怎么用 222.138.146.100
2025-02-08 19:26:56 写真 60.163.61.160
2024-11-21 14:13:52 王者cosplay写真 接口失效辣 61.159.16.248
2024-11-15 03:35:58 美女写真(返回整页写真) 无法使用 117.174.43.168
2024-11-08 00:16:01 全球地震实时查询 失效 36.98.127.0