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

text
https://api.gamemonitoring.ru/servers/11142895
json
{
  "response": {
    "channels": {
      "onlinecount": 21,
      "items": [
        {
          "clients": 0,
          "id": 3,
          "items": [],
          "name": "[spacer0]",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 4,
          "items": [],
          "name": "~ Public -1",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1,
          "items": [],
          "name": "[*spacer0]-",
          "order": 2,
          "parent_id": 0,
          "topic": "Default Channel has no topic"
        },
        {
          "clients": 0,
          "id": 2,
          "items": [],
          "name": "[spacer0]=\\pLuV\\p= TEAMSPEAK",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6,
          "items": [],
          "name": "~ Public -2",
          "order": 4,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 9,
          "items": [],
          "name": "[*spacer3]-",
          "order": 6,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 102,
          "items": [],
          "name": "Dutch.Only",
          "order": 8,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 8,
          "items": [],
          "name": "[cspacer3]-= =\\pLuV\\p=  Gaming Channels =-",
          "order": 9,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 638,
          "items": [],
          "name": "Path Of Exile",
          "order": 12,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 441,
          "items": [],
          "name": "League Of Legends",
          "order": 13,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 31,
          "items": [],
          "name": "Private",
          "order": 33,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 114,
          "items": [],
          "name": "Call.Of.Duty.Warzone",
          "order": 102,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 12,
          "items": [],
          "name": "Mohaa",
          "order": 114,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 33,
          "items": [
            {
              "clients": 0,
              "id": 43,
              "items": [],
              "name": "Working/School",
              "order": 0,
              "parent_id": 33,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 322,
              "items": [],
              "name": "Sleeping",
              "order": 43,
              "parent_id": 33,
              "topic": "Sleeping"
            },
            {
              "clients": 0,
              "id": 77,
              "items": [],
              "name": "Music/stream [EN]",
              "order": 61,
              "parent_id": 33,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 61,
              "items": [],
              "name": "Dinner/eating/",
              "order": 322,
              "parent_id": 33,
              "topic": ""
            }
          ],
          "name": "Away from keyboard",
          "order": 421,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 421,
          "items": [
            {
              "clients": 0,
              "id": 351,
              "items": [],
              "name": "Party with Dr. Dj HenkTheMusicBot (18+)",
              "order": 0,
              "parent_id": 421,
              "topic": ""
            }
          ],
          "name": "!!!! NO RECORDING IN CHANNEL BELOW !!!!",
          "order": 441,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 13,
          "items": [],
          "name": "COD4",
          "order": 638,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "y9ydzftKyrVDCDI9YLQ3JjUK/L0=",
    "platform": "Linux",
    "created": 1482095762,
    "uptime": 4567367,
    "steam_id": null,
    "domain": null,
    "id": 11142895,
    "ip": "217.182.199.4",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Limburg an der Lahn",
    "description": "Welcome to TeamSpeak, check www.teamspeak.com for latest information",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1774642346,
    "score": 0,
    "last_online": 1776895818,
    "icon": null,
    "name": "=\\pLuV\\p= GamingClan Server @ www.luvclan.eu",
    "connect": "217.182.199.4:9987",
    "request": "217.182.199.4:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 1,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1770933678,
    "last_update": 1776895818,
    "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": 124,
    "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/11142895");
$data = json_decode($json, true);
var_dump($data);