Skip to content
On this page

Server API

Node Info Request

php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://demo.xyz.com/api/server/1?key=1DiCi5fh0MkCg',
  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;

Node Info Response

json
{
    "server": {
        "cipher": "none",
        "server_key": "",
        "address": "google.com",
        "ip": "8.8.8.8",
        "listeningport": 443,
        "listenip": "0.0.0.0",
        "relayid": 0,
        "speedlimit": 1024,
        "sniffing": true,
        "security": "reality",
        "securitySettings": {
            "show": false,
            "dest": "www.lovelive-anime.jp:443",
            "privatekey": "yBaw582IIUNuQWDTncozoBaLJmcd1JZzvsHUgVPxMk7",
            "minclientver": "",
            "maxclientver": "",
            "maxtimediff": 0,
            "proxyprotocol": 0,
            "shortids": [
                "6ba85179e30d4fc2"
            ],
            "serverNames": [
                "www.lovelive-anime.jp"
            ]
        },
        "networkSettings": {
            "transport": "tcp",
            "acceptProxyProtocol": false,
            "flow": "xtls-rprx-vision",
            "header": {
                "type": "none"
            }
        },
        "certmode": "none",
        "sendthrough": "0.0.0.0",
        "type": "Vless"
    },
    "rules": []
}

Services Info Request

php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://demo.xyz.com/api/service/1?key=1DiCi5fh0MkCg',
  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;

Services Info Response

json
{
    "services": [
        {
            "id": 1,
            "uuid": "b31367c4-790e-549a-b028-fe8f4a415618",
            "speedlimit": 100,
            "iplimit": 2,
            "email": "service_id_1@xmplus.service",
            "ipcount": 0
        },
        {
            "id": 2,
            "uuid": "7fdc1487-c8f1-5f20-b8ed-653b9507dd55",
            "speedlimit": 50,
            "iplimit": 2,
            "email": "service_id_2@xmplus.service",
            "ipcount": 0
        },
        {
            "id": 3,
            "uuid": "f78375bb-879c-5a9a-938a-f28bf8776763",
            "speedlimit": 50,
            "iplimit": 2,
            "email": "service_id_3@xmplus.service",
            "ipcount": 0
        },
        {
            "id": 4,
            "uuid": "4a6f9231-710e-5602-a410-c8a755cc3a2f",
            "speedlimit": 100,
            "iplimit": 2,
            "email": "service_id_4@xmplus.service",
            "ipcount": 0
        }
    ]
}