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

text
https://api.gamemonitoring.ru/servers/11142878
json
{
  "response": {
    "channels": {
      "onlinecount": 58,
      "items": [
        {
          "clients": -1,
          "id": 2,
          "items": [],
          "name": "[*spacer]━━━━",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 3,
          "items": [
            {
              "clients": -1,
              "id": 4,
              "items": [
                {
                  "clients": 0,
                  "id": 5,
                  "items": [],
                  "name": "TaskForceRadio",
                  "order": 0,
                  "parent_id": 4,
                  "topic": ""
                }
              ],
              "name": "╔ S-L \\p German_SW Büro",
              "order": 0,
              "parent_id": 3,
              "topic": "Die Höhle der Erklär-Bärs"
            },
            {
              "clients": -1,
              "id": 6,
              "items": [],
              "name": "╚ S-S-L \\p Kukiruzumi Büro",
              "order": 4,
              "parent_id": 3,
              "topic": ""
            }
          ],
          "name": "[cspacer] °º× Leitung Bereich ׺°",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7,
          "items": [],
          "name": "[spacer013]",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 8,
          "items": [],
          "name": "[*spacer3]━━━━",
          "order": 7,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 9,
          "items": [
            {
              "clients": 0,
              "id": 10,
              "items": [],
              "name": "╔ F-T \\p Drumnik / Fabis Hürde",
              "order": 0,
              "parent_id": 9,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 12,
              "items": [],
              "name": "╚ TS³-T \\p OConners Verzeiflungsstollen",
              "order": 10,
              "parent_id": 9,
              "topic": ""
            }
          ],
          "name": "[cspacer] °º× Development Bereich ׺°",
          "order": 8,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 13,
          "items": [],
          "name": "[spacer0]",
          "order": 9,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 14,
          "items": [],
          "name": "[*spacer1]━━━━",
          "order": 13,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 15,
          "items": [
            {
              "clients": 1,
              "id": 16,
              "items": [],
              "name": "╔ CM \\p Luke's Büro",
              "order": 0,
              "parent_id": 15,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 17,
              "items": [],
              "name": "╠ Netzwerk Besprechung \\p ##.##.25",
              "order": 16,
              "parent_id": 15,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 18,
              "items": [],
              "name": "╚ Besprechungsraum \\p ##.##.25",
              "order": 17,
              "parent_id": 15,
              "topic": ""
            }
          ],
          "name": "[cspacer] °º× Community Manager ׺°",
          "order": 14,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 19,
          "items": [],
          "name": "[spacer01]",
          "order": 15,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 20,
          "items": [],
          "name": "[*spacer5]━━━━",
          "order": 19,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 22,
          "items": [
            {
              "clients": 0,
              "id": 23,
              "items": [],
              "name": "╔ Supportraum 1",
              "order": 0,
              "parent_id": 22,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 24,
              "items": [],
              "name": "╠ Supportraum 2",
              "order": 23,
              "parent_id": 22,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 25,
              "items": [],
              "name": "╠ Supportraum 3",
              "order": 24,
              "parent_id": 22,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 28,
              "items": [],
              "name": "╠ Support Beendet",
              "order": 25,
              "parent_id": 22,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 29,
              "items": [],
              "name": "╠  S-L / S-S-L Weiterleitung",
              "order": 28,
              "parent_id": 22,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 30,
              "items": [],
              "name": "╠ Warte auf CM",
              "order": 29,
              "parent_id": 22,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 31,
              "items": [],
              "name": "╚ Warte auf Support",
              "order": 30,
              "parent_id": 22,
              "topic": ""
            }
          ],
          "name": "[cspacer] °º× Support Bereich ׺°",
          "order": 20,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 32,
          "items": [],
          "name": "[spacer0.12]",
          "order": 22,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 33,
          "items": [],
          "name": "[*cspacer0.11]━━━━",
          "order": 32,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 34,
          "items": [],
          "name": "[cspacer] >>> Eingangshalle <<<",
          "order": 33,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 35,
          "items": [],
          "name": "[spacer1]",
          "order": 34,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 36,
          "items": [],
          "name": "[*spacer07]━━━━",
          "order": 35,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 37,
          "items": [
            {
              "clients": 0,
              "id": 38,
              "items": [],
              "name": "╔ Laberecke 1",
              "order": 0,
              "parent_id": 37,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 39,
              "items": [],
              "name": "╠ Laberecke 2",
              "order": 38,
              "parent_id": 37,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 40,
              "items": [],
              "name": "╠ Laberecke 3",
              "order": 39,
              "parent_id": 37,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 41,
              "items": [],
              "name": "╠ Laberecke 4",
              "order": 40,
              "parent_id": 37,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 42,
              "items": [],
              "name": "╚ Laberecke 5",
              "order": 41,
              "parent_id": 37,
              "topic": ""
            }
          ],
          "name": "[cspacer] °º× Laberecke ׺°",
          "order": 36,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 50,
          "items": [],
          "name": "[spacer07]",
          "order": 37,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 51,
          "items": [],
          "name": "[*spacer09]━━━━",
          "order": 50,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 52,
          "items": [
            {
              "clients": 0,
              "id": 53,
              "items": [],
              "name": "╔ Kurz AFK",
              "order": 0,
              "parent_id": 52,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 54,
              "items": [],
              "name": "╠ Lange AFK",
              "order": 53,
              "parent_id": 52,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 55,
              "items": [],
              "name": "╚ Auf anderen TS/Skype/Discord",
              "order": 54,
              "parent_id": 52,
              "topic": ""
            }
          ],
          "name": "[cspacer] °º× AFK Bereich ׺°",
          "order": 51,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 63,
          "items": [],
          "name": "[spacer012]",
          "order": 52,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 64,
          "items": [],
          "name": "[*spacer012]━━━━",
          "order": 63,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 65,
          "items": [],
          "name": "[cspacer] °º× Eigene Channel ׺°",
          "order": 64,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 66,
          "items": [],
          "name": "Room 1",
          "order": 65,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 67,
          "items": [],
          "name": "Room 2",
          "order": 66,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 68,
          "items": [],
          "name": "Room 3",
          "order": 67,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 4,
          "id": 69,
          "items": [],
          "name": "Room 4",
          "order": 68,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 70,
          "items": [],
          "name": "Room 5",
          "order": 69,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 71,
          "items": [],
          "name": "Room 6",
          "order": 70,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 72,
          "items": [],
          "name": "Room 7",
          "order": 71,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 73,
          "items": [],
          "name": "Room 8",
          "order": 72,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 74,
          "items": [],
          "name": "Room 9",
          "order": 73,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 75,
          "items": [],
          "name": "Room 10",
          "order": 74,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 76,
          "items": [],
          "name": "CS2 \\p Room 1",
          "order": 75,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 77,
          "items": [],
          "name": "CS2 \\p Room 2",
          "order": 76,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "CIaYpfEEHDZY7KundrZqEab2Xsg=",
    "platform": "Linux",
    "created": 1584756915,
    "uptime": 1026615,
    "steam_id": null,
    "domain": "ts.valorian-at-war.de",
    "id": 11142878,
    "ip": "85.114.144.73",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Düsseldorf",
    "description": null,
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1771256501,
    "score": 0,
    "last_online": 1776895828,
    "icon": null,
    "name": "[VaW] Valorian at War \\p Multi Gaming Community \\p seit 2015",
    "connect": "ts.valorian-at-war.de:9987",
    "request": "85.114.144.73:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 8,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 41,
    "add_date": 1770933677,
    "last_update": 1776895828,
    "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": 156,
    "language": "de",
    "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/11142878");
$data = json_decode($json, true);
var_dump($data);