面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/9633734
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 9633734,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "[{\"id\":\"gJ3y1maAWD\",\"type\":\"header\",\"data\":{\"text\":\"Первый мой Сервер Rust [3x | KIT | TPR]\",\"level\":2}},{\"id\":\"Ew_d91xXs0\",\"type\":\"paragraph\",\"data\":{\"text\":\"Все новости по серверу и плагинам \"}},{\"id\":\"9cv98pwlOz\",\"type\":\"paragraph\",\"data\":{\"text\":\"Тг https://t.me/Rust_XELIN\"}},{\"id\":\"KZwbsCZmZF\",\"type\":\"paragraph\",\"data\":{\"text\":\"Вк https://vk.com/club231207055\"}}]",
    "game": 252490,
    "owner": 124483,
    "boosts": 1,
    "last_offline": 1761066158,
    "last_online": 1758834019,
    "icon": null,
    "name": "MVP rust [No BPS] [Vanila]",
    "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": 1751220261,
    "last_update": 1761066158,
    "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": 13371,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "Jami_Stail",
      "avatar": "7498bd34-e7c2-4673-aa34-aa4b0efe2892.jpg"
    },
    "mods": [
      {
        "id": 979,
        "name": "Kits"
      },
      {
        "id": 1227,
        "name": "RaidBlock"
      },
      {
        "id": 1225,
        "name": "Raidable Bases"
      },
      {
        "id": 1528,
        "name": "Wipe Block"
      },
      {
        "id": 144,
        "name": "teleportprotection"
      }
    ],
    "disabled_modules": []
  }
}

代码示例

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