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

text
https://api.gamemonitoring.ru/servers/11142856
json
{
  "response": {
    "channels": {
      "onlinecount": 53,
      "items": [
        {
          "clients": -1,
          "id": 18,
          "items": [],
          "name": "[*spacer1]﹘",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 340,
          "items": [],
          "name": "[rspacer]ONLINE USERS : 7",
          "order": 18,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 21,
          "items": [],
          "name": "[cspacer]●  WCS & Server Exclusive  ●",
          "order": 20,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 22,
          "items": [],
          "name": "» WCS - Staff",
          "order": 21,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 23,
          "items": [],
          "name": "» WCS - Sohbet",
          "order": 22,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 25,
          "items": [],
          "name": "» WCS - Music #1",
          "order": 23,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 26,
          "items": [],
          "name": "» WCS - Music #2",
          "order": 25,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 27,
          "items": [],
          "name": "» WCS - Afk",
          "order": 26,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 28,
          "items": [],
          "name": "[*spacer3]﹘",
          "order": 27,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 29,
          "items": [],
          "name": "[cspacer]⮛  Permanent Rooms  ⮛",
          "order": 28,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 30,
          "items": [],
          "name": "[*spacer4]﹘",
          "order": 29,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 31,
          "items": [],
          "name": "Arceus #LASTWAR",
          "order": 30,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 32,
          "items": [],
          "name": "[*spacer5]﹘",
          "order": 31,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 35,
          "items": [],
          "name": "📢 • How to create a permanent channel ?",
          "order": 32,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 34,
          "items": [],
          "name": "📢 • For personalized bot service ?",
          "order": 33,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 36,
          "items": [],
          "name": "[*spacer6]﹘",
          "order": 34,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 33,
          "items": [],
          "name": "📢 • Rules & İnformation",
          "order": 35,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 37,
          "items": [],
          "name": "[spacer]🌎  Lobby",
          "order": 36,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 38,
          "items": [],
          "name": "[spacer]🔧  Support Channel",
          "order": 37,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 39,
          "items": [],
          "name": "[spacer]💤  Away From Keyboard",
          "order": 38,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 40,
          "items": [],
          "name": "[*spacer7]﹘",
          "order": 39,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 41,
          "items": [],
          "name": "[cspacer]⮛  Private Rooms  ⮛",
          "order": 40,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 42,
          "items": [],
          "name": "[*spacer8]﹘",
          "order": 41,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 43,
          "items": [
            {
              "clients": 0,
              "id": 44,
              "items": [],
              "name": "Room #1",
              "order": 0,
              "parent_id": 43,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 45,
              "items": [],
              "name": "Room #2",
              "order": 44,
              "parent_id": 43,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 46,
              "items": [],
              "name": "Room #3",
              "order": 45,
              "parent_id": 43,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 47,
              "items": [],
              "name": "Room #4",
              "order": 46,
              "parent_id": 43,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 48,
              "items": [],
              "name": "Room #5",
              "order": 47,
              "parent_id": 43,
              "topic": ""
            }
          ],
          "name": "• Private Rooms [2 User]",
          "order": 42,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 49,
          "items": [
            {
              "clients": 0,
              "id": 50,
              "items": [],
              "name": "Room #1",
              "order": 0,
              "parent_id": 49,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 51,
              "items": [],
              "name": "Room #2",
              "order": 50,
              "parent_id": 49,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 52,
              "items": [],
              "name": "Room #3",
              "order": 51,
              "parent_id": 49,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 53,
              "items": [],
              "name": "Room #4",
              "order": 52,
              "parent_id": 49,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 54,
              "items": [],
              "name": "Room #5",
              "order": 53,
              "parent_id": 49,
              "topic": ""
            }
          ],
          "name": "• Private Rooms [3 User]",
          "order": 43,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 55,
          "items": [
            {
              "clients": 0,
              "id": 56,
              "items": [],
              "name": "Room #1",
              "order": 0,
              "parent_id": 55,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 57,
              "items": [],
              "name": "Room #2",
              "order": 56,
              "parent_id": 55,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 58,
              "items": [],
              "name": "Room #3",
              "order": 57,
              "parent_id": 55,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 59,
              "items": [],
              "name": "Room #4",
              "order": 58,
              "parent_id": 55,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 60,
              "items": [],
              "name": "Room #5",
              "order": 59,
              "parent_id": 55,
              "topic": ""
            }
          ],
          "name": "• Private Rooms [4 User]",
          "order": 49,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 61,
          "items": [
            {
              "clients": 0,
              "id": 62,
              "items": [],
              "name": "Room #1",
              "order": 0,
              "parent_id": 61,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 63,
              "items": [],
              "name": "Room #2",
              "order": 62,
              "parent_id": 61,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 64,
              "items": [],
              "name": "Room #3",
              "order": 63,
              "parent_id": 61,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 65,
              "items": [],
              "name": "Room #4",
              "order": 64,
              "parent_id": 61,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 66,
              "items": [],
              "name": "Room #5",
              "order": 65,
              "parent_id": 61,
              "topic": ""
            }
          ],
          "name": "• Private Rooms [5 User]",
          "order": 55,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 67,
          "items": [],
          "name": "[*spacer9]﹘",
          "order": 61,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 68,
          "items": [],
          "name": "[cspacer]⮛  Temporary Rooms  ⮛",
          "order": 67,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 69,
          "items": [],
          "name": "[*spacer10]﹘",
          "order": 68,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 3,
          "id": 395,
          "items": [],
          "name": "123",
          "order": 69,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 341,
          "items": [],
          "name": "[rspacer]RECORD USERS : 19",
          "order": 340,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 20,
          "items": [],
          "name": "[*spacer2]﹘",
          "order": 341,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "SJv5PValUdOhQZMZbYYX8ik/Mbs=",
    "platform": "Linux",
    "created": 1720264044,
    "uptime": 2793268,
    "steam_id": null,
    "domain": null,
    "id": 11142856,
    "ip": "171.22.18.114",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": null,
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775985717,
    "score": 0,
    "last_online": 1778692829,
    "icon": null,
    "name": "公 WCS - Gamer Network Community © Free Channels",
    "connect": "171.22.18.114:9987",
    "request": "171.22.18.114: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": 41,
    "add_date": 1770933677,
    "last_update": 1778692829,
    "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": 144,
    "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/11142856");
$data = json_decode($json, true);
var_dump($data);