面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10733714
json
{
  "response": {
    "channels": {
      "onlinecount": 14,
      "items": [
        {
          "clients": 0,
          "id": 2,
          "items": [],
          "name": "[*spacer]•••••••••••••••••••••••••••••••",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 4,
          "items": [
            {
              "clients": 0,
              "id": 19,
              "items": [],
              "name": "room #1",
              "order": 0,
              "parent_id": 4,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 20,
              "items": [],
              "name": "room #2",
              "order": 19,
              "parent_id": 4,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 5,
              "items": [
                {
                  "clients": -1,
                  "id": 18,
                  "items": [],
                  "name": "PRIVATE",
                  "order": 0,
                  "parent_id": 5,
                  "topic": ""
                }
              ],
              "name": "FACEIT",
              "order": 20,
              "parent_id": 4,
              "topic": ""
            }
          ],
          "name": "Counter-Strike",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 1,
          "items": [],
          "name": "Гостевой канал",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6,
          "items": [],
          "name": "Dota 2",
          "order": 4,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 24,
          "items": [],
          "name": "VALORANT",
          "order": 6,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 8,
          "items": [],
          "name": "AFK",
          "order": 7,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 9,
          "items": [],
          "name": "[*spacer]••••••••••••••••••••••••••••••",
          "order": 8,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 11,
          "items": [],
          "name": "[cspacer]⋗ Временные каналы ⋖",
          "order": 9,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 10,
          "items": [],
          "name": "Общий канал",
          "order": 11,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7,
          "items": [],
          "name": "Другое",
          "order": 24,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "QoYeMQtFEQ1nqFMWDuuF4tx9ZFI=",
    "platform": "Linux",
    "created": 1750345143,
    "uptime": 2170584,
    "steam_id": null,
    "domain": null,
    "id": 10733714,
    "ip": "91.196.35.152",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Moscow",
    "description": "**\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\  DAPI3DA.RU  ////////////////////////////////////////////////////////// **\n\n[**► Оплата подписки **](https://ts.dapi3da.ru/payments/pay)\n[**► Тикет **](https://ts.dapi3da.ru/s/ticket)\n[**► Тех. проблемы **](https://ts.dapi3da.ru/issues)\n**► Сервер доступен по адресам: dapi3da.ru, ts.dapi3da.ru, 91.196.35.152**",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776189717,
    "score": 0,
    "last_online": 1776898217,
    "icon": null,
    "name": "DAPI3DA.RU",
    "connect": "91.196.35.152:9987",
    "request": "91.196.35.152:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 1,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1765549678,
    "last_update": 1776898217,
    "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": 118,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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