面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10741115
json
{
  "response": {
    "fps": 219,
    "fps_avg": 215,
    "entities_count": 79549,
    "world_seed": 1114058279,
    "world_size": 3500,
    "steam_id": "90286568066746398",
    "domain": null,
    "id": 10741115,
    "ip": "87.225.105.48",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Khabarovsk",
    "description": "![Mighty Rust Mods 10X](https://i.imgur.com/mEi6K0b.png)\nДобро пожаловать на Майти раст модс!!!\r\n   ---Mighty Rust Mods 10X---\r\n  -максимальная группа игроков 4-\r\n  -ресурсы X10-\r\n  -компоненты X4-\r\n  -увеличенные стаки-\r\n  -тп на базу и мирки-\r\n  -турели с электричеством и без-\r\n  -киты-\r\n  -быстрый спавн РТ-\r\n  -апгрейт строительных блоков-\r\n и многое другое, команды для чата /info\r\n вайп сервера каждую пятницу \r\n Приятной игры на Майти раст модс!!!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470419,
    "last_online": 1780557625,
    "icon": null,
    "name": "Mighty Rust Mods 10X",
    "connect": "87.225.105.48:28015",
    "request": "87.225.105.48:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 4,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1766250795,
    "last_update": 1780557625,
    "banned": false,
    "wipe": 1780009404,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1001,
    "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/10741115");
$data = json_decode($json, true);
var_dump($data);