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

text
https://api.gamemonitoring.ru/servers/11143281
json
{
  "response": {
    "channels": {
      "onlinecount": 80,
      "items": [
        {
          "clients": -1,
          "id": 2,
          "items": [],
          "name": "[rspacer] © Since 2021",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 3,
          "items": [],
          "name": "[rspacer]Online Users: 45",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 5,
          "items": [],
          "name": "[rspacer]Users record: 198",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 6,
          "items": [],
          "name": "[rspacer]Currently online team: 1",
          "order": 5,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 7,
          "items": [],
          "name": "[*spacer1s]...",
          "order": 6,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 8,
          "items": [],
          "name": "[cspacer]TS.OLDGAMERS.RO",
          "order": 7,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 9,
          "items": [],
          "name": "[cspacer]ABOUT LEVELING",
          "order": 8,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 10,
          "items": [],
          "name": "[cspacer]Channel Deletion Time",
          "order": 9,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 11,
          "items": [],
          "name": "[*spacer2]...",
          "order": 10,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 12,
          "items": [
            {
              "clients": 2,
              "id": 13,
              "items": [],
              "name": "» [OG] Query",
              "order": 0,
              "parent_id": 12,
              "topic": "parola: 2121"
            },
            {
              "clients": 0,
              "id": 14,
              "items": [],
              "name": "» [OG] TWINSENNN ; ::: ;",
              "order": 13,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 15,
              "items": [
                {
                  "clients": 0,
                  "id": 16,
                  "items": [],
                  "name": "Orgie",
                  "order": 0,
                  "parent_id": 15,
                  "topic": ""
                }
              ],
              "name": "» [OG] Ɠяєвℓιηα",
              "order": 14,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 17,
              "items": [],
              "name": "» [OG] Fritz",
              "order": 15,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 18,
              "items": [],
              "name": "» [OG] ONE",
              "order": 17,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 19,
              "items": [],
              "name": "» [OG] ClownS",
              "order": 18,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 20,
              "items": [],
              "name": "» [OG] Dark-Rose",
              "order": 19,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 21,
              "items": [],
              "name": "» [OG] CIREȘARII",
              "order": 20,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 22,
              "items": [],
              "name": "» [OG] International",
              "order": 21,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 23,
              "items": [],
              "name": "» [OG] af3n",
              "order": 22,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 24,
              "items": [],
              "name": "» [OG] echipateam",
              "order": 23,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 25,
              "items": [],
              "name": "» [OG] premier",
              "order": 24,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 102,
              "items": [],
              "name": "» [OG] GlontzWz",
              "order": 25,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2967,
              "items": [],
              "name": "» [OG] Andrei",
              "order": 26,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 1,
              "id": 26,
              "items": [
                {
                  "clients": 0,
                  "id": 27,
                  "items": [],
                  "name": "Chillzona dota2 or cs2",
                  "order": 0,
                  "parent_id": 26,
                  "topic": ""
                }
              ],
              "name": "» [OG] Chillzona",
              "order": 102,
              "parent_id": 12,
              "topic": "chill"
            }
          ],
          "name": "Premium Channels",
          "order": 11,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 28,
          "items": [],
          "name": "[*spacer9]...",
          "order": 12,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 29,
          "items": [
            {
              "clients": -1,
              "id": 30,
              "items": [],
              "name": "xaxa",
              "order": 0,
              "parent_id": 29,
              "topic": ""
            }
          ],
          "name": "Technical Support",
          "order": 28,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 31,
          "items": [],
          "name": "[*spacer19]...",
          "order": 29,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 32,
          "items": [],
          "name": "[cspacer]Can't find your channel? CTRL+F",
          "order": 31,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 33,
          "items": [],
          "name": "[cspacer220]MOST ACTIVE USERS",
          "order": 32,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 34,
          "items": [],
          "name": "[cspacer101]✅ MAIN CHANNEL - WELCOME ✅",
          "order": 33,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 35,
          "items": [],
          "name": "[cspacer66]...",
          "order": 34,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 36,
          "items": [
            {
              "clients": 2,
              "id": 37,
              "items": [],
              "name": "◘  Public 1 (MAX 2)",
              "order": 0,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 2,
              "id": 38,
              "items": [],
              "name": "◘  Public 2 (MAX 2)",
              "order": 37,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 1,
              "id": 39,
              "items": [],
              "name": "◘  Public 3 (MAX 2)",
              "order": 38,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 2,
              "id": 40,
              "items": [],
              "name": "◘  Public 4 (MAX 2)",
              "order": 39,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 2,
              "id": 41,
              "items": [],
              "name": "◘  Public 5 (MAX 2)",
              "order": 40,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 2,
              "id": 42,
              "items": [],
              "name": "◘  Public 6 (MAX 3)",
              "order": 41,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 43,
              "items": [],
              "name": "◘  Public 7 (MAX 3)",
              "order": 42,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 44,
              "items": [],
              "name": "◘  Public 8 (MAX 3)",
              "order": 43,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 45,
              "items": [],
              "name": "◘  Public 9 (MAX 3)",
              "order": 44,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 46,
              "items": [],
              "name": "◘  Public 10 (MAX 3)",
              "order": 45,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 47,
              "items": [],
              "name": "◘  Public 11 (MAX 4)",
              "order": 46,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 48,
              "items": [],
              "name": "◘  Public 12 (MAX 4)",
              "order": 47,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 49,
              "items": [],
              "name": "◘  Public 13 (MAX 4)",
              "order": 48,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 50,
              "items": [],
              "name": "◘  Public 14 (MAX 4)",
              "order": 49,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 51,
              "items": [],
              "name": "◘  Public 15 (MAX 5)",
              "order": 50,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 52,
              "items": [],
              "name": "◘  Public 16 (MAX 5)",
              "order": 51,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 53,
              "items": [],
              "name": "◘  Public 17 (MAX 6)",
              "order": 52,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 54,
              "items": [],
              "name": "◘  Public 18 (MAX 6)",
              "order": 53,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 55,
              "items": [],
              "name": "◘  Public 19 (UNLIMITED)",
              "order": 54,
              "parent_id": 36,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 56,
              "items": [],
              "name": "◘  Public 20 (UNLIMITED)",
              "order": 55,
              "parent_id": 36,
              "topic": ""
            }
          ],
          "name": "Public Channels",
          "order": 35,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 57,
          "items": [],
          "name": "[*spacer145]...",
          "order": 36,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 58,
          "items": [],
          "name": "Sleeping Room [AFK]",
          "order": 57,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 59,
          "items": [],
          "name": "[*spacer15]...",
          "order": 58,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 60,
          "items": [],
          "name": "[cspacer] CLAN ZONE",
          "order": 59,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 61,
          "items": [],
          "name": "[*spacer10]...",
          "order": 60,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 4298,
          "items": [],
          "name": "arma",
          "order": 61,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 64,
          "items": [],
          "name": "[*spacer1c0]...",
          "order": 63,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 65,
          "items": [
            {
              "clients": 0,
              "id": 66,
              "items": [],
              "name": "erz",
              "order": 0,
              "parent_id": 65,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 67,
              "items": [],
              "name": "4urka",
              "order": 66,
              "parent_id": 65,
              "topic": ""
            }
          ],
          "name": "International Channels",
          "order": 64,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 68,
          "items": [],
          "name": "[*spacer143]...",
          "order": 65,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 69,
          "items": [],
          "name": "[cspacer]Temporary Channels",
          "order": 68,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 70,
          "items": [],
          "name": "[*spacer113]...",
          "order": 69,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 4,
          "id": 5441,
          "items": [],
          "name": "Алоха",
          "order": 70,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 63,
          "items": [],
          "name": "➥   CLAN 3 СМ",
          "order": 4298,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 4,
          "id": 5442,
          "items": [],
          "name": "123332",
          "order": 5441,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 5,
          "id": 5444,
          "items": [],
          "name": "Tukaloff",
          "order": 5442,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 3,
          "id": 5447,
          "items": [],
          "name": "фесит с кентами с 0 день 13",
          "order": 5444,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 5448,
          "items": [],
          "name": "123",
          "order": 5447,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 5449,
          "items": [],
          "name": "3k chervi",
          "order": 5448,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 5450,
          "items": [],
          "name": "НеоСпецТент\\\\старокамыш дауны",
          "order": 5449,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 5451,
          "items": [],
          "name": "воч демо",
          "order": 5450,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 5452,
          "items": [],
          "name": "EBL",
          "order": 5451,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 5453,
          "items": [],
          "name": "ТИХА",
          "order": 5452,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "RqFW1akWHLL3Uw4MkRChgRJWJf0=",
    "platform": "Linux",
    "created": 1631713564,
    "uptime": 590120,
    "steam_id": null,
    "domain": "TS.OLDGAMERS.RO",
    "id": 11143281,
    "ip": "94.154.1.220",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Nuremberg",
    "description": "Важный!! Пожалуйста, подключитесь с помощью DNS вместо IP:    :           TS.OLDGAMERS.RO",
    "game": 9000043,
    "owner": 124576,
    "boosts": 1,
    "last_offline": 1775752925,
    "score": 0,
    "last_online": 1776343211,
    "icon": null,
    "name": "TS.OLDGAMERS.RO \\p 💗 Conect & Chil💙",
    "connect": "TS.OLDGAMERS.RO:9987",
    "request": "94.154.1.220:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 47,
    "maxplayers": 256,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 103,
    "add_date": 1771602660,
    "last_update": 1776343211,
    "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": 10,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": {
      "username": "munteana44",
      "avatar": "no.jpg",
      "last_online": 1774638901
    },
    "mods": [],
    "disabled_modules": []
  }
}

Примеры кода

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