面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10805251
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 10805251,
    "ip": null,
    "port": null,
    "query": null,
    "project_id": null,
    "color": 0,
    "city": "Moscow",
    "description": "![TanpinXRust X2/TP/Кланы/Магазин/Раздачи](https://gspics.org/images/2025/12/28/I4CvmN.png)\nTanpinXRust X2\r\n Сайт Магазина - tanpinxrust.shop\r\n Игровые сервера для каждого \r\nВысокий онлайн\r\nPvP сражения\r\n Битвы кланов\r\n Для новичков\r\n Стабильный пинг\r\nраздачи",
    "game": 252490,
    "owner": 155636,
    "boosts": 1,
    "last_offline": 1770443462,
    "last_online": 1769547611,
    "icon": null,
    "name": "TanpinXRust X2 Лут - Для новичков!",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": null,
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1766921219,
    "last_update": 1770443462,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13223,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "maximov05110111",
      "avatar": "no.jpg"
    },
    "mods": [
      {
        "id": 435,
        "name": "VIP FREE"
      },
      {
        "id": 1323,
        "name": "Shop"
      },
      {
        "id": 50,
        "name": "Clans"
      },
      {
        "id": 1551,
        "name": "XDShop"
      }
    ],
    "disabled_modules": []
  }
}

代码示例

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