JSON для программ, сайтов и прочего

text
https://api.gamemonitoring.ru/servers/11142860
json
{
  "response": {
    "channels": {
      "onlinecount": 51,
      "items": [
        {
          "clients": 2,
          "id": 1,
          "items": [],
          "name": "Гостевая",
          "order": 0,
          "parent_id": 0,
          "topic": "Здарова!"
        },
        {
          "clients": 0,
          "id": 2943,
          "items": [],
          "name": "AFK",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 144,
          "items": [],
          "name": "Sound Test",
          "order": 80,
          "parent_id": 0,
          "topic": "Канал с кодеком Opus Music для теста передачи музыки и звука в высоком качестве."
        },
        {
          "clients": 0,
          "id": 5267,
          "items": [
            {
              "clients": 0,
              "id": 87,
              "items": [
                {
                  "clients": 0,
                  "id": 92,
                  "items": [],
                  "name": "Public",
                  "order": 0,
                  "parent_id": 87,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 192,
                  "items": [],
                  "name": "CW",
                  "order": 92,
                  "parent_id": 87,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 21587,
                  "items": [],
                  "name": "FastCup",
                  "order": 192,
                  "parent_id": 87,
                  "topic": ""
                }
              ],
              "name": "Counter-Strike",
              "order": 0,
              "parent_id": 5267,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 502,
              "items": [
                {
                  "clients": 0,
                  "id": 503,
                  "items": [],
                  "name": "Комната 1 (5 макс)",
                  "order": 0,
                  "parent_id": 502,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 354523,
                  "items": [],
                  "name": "Комната 2 (5 макс)",
                  "order": 503,
                  "parent_id": 502,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 354524,
                  "items": [],
                  "name": "Комната 3 (10 макс)",
                  "order": 354523,
                  "parent_id": 502,
                  "topic": ""
                }
              ],
              "name": "Counter-Strike: Global Offensive",
              "order": 87,
              "parent_id": 5267,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 120,
              "items": [
                {
                  "clients": 0,
                  "id": 130,
                  "items": [],
                  "name": "Комната 1 (5 макс)",
                  "order": 0,
                  "parent_id": 120,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 354522,
                  "items": [],
                  "name": "Комната 2 (5 макс)",
                  "order": 130,
                  "parent_id": 120,
                  "topic": ""
                }
              ],
              "name": "Dota I/II",
              "order": 502,
              "parent_id": 5267,
              "topic": ""
            }
          ],
          "name": "Valve",
          "order": 121,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 21840,
          "items": [
            {
              "clients": 0,
              "id": 338204,
              "items": [],
              "name": "Для стрима",
              "order": 0,
              "parent_id": 21840,
              "topic": ""
            }
          ],
          "name": "Комната FPS",
          "order": 122,
          "parent_id": 0,
          "topic": "LNGSERV2026"
        },
        {
          "clients": 0,
          "id": 80,
          "items": [
            {
              "clients": 0,
              "id": 19589,
              "items": [],
              "name": "Комната 1",
              "order": 0,
              "parent_id": 80,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 354521,
              "items": [],
              "name": "Комната 2",
              "order": 19589,
              "parent_id": 80,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2675,
              "items": [],
              "name": "Комната (low-codec)",
              "order": 354521,
              "parent_id": 80,
              "topic": ""
            }
          ],
          "name": "Для разговоров тет-а-тет",
          "order": 123,
          "parent_id": 0,
          "topic": "Для разговоров тет-а-тет"
        },
        {
          "clients": 0,
          "id": 590,
          "items": [],
          "name": "Для разговоров с администрацией",
          "order": 124,
          "parent_id": 0,
          "topic": "ПО ВОПРОСАМ ПОСТОЯННЫХ КОМНАТ ПИСАТЬ В ЛИЧКУ Технический Администратор  НАЗВАНИЯ КОМНАТЫ И ПАРОЛЬ"
        },
        {
          "clients": 0,
          "id": 122,
          "items": [],
          "name": "[rspacer2]Пользовательские каналы",
          "order": 144,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 324,
          "items": [
            {
              "clients": 0,
              "id": 327,
              "items": [],
              "name": "MTA",
              "order": 0,
              "parent_id": 324,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 586,
              "items": [],
              "name": "SA:MP",
              "order": 327,
              "parent_id": 324,
              "topic": ""
            }
          ],
          "name": "GTA:SA",
          "order": 152,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 123,
          "items": [],
          "name": "[rspacer1]Прочие каналы",
          "order": 324,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 121,
          "items": [],
          "name": "[rspacer0]Игровые каналы",
          "order": 590,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 55768,
          "items": [],
          "name": "[cspacer0]Правила",
          "order": 2943,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 14298,
          "items": [
            {
              "clients": 0,
              "id": 354517,
              "items": [],
              "name": "Комната 1 (4 макс)",
              "order": 0,
              "parent_id": 14298,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 354518,
              "items": [],
              "name": "Комната 2 (4 макс)",
              "order": 354517,
              "parent_id": 14298,
              "topic": ""
            }
          ],
          "name": "PlayerUnknown's Battlegrounds",
          "order": 5267,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 152,
          "items": [
            {
              "clients": 2,
              "id": 153,
              "items": [],
              "name": "Комната 1",
              "order": 0,
              "parent_id": 152,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 354519,
              "items": [],
              "name": "Комната 2",
              "order": 153,
              "parent_id": 152,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 354520,
              "items": [],
              "name": "Комната 3",
              "order": 354519,
              "parent_id": 152,
              "topic": ""
            }
          ],
          "name": "Minecraft",
          "order": 14298,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 123228,
          "items": [],
          "name": "ESEDO",
          "order": 21840,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 124,
          "items": [
            {
              "clients": 1,
              "id": 588,
              "items": [],
              "name": "Администрация [LNGSERV]",
              "order": 0,
              "parent_id": 124,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 14154,
              "items": [],
              "name": "Администрация [MAXPLAYERS]",
              "order": 588,
              "parent_id": 124,
              "topic": "https://maxplayers.net/"
            }
          ],
          "name": "Администрация",
          "order": 55768,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 3,
          "id": 354585,
          "items": [],
          "name": "666",
          "order": 83921,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 287413,
          "items": [],
          "name": "Hvost",
          "order": 123228,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 298637,
          "items": [],
          "name": "᠌ ᠌ ᠌᠌ ᠌ ᠌ ᠌ ᠌ ᠌",
          "order": 287413,
          "parent_id": 0,
          "topic": "хуесос"
        },
        {
          "clients": 0,
          "id": 319766,
          "items": [],
          "name": "УРОДЦЫ",
          "order": 298637,
          "parent_id": 0,
          "topic": "ебашим хохлов"
        },
        {
          "clients": 0,
          "id": 83921,
          "items": [],
          "name": "[rspacer2]Временные каналы",
          "order": 319766,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 354591,
          "items": [],
          "name": "nosorog",
          "order": 354585,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 354593,
          "items": [],
          "name": "11",
          "order": 354591,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 3,
          "id": 354594,
          "items": [],
          "name": "гриндинг эльник нафик",
          "order": 354593,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 354599,
          "items": [],
          "name": "аываываы",
          "order": 354594,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 3,
          "id": 354600,
          "items": [],
          "name": "213213211",
          "order": 354599,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 354601,
          "items": [],
          "name": "CBAPA",
          "order": 354600,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "f2K7F5vG54yV3Bu4Hmwg395+occ=",
    "platform": "Linux",
    "created": 1432217625,
    "uptime": 257147,
    "steam_id": null,
    "domain": null,
    "id": 11142860,
    "ip": "95.47.161.50",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Chelyabinsk",
    "description": "**Добро пожаловать на TeamSpeak сервер!**\nНаша группа в **** - https://vk.com/lngserv\n**Наши сервера:**\n**LNGSERV.RU:27015 - Паблик!**\n**LNGSERV.RU:27016 - {LNGSERV} ZM!**\n<u>**Заходя на сервер, Вы автоматически соглашаетесь с правилами и берёте полную ответственность за всё, что говорите или пишете**</u>",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775158929,
    "score": 0,
    "last_online": 1776354621,
    "icon": null,
    "name": "[LNGSERV] TeamSpeak 3 #1 [MSK]",
    "connect": "95.47.161.50:9987",
    "request": "95.47.161.50:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 21,
    "maxplayers": 192,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 66,
    "add_date": 1770933677,
    "last_update": 1776354621,
    "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": 72,
    "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.ru/servers/11142860");
$data = json_decode($json, true);
var_dump($data);