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

text
https://api.gamemonitoring.ru/servers/11142863
json
{
  "response": {
    "channels": {
      "onlinecount": 51,
      "items": [
        {
          "clients": 0,
          "id": 11,
          "items": [],
          "name": "[*spacer11116579112111122115111533311]",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 12,
          "items": [],
          "name": "[cspacer45]┏╋━━━━━━◥◣◆◢◤━━━━━━╋┓",
          "order": 10,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 22,
          "items": [],
          "name": "[*spacer1111657911263111122115111533311]",
          "order": 11,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 16,
          "items": [],
          "name": "[cspacer4661]٠•● ●•٠",
          "order": 12,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 14,
          "items": [],
          "name": "[cspacer01]٠•●  TEAMSPEAK 3 ●•٠",
          "order": 13,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 78,
          "items": [],
          "name": "[cspacer03]٠•●  BY VUZQII ●•٠",
          "order": 14,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 19,
          "items": [],
          "name": "[*spacer111165791121211122115111533311]",
          "order": 15,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 13,
          "items": [],
          "name": "[cspacer0]٠•● UNIONSQD.EU ●•٠",
          "order": 16,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 15,
          "items": [],
          "name": "[cspacer4335]┗╋━━━━━━◥◣◆◢◤━━━━━━╋┛",
          "order": 18,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 46,
          "items": [],
          "name": "[*spacer11116579133311]",
          "order": 19,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 23,
          "items": [],
          "name": "[*spacer110011331155136211331131111331]━",
          "order": 20,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 10,
          "items": [],
          "name": "[*spacer11116579112111122211511133311]",
          "order": 22,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 24,
          "items": [
            {
              "clients": 1,
              "id": 29,
              "items": [],
              "name": "»» Welcome",
              "order": 0,
              "parent_id": 24,
              "topic": ""
            }
          ],
          "name": "[cspacer0]٠•● Home Base ●•٠",
          "order": 23,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 31,
          "items": [],
          "name": "[*spacer1111657911212111221135111533311]",
          "order": 24,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 33,
          "items": [
            {
              "clients": 0,
              "id": 35,
              "items": [],
              "name": "»» Vuzqii Room",
              "order": 0,
              "parent_id": 33,
              "topic": ""
            }
          ],
          "name": "[cspacer0]٠•● Admin Rooms ●•٠",
          "order": 28,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 28,
          "items": [],
          "name": "[*spacer11001133115513631]━",
          "order": 31,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 38,
          "items": [],
          "name": "[*spacer111162]",
          "order": 33,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 39,
          "items": [],
          "name": "[*spacer1100113331]━",
          "order": 38,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 41,
          "items": [
            {
              "clients": 5,
              "id": 42,
              "items": [],
              "name": "»» Public Room",
              "order": 0,
              "parent_id": 41,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 43,
              "items": [],
              "name": "»» Private Room",
              "order": 42,
              "parent_id": 41,
              "topic": ""
            }
          ],
          "name": "[cspacer0]٠•● Call of Duty Series ●•٠",
          "order": 39,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 47,
          "items": [],
          "name": "[*spacer1112162]",
          "order": 41,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 20,
          "items": [],
          "name": "[*spacer1111657911211221122115111533311]",
          "order": 44,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 44,
          "items": [],
          "name": "[*spacer1111657911221533311]",
          "order": 46,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 48,
          "items": [],
          "name": "[*spacer110011331]━",
          "order": 47,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 49,
          "items": [
            {
              "clients": 0,
              "id": 50,
              "items": [],
              "name": "»» Public Room",
              "order": 0,
              "parent_id": 49,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 51,
              "items": [],
              "name": "»» Private Room",
              "order": 50,
              "parent_id": 49,
              "topic": ""
            }
          ],
          "name": "[cspacer0]٠•● Battlefield Series ●•٠",
          "order": 48,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 52,
          "items": [],
          "name": "[*spacer11122162]",
          "order": 49,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 54,
          "items": [],
          "name": "[*spacer1100113231]━",
          "order": 52,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 55,
          "items": [
            {
              "clients": 0,
              "id": 56,
              "items": [],
              "name": "»» Public Room",
              "order": 0,
              "parent_id": 55,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 57,
              "items": [],
              "name": "»» Private Room",
              "order": 56,
              "parent_id": 55,
              "topic": ""
            }
          ],
          "name": "[cspacer0]٠•● League of Legends ●•٠",
          "order": 54,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 60,
          "items": [],
          "name": "[*spacer1111262]",
          "order": 55,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 61,
          "items": [],
          "name": "[*spacer11001123231]━",
          "order": 60,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 63,
          "items": [
            {
              "clients": 0,
              "id": 64,
              "items": [],
              "name": "»» Public Room",
              "order": 0,
              "parent_id": 63,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 65,
              "items": [],
              "name": "»» Private Room",
              "order": 64,
              "parent_id": 63,
              "topic": ""
            }
          ],
          "name": "[cspacer0]٠•● Friends Rooms ●•٠",
          "order": 61,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 66,
          "items": [],
          "name": "[*spacer111122262]",
          "order": 63,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 67,
          "items": [],
          "name": "[*spacer110301123231]━",
          "order": 66,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 68,
          "items": [
            {
              "clients": 0,
              "id": 69,
              "items": [],
              "name": "»» 30-",
              "order": 0,
              "parent_id": 68,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 70,
              "items": [],
              "name": "»» 30+",
              "order": 69,
              "parent_id": 68,
              "topic": ""
            }
          ],
          "name": "[cspacer0]٠•● Away From Keyboard ●•٠",
          "order": 67,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 71,
          "items": [],
          "name": "[*spacer1112122262]",
          "order": 68,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 72,
          "items": [],
          "name": "[*spacer11030112366231]━",
          "order": 71,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 73,
          "items": [],
          "name": "[*spacer114512122262]",
          "order": 72,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 74,
          "items": [],
          "name": "[cspacer099]★ ★ All Rights Reserved. ★ ★",
          "order": 73,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 75,
          "items": [],
          "name": "[cspacer099] ٠•● Vuzqii & Iznogod ●•٠",
          "order": 74,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 18,
          "items": [],
          "name": "[cspacer46561]٠•● ●•٠",
          "order": 78,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "qzoNbRVMZfEUQ5f10O2IbPNyfdo=",
    "platform": "Linux",
    "created": 1776607947,
    "uptime": 2084868,
    "steam_id": null,
    "domain": null,
    "id": 11142863,
    "ip": "78.47.217.50",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Nuremberg",
    "description": "Welcome to TeamSpeak, check www.teamspeak.com for latest information\n**Welcome to unionsqd-Gaming -> www.unionsqd.eu**",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776618211,
    "score": 0,
    "last_online": 1778692816,
    "icon": null,
    "name": "=[TS3]=  www.unionsqd.eu",
    "connect": "78.47.217.50:9987",
    "request": "78.47.217.50:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 6,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": true,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 69,
    "add_date": 1770933677,
    "last_update": 1778692816,
    "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": 63,
    "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/11142863");
$data = json_decode($json, true);
var_dump($data);