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

text
https://api.gamemonitoring.ru/servers/10733909
json
{
  "response": {
    "channels": {
      "onlinecount": 18,
      "items": [
        {
          "clients": -1,
          "id": 19,
          "items": [],
          "name": "[cspacer8]___",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 20,
          "items": [],
          "name": "[cspacertxt0]Additional channels are",
          "order": 19,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 21,
          "items": [],
          "name": "[cspacertxt1]created automatically",
          "order": 20,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 22,
          "items": [],
          "name": "[cspacertxt2]when needed.",
          "order": 21,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 23,
          "items": [],
          "name": "[*spacer0]___",
          "order": 22,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 24,
          "items": [],
          "name": "Main Lobby",
          "order": 23,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 25,
          "items": [],
          "name": "AFK",
          "order": 24,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 26,
          "items": [],
          "name": "Music",
          "order": 25,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 27,
          "items": [],
          "name": "[*spacer1]___",
          "order": 26,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 28,
          "items": [],
          "name": "[cspacer0]Chat & Talk",
          "order": 27,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 29,
          "items": [],
          "name": "[*spacer2]___",
          "order": 28,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 30,
          "items": [
            {
              "clients": 3,
              "id": 2738,
              "items": [],
              "name": "Public Channel 1",
              "order": 0,
              "parent_id": 30,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2762,
              "items": [],
              "name": "Public Channel 2",
              "order": 2738,
              "parent_id": 30,
              "topic": ""
            }
          ],
          "name": "[cspacer0]Public Channels",
          "order": 29,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 32,
          "items": [],
          "name": "[*spacer3]___",
          "order": 30,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 33,
          "items": [
            {
              "clients": 0,
              "id": 2661,
              "items": [],
              "name": "Channel 1",
              "order": 0,
              "parent_id": 33,
              "topic": ""
            }
          ],
          "name": "[cspacer0]Password protected Channels",
          "order": 32,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 35,
          "items": [],
          "name": "[*spacer4]___",
          "order": 33,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "lc34MTwDBpFLE5ay/hRPNb1Xqh4=",
    "platform": "Linux",
    "created": 1567286105,
    "uptime": 1019511,
    "steam_id": null,
    "domain": null,
    "id": 10733909,
    "ip": "77.90.42.28",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Düsseldorf",
    "description": "Welcome to TheVoid",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775334694,
    "score": 0,
    "last_online": 1776354619,
    "icon": null,
    "name": "TheVoid",
    "connect": "77.90.42.28:9987",
    "request": "77.90.42.28:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 8,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 71,
    "add_date": 1765927383,
    "last_update": 1776354619,
    "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": 47,
    "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/10733909");
$data = json_decode($json, true);
var_dump($data);