面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/6282269
json
{
  "response": {
    "fps": 59,
    "fps_avg": 59,
    "entities_count": 65350,
    "world_seed": 1598415898,
    "world_size": 3500,
    "steam_id": "90286577083919379",
    "domain": null,
    "id": 6282269,
    "ip": "95.165.142.229",
    "port": 38015,
    "query": 38017,
    "color": 0,
    "city": "Moscow",
    "description": "![LEGENDSRUST #CLASSIC #VANILLA](https://ft28.ru/wa-data/public/site/legendsrust-banner.png)\n-Лимит команды: Безлимит \r\n-Классический сервер\r\n-Размер карты: 3500 \r\n-Вайп карты 2ю неделю по пятницам в 20:00 по МСК\r\n-Вайп полный в первую пятницу месяца в 21:00 \r\n-Наш дискорд, ссылка на сайте Legendsrust.ru",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470419,
    "last_online": 1780583440,
    "icon": null,
    "name": "LEGENDSRUST #CLASSIC #VANILLA",
    "connect": "95.165.142.229:38015",
    "request": "95.165.142.229:38017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1729463094,
    "last_update": 1780583440,
    "banned": false,
    "wipe": 1778189340,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2944,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 252490,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/6282269");
$data = json_decode($json, true);
var_dump($data);