面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11159144
json
{
  "response": {
    "fps": 45,
    "fps_avg": 43,
    "entities_count": 70376,
    "world_seed": 1911553142,
    "world_size": 3500,
    "steam_id": 90285686128992270,
    "domain": null,
    "id": 11159144,
    "ip": "185.207.214.248",
    "port": 35600,
    "query": 35610,
    "color": 0,
    "city": "Moscow",
    "description": "![#1 V-RUST - X5/X10|MAX 5|LOOT+|FPS+|KITS|MYMINI](https://i.postimg.cc/tR6VHX29/vrustlogo.png)\nДобро пожаловать на сервер:\r\n#1 V-RUST - X5/X10|MAX 5|LOOT+|FPS+|KITS|MYMINI\r\n\r\n★ Рейты X5/X10\r\n★ Улучшенный лут\r\n★ Ограничение команды: 5 игроков\r\n★ Повышенный FPS и оптимизация\r\n★ Команды: /tpr /home /kit /skins /remove /top\r\n★ Вайп каждый вторник и пятницу в 12:00 МСК\r\n\r\nНаша группа ВК: vk.com/vrust_vk\r\nНаша группа TG: t.me/vrust_tg",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779193931,
    "last_online": 1778706024,
    "icon": null,
    "name": "#1 V-RUST - X5/X10|MAX 5|LOOT+|FPS+|KITS|MYMINI",
    "connect": "185.207.214.248:35600",
    "request": "185.207.214.248:35610",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 250,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1772228123,
    "last_update": 1779193931,
    "banned": false,
    "wipe": 1778206738,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6984,
    "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/11159144");
$data = json_decode($json, true);
var_dump($data);