面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11778680
json
{
  "response": {
    "steam_id": "90286856298450947",
    "domain": null,
    "id": 11778680,
    "ip": "45.11.16.76",
    "port": 7030,
    "query": 7030,
    "project_id": null,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "[{\"id\":\"3b9x7EcoGl\",\"type\":\"paragraph\",\"data\":{\"text\":\"Сервер Blackstroi. Классический симулятор метро с проработанной технической частью и адекватным комьюнити. Отличный выбор как для опытных машинистов, так и для новичков.\"}}]",
    "game": 4000,
    "owner": 198947,
    "boosts": 1,
    "last_offline": 1781126074,
    "last_online": 1781150418,
    "icon": null,
    "name": "Metrostroi Blackostroi | norank",
    "connect": "45.11.16.76:7030",
    "request": "45.11.16.76:7030",
    "map": "gm_metro_kalinin_v3",
    "gamemode": "Sandbox",
    "version": "2026.04.29",
    "numplayers": 0,
    "maxplayers": 15,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 90,
    "add_date": 1781126074,
    "last_update": 1781150418,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 33,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 30,
      "steam_id": 4000,
      "name": "Garry's Mod",
      "url": "garrys-mod"
    },
    "server_owner": {
      "username": "blackhagwag",
      "avatar": "9e1f1b17-517e-4f78-b467-2652dc0bf70e.webp"
    },
    "mods": [
      {
        "id": 1838,
        "name": "Metrostroi"
      }
    ],
    "disabled_modules": [
      "chat"
    ]
  }
}

代码示例

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