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

text
https://api.gamemonitoring.ru/servers/10733919
json
{
  "response": {
    "channels": {
      "onlinecount": 73,
      "items": [
        {
          "clients": 0,
          "id": 2,
          "items": [],
          "name": "[spacer0]2018-2026",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 164368,
          "items": [],
          "name": "[*spacer0]---",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 82,
          "items": [],
          "name": "[spacer000]Version Serwer 3.13.7",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 4,
          "items": [],
          "name": "[cspacer0]◤☕ Postaw wirtualną kawę ◥",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 5,
          "items": [],
          "name": "[cspacer02]",
          "order": 4,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 164944,
          "items": [],
          "name": "[cspacer001]___",
          "order": 5,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7,
          "items": [],
          "name": "[*spacer01]✮✮✮",
          "order": 6,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 8,
          "items": [],
          "name": "ADMINISTRATOR",
          "order": 7,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 9,
          "items": [
            {
              "clients": 0,
              "id": 164893,
              "items": [],
              "name": "fonter",
              "order": 0,
              "parent_id": 9,
              "topic": ""
            }
          ],
          "name": "MODERATOR",
          "order": 8,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 10,
          "items": [],
          "name": "DYWANIK",
          "order": 9,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 11,
          "items": [],
          "name": "N-ALIEN",
          "order": 10,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 12,
          "items": [],
          "name": "[*spacer02]✮✮✮",
          "order": 11,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 14,
          "items": [],
          "name": "[cspacer03]",
          "order": 12,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 16,
          "items": [],
          "name": "[cspacer04]",
          "order": 13,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 13,
          "items": [],
          "name": "[cspacer1]___",
          "order": 14,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 19,
          "items": [],
          "name": "[cspacer05]",
          "order": 15,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 164905,
          "items": [],
          "name": "[cspacerM] ♫●●● ▼ STREFA MUZYKI ▼ ●●●♫",
          "order": 16,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 53,
          "items": [],
          "name": "[cspacer06]",
          "order": 17,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 164942,
          "items": [],
          "name": "[cspacerM2] ♫●●● ▲ STREFA MUZYKI ▲ ●●●♫",
          "order": 19,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 21,
          "items": [],
          "name": "[cspacer0]ALIEN GAMING",
          "order": 20,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 22,
          "items": [],
          "name": "[cspacer0] WITAMY NA SERWERZE",
          "order": 21,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 23,
          "items": [],
          "name": "[cspacer12]",
          "order": 22,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 24,
          "items": [],
          "name": "[cspacer01] STATUS PRACOWNIKÓW",
          "order": 23,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 25,
          "items": [],
          "name": "[cspacer13]",
          "order": 24,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 26,
          "items": [],
          "name": "[cspacer14]",
          "order": 25,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 27,
          "items": [],
          "name": "[*spacer1]✦✦✦",
          "order": 26,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 1,
          "items": [],
          "name": "POCZEKALNIA",
          "order": 27,
          "parent_id": 0,
          "topic": "poczekalnia klientów"
        },
        {
          "clients": 0,
          "id": 29,
          "items": [],
          "name": "[*spacer0]✦✦✦",
          "order": 28,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 30,
          "items": [],
          "name": "[cspacer15]",
          "order": 29,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 47,
          "items": [],
          "name": "[cspacer4]___",
          "order": 30,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 38,
          "items": [],
          "name": "[cspacer17]",
          "order": 31,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 164873,
          "items": [
            {
              "clients": 0,
              "id": 164874,
              "items": [],
              "name": "gaming 1",
              "order": 0,
              "parent_id": 164873,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 164875,
              "items": [],
              "name": "gaming 2",
              "order": 164874,
              "parent_id": 164873,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 164876,
              "items": [],
              "name": "gaming 3",
              "order": 164875,
              "parent_id": 164873,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 164879,
              "items": [],
              "name": "gaming 4",
              "order": 164876,
              "parent_id": 164873,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 164880,
              "items": [],
              "name": "gaming 5",
              "order": 164879,
              "parent_id": 164873,
              "topic": ""
            }
          ],
          "name": "[cspacer0]MULTIGAMING",
          "order": 38,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 44,
          "items": [],
          "name": "[cspacer19]",
          "order": 39,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 46,
          "items": [],
          "name": "[cspacer3]___",
          "order": 44,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 52,
          "items": [],
          "name": "[cspacer20]",
          "order": 46,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 48,
          "items": [],
          "name": "[cspacer16]",
          "order": 47,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 31,
          "items": [
            {
              "clients": 0,
              "id": 32,
              "items": [],
              "name": "kanał 1",
              "order": 0,
              "parent_id": 31,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 33,
              "items": [],
              "name": "kanał 2",
              "order": 32,
              "parent_id": 31,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 34,
              "items": [],
              "name": "kanał 3",
              "order": 33,
              "parent_id": 31,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 36,
              "items": [],
              "name": "kanał 4",
              "order": 34,
              "parent_id": 31,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 37,
              "items": [],
              "name": "kanał 5",
              "order": 36,
              "parent_id": 31,
              "topic": ""
            }
          ],
          "name": "[cspacer0]POGADUCHY",
          "order": 48,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 50,
          "items": [],
          "name": "[cspacer0]PRIVATE CHANNELS",
          "order": 49,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 51,
          "items": [],
          "name": "[*spacer02]┅",
          "order": 50,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 49,
          "items": [],
          "name": "[*spacer01]┅",
          "order": 52,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 54,
          "items": [],
          "name": "[cspacer07]",
          "order": 53,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 55,
          "items": [],
          "name": "[*spacer01]━",
          "order": 54,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 56,
          "items": [],
          "name": "[cspacer08]",
          "order": 55,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 57,
          "items": [],
          "name": "[cspacer0]⫷ STREFA VIP ⫸",
          "order": 56,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 58,
          "items": [],
          "name": "[cspacer09]",
          "order": 57,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 60,
          "items": [],
          "name": "[*spacer02]━",
          "order": 58,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 20,
          "items": [],
          "name": "[cspacer11]",
          "order": 59,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 59,
          "items": [],
          "name": "[cspacer10]",
          "order": 60,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 3,
          "items": [],
          "name": "[spacer01]",
          "order": 81,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 81,
          "items": [],
          "name": "[spacer0]Version Maintenance 2.0.0.2",
          "order": 82,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 28,
          "items": [],
          "name": "POMOC",
          "order": 164368,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 164883,
          "items": [],
          "name": "[cspacer18]",
          "order": 164873,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 39,
          "items": [
            {
              "clients": 0,
              "id": 41,
              "items": [],
              "name": "max 2",
              "order": 0,
              "parent_id": 39,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 42,
              "items": [],
              "name": "max 3",
              "order": 41,
              "parent_id": 39,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 43,
              "items": [],
              "name": "max 4",
              "order": 42,
              "parent_id": 39,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 164723,
              "items": [],
              "name": "max 5",
              "order": 43,
              "parent_id": 39,
              "topic": ""
            }
          ],
          "name": "[cspacer0]MAX",
          "order": 164883,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 164906,
          "items": [],
          "name": "[cspacer04b]",
          "order": 164905,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 15,
          "items": [],
          "name": "[cspacer1]♫ RADIO 24/7 ♫",
          "order": 164906,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 164943,
          "items": [],
          "name": "[cspacer05b]",
          "order": 164942,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 17,
          "items": [],
          "name": "[cspacer2]___",
          "order": 164943,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6,
          "items": [],
          "name": "[cspacer0]✮✮✮ ADMINISTRACJA ✮✮✮",
          "order": 164944,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "3mcUNHwU7ggCSfnrV2pdnJ1W/Hc=",
    "platform": "Linux",
    "created": 1662573574,
    "uptime": 5618640,
    "steam_id": null,
    "domain": null,
    "id": 10733919,
    "ip": "95.171.119.163",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Włocławek",
    "description": "Witaj na serwerze ALIEN GAMING     Wpisując !!komendy do czat N-ALIEN wyświetli ci się lista komend i regulamin serwera.  !!register - Rejestracja",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1771276858,
    "score": 0,
    "last_online": 1776897616,
    "icon": null,
    "name": "ALIEN GAMING",
    "connect": "95.171.119.163:9987",
    "request": "95.171.119.163:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 4,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "PL",
    "status": true,
    "votes": 0,
    "points": 66,
    "add_date": 1765927486,
    "last_update": 1776897616,
    "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": 81,
    "language": "pl",
    "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/10733919");
$data = json_decode($json, true);
var_dump($data);