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

text
https://api.gamemonitoring.ru/servers/11142873
json
{
  "response": {
    "channels": {
      "onlinecount": 16,
      "items": [
        {
          "clients": 0,
          "id": 10,
          "items": [],
          "name": "[cspacer0]Willkommen",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2,
          "items": [],
          "name": "[cspacer0]--xxxXXX-ADMINBereich-XXXxxx--",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 4,
          "items": [
            {
              "clients": 0,
              "id": 5,
              "items": [],
              "name": "Anregungen und Vorschläge",
              "order": 0,
              "parent_id": 4,
              "topic": ""
            }
          ],
          "name": "4 Augengespräch",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 197,
          "items": [],
          "name": "ADMIN",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6,
          "items": [],
          "name": "[cspacer0]--xxxXXX-ADMIN-XXXxxx--",
          "order": 4,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 75,
          "items": [],
          "name": "Finanzamt Stralsund",
          "order": 6,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 131,
          "items": [],
          "name": "Eteria Restart/ WoR/ StarRail / SL Arise",
          "order": 9,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 1,
          "items": [],
          "name": "Eingangshalle",
          "order": 10,
          "parent_id": 0,
          "topic": "Default Channel has no topic"
        },
        {
          "clients": 0,
          "id": 114,
          "items": [],
          "name": "Zenons Channel",
          "order": 28,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 125,
          "items": [],
          "name": "Buddybude",
          "order": 75,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 3,
          "items": [],
          "name": "Alex hat Sex mit Anton best Gay Buddys",
          "order": 114,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 9,
          "items": [
            {
              "clients": 0,
              "id": 126,
              "items": [],
              "name": "Path of Exile / Ex Salted as Fuck",
              "order": 0,
              "parent_id": 9,
              "topic": ""
            }
          ],
          "name": "[*spacer0]--------",
          "order": 125,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 28,
          "items": [],
          "name": "CS:GO",
          "order": 131,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 199,
          "items": [],
          "name": "ь",
          "order": 197,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "9x4pnz+ZYQlKXApi5Ju2a583T14=",
    "platform": "Windows",
    "created": 0,
    "uptime": 973564,
    "steam_id": null,
    "domain": null,
    "id": 11142873,
    "ip": "85.114.130.139",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Düsseldorf",
    "description": "Willkommen auf Nimmerland, check",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775922118,
    "score": 0,
    "last_online": 1776895818,
    "icon": null,
    "name": "[NlG] Nimmerland Gaming",
    "connect": "85.114.130.139:9987",
    "request": "85.114.130.139:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 2,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1770933677,
    "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": 109,
    "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/11142873");
$data = json_decode($json, true);
var_dump($data);