面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11189126
json
{
  "response": {
    "fps": 111,
    "fps_avg": 119,
    "entities_count": 85418,
    "world_seed": 638795368,
    "world_size": 4000,
    "steam_id": "90285241524094981",
    "domain": null,
    "id": 11189126,
    "ip": "195.18.27.96",
    "port": 35100,
    "query": 35110,
    "color": 0,
    "city": "Moscow",
    "description": "![RustMania X2 |NOLIMIT| RU](https://i.postimg.cc/4dkMmBBZ/77D4D232-9261-4F02-A4FA-B9AA32D3C01E-(2).png)\nRustMania: выживание с умом!\r\nАктивный онлайн 24/7.\r\nДружелюбное комьюнити.\r\nСбалансированные настройки.\r\nРегулярные ивенты.\r\nСтрогий античит.\r\nПрисоединяйся и построй свою империю в Rust!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1777700592,
    "score": 0,
    "last_online": 1777715421,
    "icon": null,
    "name": "RustMania X2 |NOLIMIT| RU",
    "connect": "195.18.27.96:35100",
    "request": "195.18.27.96:35110",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2623",
    "numplayers": 2,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1772699032,
    "last_update": 1777715421,
    "banned": false,
    "wipe": 1777700552,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4638,
    "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/11189126");
$data = json_decode($json, true);
var_dump($data);