Skip to content

MC正版用户UUID获取

可以获取到正版MC用户名的UUID

接口地址

https://api.nxvav.cn/api/mcuuid/

请求示例

https://api.nxvav.cn/api/mcuuid/?id=nuoxian

shell
curl https://api.nxvav.cn/api/mcuuid -X POST -d 'id=nuoxian'
php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
   CURLOPT_URL => 'https://api.nxvav.cn/api/mcuuid/?id=nuoxian',
   CURLOPT_RETURNTRANSFER => true,
   CURLOPT_ENCODING => '',
   CURLOPT_MAXREDIRS => 10,
   CURLOPT_TIMEOUT => 0,
   CURLOPT_FOLLOWLOCATION => true,
   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
   CURLOPT_CUSTOMREQUEST => 'GET',
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
?>

请求参数

参数名类型必填说明
idstring正版MC用户名

返回参数

返回参数类型说明
codestring状态码
namestring玩家昵称
uuidstring玩家UUID

返回示例

json
{
    "code": 200,
    "name": "123",
    "uuid": "687ad06c0bf14aa4af9e49d97f4104b7"
}
json
{
    "code": 201,
    "msg": "查询失败"
}