JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10733712
json
{
  "response": {
    "channels": {
      "onlinecount": 50,
      "items": [
        {
          "clients": 0,
          "id": 4,
          "items": [],
          "name": "ФАЙЛОХРАНИЛИЩЕ",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1793,
          "items": [],
          "name": "ДОНАТЫ \\p DONATIONS",
          "order": 4,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 12,
          "items": [
            {
              "clients": 0,
              "id": 15,
              "items": [],
              "name": "КРАСНЫЕ \\p OPFOR",
              "order": 0,
              "parent_id": 12,
              "topic": ""
            }
          ],
          "name": "🔺 ШТАБ КРАСНЫЕ \\p HQ OPFOR🔺",
          "order": 10,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1620,
          "items": [
            {
              "clients": 0,
              "id": 1621,
              "items": [],
              "name": "СИНИЕ \\p  BLUEFOR",
              "order": 0,
              "parent_id": 1620,
              "topic": ""
            }
          ],
          "name": "🔹  ШТАБ СИНИЕ \\p HQ BLUEFOR🔹",
          "order": 12,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1784,
          "items": [],
          "name": "[*spacer005]_",
          "order": 13,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1700,
          "items": [],
          "name": "[spacer002]___",
          "order": 18,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1701,
          "items": [],
          "name": "[spacer006]___",
          "order": 102,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1823,
          "items": [],
          "name": "Пригожин RIP",
          "order": 538,
          "parent_id": 0,
          "topic": "Частный Военный Канал"
        },
        {
          "clients": 0,
          "id": 1797,
          "items": [],
          "name": "TaskForceRadio_2",
          "order": 589,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 589,
          "items": [],
          "name": "TaskForceRadio_1",
          "order": 1578,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 13,
          "items": [
            {
              "clients": 0,
              "id": 16,
              "items": [],
              "name": "ЗЕЛЕНЫЕ \\p INDEPENDENT",
              "order": 0,
              "parent_id": 13,
              "topic": ""
            }
          ],
          "name": "🗾  ШТАБ ЗЕЛЕНЫЕ \\p HQ INDEPENDENT🗾",
          "order": 1620,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1651,
          "items": [],
          "name": "ПОЛУЧИТЬ ПРАВА",
          "order": 1648,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1786,
          "items": [],
          "name": "АФК",
          "order": 1649,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 18,
          "items": [],
          "name": "Помощь игрокам",
          "order": 1651,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1698,
          "items": [],
          "name": "[spacer003]___",
          "order": 1654,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1778,
          "items": [],
          "name": "[cspacer003]TvT ИГРЫ",
          "order": 1660,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1699,
          "items": [],
          "name": "[cspacer0]START:18:00 по МСК",
          "order": 1661,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 538,
          "items": [
            {
              "clients": 0,
              "id": 1807,
              "items": [],
              "name": "канал 1",
              "order": 0,
              "parent_id": 538,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1811,
              "items": [],
              "name": "канал 3",
              "order": 1681,
              "parent_id": 538,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1681,
              "items": [],
              "name": "канал 2",
              "order": 1807,
              "parent_id": 538,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1709,
              "items": [
                {
                  "clients": 0,
                  "id": 1804,
                  "items": [],
                  "name": "будка",
                  "order": 0,
                  "parent_id": 1709,
                  "topic": ""
                }
              ],
              "name": "[OOO]",
              "order": 1811,
              "parent_id": 538,
              "topic": ""
            }
          ],
          "name": "[cspacer1] КАНАЛЫ ДЛЯ СВОБОДНЫХ ИГР",
          "order": 1698,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 10,
          "items": [
            {
              "clients": 0,
              "id": 1007,
              "items": [],
              "name": "ПОМОЩЬ \\p HELP DESK 👀",
              "order": 0,
              "parent_id": 10,
              "topic": ""
            }
          ],
          "name": "ОБЩИЙ СБОР",
          "order": 1699,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1649,
          "items": [],
          "name": "[cspacer0]ИНФОРМАЦИЯ",
          "order": 1700,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1578,
          "items": [],
          "name": "TaskForceRadio",
          "order": 1701,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 1648,
          "items": [],
          "name": "[cspacer0]КПП \\p CHECKPOINT",
          "order": 1713,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1830,
          "items": [],
          "name": "Вьетнам 95.31.244.125",
          "order": 1763,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1654,
          "items": [
            {
              "clients": 0,
              "id": 19,
              "items": [],
              "name": "Помощь с созданием карт",
              "order": 0,
              "parent_id": 1654,
              "topic": ""
            }
          ],
          "name": "МАСТЕРСКАЯ",
          "order": 1765,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 3,
          "id": 1763,
          "items": [
            {
              "clients": 0,
              "id": 1837,
              "items": [],
              "name": "HARD_sub",
              "order": 0,
              "parent_id": 1763,
              "topic": ""
            }
          ],
          "name": "HARD",
          "order": 1766,
          "parent_id": 0,
          "topic": "Олений- остров"
        },
        {
          "clients": 0,
          "id": 1661,
          "items": [],
          "name": "[cspacer0]95.31.244.125:2302 \\p PASS:",
          "order": 1778,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 102,
          "items": [
            {
              "clients": 0,
              "id": 23,
              "items": [
                {
                  "clients": 0,
                  "id": 9,
                  "items": [],
                  "name": "Зал совещаний",
                  "order": 0,
                  "parent_id": 23,
                  "topic": ""
                }
              ],
              "name": "Генеральный штаб",
              "order": 0,
              "parent_id": 102,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 107,
              "items": [
                {
                  "clients": 0,
                  "id": 1233,
                  "items": [],
                  "name": "1-е Отделение ИСB (ИСР)",
                  "order": 0,
                  "parent_id": 107,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 1234,
                  "items": [],
                  "name": "2-е Отделение ИСВ (ШИСО)",
                  "order": 1233,
                  "parent_id": 107,
                  "topic": ""
                }
              ],
              "name": "Инженерно-сапёрный взвод [ИСВ]",
              "order": 23,
              "parent_id": 102,
              "topic": "Инженерно Саперный Взвод"
            },
            {
              "clients": 0,
              "id": 1613,
              "items": [],
              "name": "Ракетные войска и артиллерия  [РВиА]",
              "order": 107,
              "parent_id": 102,
              "topic": "Ракетные Войска и Артиллерия"
            }
          ],
          "name": "[cspacer0]ПОДРАЗДЕЛЕНИЯ VETERANS",
          "order": 1784,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1766,
          "items": [],
          "name": "Канал  \"DayZ\" VETERANS",
          "order": 1786,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 1713,
          "items": [],
          "name": "Администрация",
          "order": 1793,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1839,
          "items": [],
          "name": "SaintsKillers",
          "order": 1823,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1836,
          "items": [],
          "name": "Arma Reforger",
          "order": 1830,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1765,
          "items": [],
          "name": "Канал \"ЖАРКИЙ СЕЗОН\"",
          "order": 1836,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1660,
          "items": [],
          "name": "[spacer004]___",
          "order": 1839,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "QpxbVmRJYUTev4YWDxNLkEfbDZA=",
    "platform": "Windows",
    "created": 0,
    "uptime": 327512,
    "steam_id": null,
    "domain": null,
    "id": 10733712,
    "ip": "95.31.244.125",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Bogorodskoye",
    "description": "Welcome to В/Ч VETERANS !!!  https://vk.com/arma3veterans\nЗдравствуйте, чтобы получить доступ к остальным каналам, прочитайте ИНФОРМАЦИЮ в соответствующем канале\n\nHello, to access the remaining channels, read the INFORMATION in the appropriate channel",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776184872,
    "score": 0,
    "last_online": 1776512422,
    "icon": null,
    "name": "VETERANS",
    "connect": "95.31.244.125:9987",
    "request": "95.31.244.125:9987",
    "map": null,
    "gamemode": null,
    "version": "3.9.1 Build: 1562073443",
    "numplayers": 4,
    "maxplayers": 512,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1765549665,
    "last_update": 1776512422,
    "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": 114,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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