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

text
https://api.gamemonitoring.ru/servers/11864873
json
{
  "response": {
    "channels": {
      "onlinecount": 82,
      "items": [
        {
          "clients": -1,
          "id": 22,
          "items": [],
          "name": "[*spacerx1]––",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2168,
          "items": [],
          "name": "[cspacer0123]GAMERS-PLANET",
          "order": 22,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 750,
          "items": [],
          "name": "[*spacer0445]___",
          "order": 26,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 26,
          "items": [],
          "name": "[cspacer]PREMIUM CHANNELS",
          "order": 39,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2166,
          "items": [],
          "name": "[spacer021321]___",
          "order": 40,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 810,
          "items": [],
          "name": "[spacer301212]___",
          "order": 48,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2929,
          "items": [],
          "name": "[*spacer4111115]___",
          "order": 52,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 52,
          "items": [],
          "name": "Main Room [  DON'T STAY AFK ]",
          "order": 60,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 302,
          "items": [
            {
              "clients": 0,
              "id": 303,
              "items": [],
              "name": "Room [ 01 ] -- MAX 2",
              "order": 0,
              "parent_id": 302,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 304,
              "items": [],
              "name": "Room [ 02 ] -- MAX 2",
              "order": 303,
              "parent_id": 302,
              "topic": ""
            },
            {
              "clients": 2,
              "id": 305,
              "items": [],
              "name": "Room [ 03 ] -- MAX 3",
              "order": 304,
              "parent_id": 302,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 306,
              "items": [],
              "name": "Room [ 04 ] -- MAX 3",
              "order": 305,
              "parent_id": 302,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 307,
              "items": [],
              "name": "Room [ 05 ] -- MAX 4",
              "order": 306,
              "parent_id": 302,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 308,
              "items": [],
              "name": "Room [ 06 ] -- MAX 4",
              "order": 307,
              "parent_id": 302,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2032,
              "items": [],
              "name": "Room [ 07 ] -- MAX 5",
              "order": 308,
              "parent_id": 302,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2033,
              "items": [],
              "name": "Room [ 08 ] -- MAX 5",
              "order": 2032,
              "parent_id": 302,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2155,
              "items": [],
              "name": "Room [ 09 ] -- MAX 6",
              "order": 2033,
              "parent_id": 302,
              "topic": ""
            }
          ],
          "name": "Limited Rooms",
          "order": 61,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 323,
          "items": [],
          "name": "[spacer866666]___",
          "order": 69,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 744,
          "items": [],
          "name": "[spacer030]___",
          "order": 271,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 60,
          "items": [],
          "name": "[*spacer45]___",
          "order": 275,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 69,
          "items": [],
          "name": "Sleeping Room [ AFK ]",
          "order": 302,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2428,
          "items": [
            {
              "clients": 0,
              "id": 2083,
              "items": [],
              "name": "CRS.",
              "order": 0,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2087,
              "items": [],
              "name": "6666",
              "order": 2007,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2614,
              "items": [],
              "name": "banned",
              "order": 2008,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2116,
              "items": [],
              "name": "GKeviN20",
              "order": 2010,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2830,
              "items": [],
              "name": "TxF CS2 PREMIER",
              "order": 2013,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2715,
              "items": [],
              "name": "dan",
              "order": 2040,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2984,
              "items": [],
              "name": "delta uno",
              "order": 2083,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2010,
              "items": [],
              "name": "Grifonii",
              "order": 2087,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2007,
              "items": [],
              "name": "noxiwnt",
              "order": 2091,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2040,
              "items": [],
              "name": "dubaster",
              "order": 2116,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2632,
              "items": [],
              "name": "melanve",
              "order": 2143,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2719,
              "items": [
                {
                  "clients": 0,
                  "id": 2720,
                  "items": [],
                  "name": "T",
                  "order": 0,
                  "parent_id": 2719,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 2721,
                  "items": [],
                  "name": "CT",
                  "order": 2720,
                  "parent_id": 2719,
                  "topic": ""
                }
              ],
              "name": "BLJ",
              "order": 2267,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2013,
              "items": [],
              "name": "CUCURUZ",
              "order": 2614,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2091,
              "items": [],
              "name": "gz",
              "order": 2632,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2934,
              "items": [],
              "name": "ROxy",
              "order": 2715,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2143,
              "items": [],
              "name": "ireal",
              "order": 2719,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2267,
              "items": [],
              "name": "lowkey",
              "order": 2830,
              "parent_id": 2428,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2008,
              "items": [],
              "name": "sss.win",
              "order": 2984,
              "parent_id": 2428,
              "topic": ""
            }
          ],
          "name": "Gaming Channels",
          "order": 323,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 428,
          "items": [],
          "name": "[cspacer3]SUPPORT",
          "order": 427,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 1568,
          "items": [],
          "name": "[spacer3001412]___",
          "order": 428,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 61,
          "items": [
            {
              "clients": 0,
              "id": 62,
              "items": [],
              "name": "»  Public Channel [ 01 ]",
              "order": 0,
              "parent_id": 61,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 63,
              "items": [],
              "name": "»  Public Channel [ 02 ]",
              "order": 62,
              "parent_id": 61,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 64,
              "items": [],
              "name": "»  Public Channel [ 03 ]",
              "order": 63,
              "parent_id": 61,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 65,
              "items": [],
              "name": "»  Public Channel [ 04 ]",
              "order": 64,
              "parent_id": 61,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 279,
              "items": [],
              "name": "»  Public Channel [ 05 ]",
              "order": 65,
              "parent_id": 61,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2027,
              "items": [],
              "name": "»  Public Channel [ 06 ]",
              "order": 279,
              "parent_id": 61,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2028,
              "items": [],
              "name": "»  Public Channel [ 07 ]",
              "order": 2027,
              "parent_id": 61,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2029,
              "items": [],
              "name": "»  Public Channel [ 08 ]",
              "order": 2028,
              "parent_id": 61,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2030,
              "items": [],
              "name": "»  Public Channel [ 09 ]",
              "order": 2029,
              "parent_id": 61,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2150,
              "items": [],
              "name": "»  Public Channel [ 10 ]",
              "order": 2030,
              "parent_id": 61,
              "topic": ""
            }
          ],
          "name": "» Public Rooms",
          "order": 744,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 746,
          "items": [],
          "name": "[cspacer]TEMPORARY CHANNELS",
          "order": 745,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1963,
          "items": [],
          "name": "[spacer0213]___",
          "order": 746,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 1567,
          "items": [],
          "name": "45 % vol - 7 TERA POWER - pica firma",
          "order": 750,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 275,
          "items": [],
          "name": "[cspacer2] DNS : TS.GAMERS-PLANET.NET",
          "order": 810,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1588,
          "items": [],
          "name": "GUARANTEE - BOTNET - STRESSER - EXPLOIT",
          "order": 1567,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 48,
          "items": [
            {
              "clients": 0,
              "id": 429,
              "items": [],
              "name": "SUPPORT  [ 01 ]",
              "order": 0,
              "parent_id": 48,
              "topic": ""
            },
            {
              "clients": 1,
              "id": 430,
              "items": [],
              "name": "SUPPORT  [ 02 ]",
              "order": 429,
              "parent_id": 48,
              "topic": ""
            }
          ],
          "name": "Technical Support",
          "order": 1568,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 2186,
          "items": [],
          "name": "[GP] ☰ po43",
          "order": 1588,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1648,
          "items": [],
          "name": "[GP] ☰ why",
          "order": 1594,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2429,
          "items": [
            {
              "clients": 0,
              "id": 1608,
              "items": [],
              "name": "MakaPaka",
              "order": 0,
              "parent_id": 2429,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1612,
              "items": [],
              "name": "cs day",
              "order": 1608,
              "parent_id": 2429,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1725,
              "items": [],
              "name": "xxxxxxxxxxxxxx",
              "order": 1612,
              "parent_id": 2429,
              "topic": ""
            }
          ],
          "name": "Permanent Channels",
          "order": 1611,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2310,
          "items": [],
          "name": "[GP] ☰ ESCROCI",
          "order": 1648,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 3137,
          "items": [],
          "name": "zml",
          "order": 1963,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 2167,
          "items": [],
          "name": "Gamers-Planet Staff",
          "order": 2166,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 39,
          "items": [],
          "name": "[*spacer20]___",
          "order": 2167,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 40,
          "items": [],
          "name": "[cspacer3]ADMINISTRATIVE AREA",
          "order": 2168,
          "parent_id": 0,
          "topic": "» Administrație Westcstrike.ro"
        },
        {
          "clients": 0,
          "id": 1594,
          "items": [],
          "name": "[GP] ☰ rakata",
          "order": 2186,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 427,
          "items": [],
          "name": "[*spacer11]___",
          "order": 2310,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 1611,
          "items": [],
          "name": "[*spacer1300410]___",
          "order": 2428,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 745,
          "items": [],
          "name": "[*spacer1300]___",
          "order": 2429,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 271,
          "items": [],
          "name": "[cspacer2] PUBLIC ROOMS",
          "order": 2929,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 3142,
          "items": [],
          "name": "aLENDORE",
          "order": 3137,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 3143,
          "items": [],
          "name": "ПАБАДЖИ",
          "order": 3142,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "12ftSUL/wWXDrhROvAEL+aDAt98=",
    "platform": "Linux",
    "created": 1657289757,
    "uptime": 369566,
    "steam_id": null,
    "domain": null,
    "id": 11864873,
    "ip": "82.39.186.64",
    "port": 9987,
    "query": 9987,
    "project_id": null,
    "color": 0,
    "city": "Amsterdam",
    "description": "Welcome to GAMERS-PLANET SERVER !",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1782855182,
    "last_online": 1783065619,
    "icon": null,
    "name": "TS.GAMERS-PLANET.NET \\p Planet of Gamers",
    "connect": "82.39.186.64:9987",
    "request": "82.39.186.64:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.8 Build: 1779874471",
    "numplayers": 13,
    "maxplayers": 256,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "NL",
    "status": true,
    "votes": 1,
    "points": 68,
    "add_date": 1782855182,
    "last_update": 1783065619,
    "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": 43,
    "language": "nl",
    "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/11864873");
$data = json_decode($json, true);
var_dump($data);