面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11756856
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 74892,
    "world_seed": 1337,
    "world_size": 3700,
    "steam_id": 90286723311872030,
    "domain": null,
    "id": 11756856,
    "ip": "46.174.49.98",
    "port": 20520,
    "query": 20521,
    "project_id": null,
    "color": 0,
    "city": "Moscow",
    "description": "![ONENESS X2|NOLIMIT|LOOT+|COMPENDIUM](https://sun9-20.userapi.com/s/v1/ig2/piUbqSpFvTD2-Yeo5D5GPRYHiKMCkqC7QIg12ft9JvOMtJF1JBwkStyz4TMGK9FwRONTzhSmNzkZPZDFb3NLXIcU.jpg?quality=95&as=32x32,48x48,72x72,108x108,160x160,240x240,360x360,480x480,540x540,640x640,720x720,1080x1080,1254x1254&from=bu&u=l2vtdgAIvH16IdQS8F9nni8bw0ME1fza4dUvZjBYdtU&cs=1254x0)\nONENESS RUST\r\nX2 NoLimit Compendium\r\nМагазин сервера: oneness-store.ru\r\nОтзывчивая администрация 24/7\r\nБесплатные привилегии для игроков\r\nВыгодные промокоды и бонусы\r\nЗаходи и начинай доминировать!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780845557,
    "last_online": 1780870229,
    "icon": null,
    "name": "ONENESS X2|NOLIMIT|LOOT+|COMPENDIUM",
    "connect": "46.174.49.98:20520",
    "request": "46.174.49.98:20521",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780845557,
    "last_update": 1780870229,
    "banned": false,
    "wipe": 1780832050,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5928,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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