面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/4575713
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 4575713,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "[{\"id\":\"0oEaziMeae\",\"type\":\"image\",\"data\":{\"caption\":\"\",\"withBorder\":false,\"withBackground\":false,\"stretched\":false,\"file\":{\"url\":\"https://cdn.gamemonitoring.net/images/content/3defbaef-d423-4484-b4d8-9a06f2db3984.jpg\"}}},{\"id\":\"jfjvn19eo\",\"type\":\"paragraph\",\"data\":{\"text\":\"Сервер Magic Rust #4, **доступны киты**, рейты добываемых ресурсов **х5**, компоненты **х1**! \\nДобро пожаловать!\"}}]",
    "game": 252490,
    "owner": 87500,
    "boosts": 1,
    "last_offline": 1750457066,
    "last_online": 1745176222,
    "icon": null,
    "name": "Meow",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": null,
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1717175139,
    "last_update": 1750457066,
    "banned": false,
    "wipe": 1745007454,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13243,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "annatorzqw",
      "avatar": "aa51291d-32e2-447d-bfd9-f8078883a20c.jpg"
    },
    "mods": [],
    "disabled_modules": [
      "reviews"
    ]
  }
}

代码示例

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