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

text
https://api.gamemonitoring.ru/servers/11143196
json
{
  "response": {
    "channels": {
      "onlinecount": 86,
      "items": [
        {
          "clients": 0,
          "id": 6968,
          "items": [],
          "name": "[spacer01]",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6969,
          "items": [],
          "name": "[cspacer0]\\n💡 SERVER RULES 💡",
          "order": 6968,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6970,
          "items": [],
          "name": "[cspacer0]  SERVER INFO",
          "order": 6969,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6971,
          "items": [],
          "name": "[cspacer0]┌────────────────────────┐",
          "order": 6970,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6972,
          "items": [],
          "name": "[cspacer06] 🔞 STAFF ZONE 🔞",
          "order": 6971,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6973,
          "items": [],
          "name": "[cspacer0]└────────────────────────┘",
          "order": 6972,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6974,
          "items": [],
          "name": "[*spacer05] ·",
          "order": 6973,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6975,
          "items": [
            {
              "clients": 0,
              "id": 6976,
              "items": [],
              "name": "olle",
              "order": 0,
              "parent_id": 6975,
              "topic": ""
            }
          ],
          "name": "Camere STAFF",
          "order": 6974,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6977,
          "items": [],
          "name": "[*spacer06] ·",
          "order": 6975,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6978,
          "items": [
            {
              "clients": 0,
              "id": 6979,
              "items": [],
              "name": "Premium 1",
              "order": 0,
              "parent_id": 6978,
              "topic": ""
            }
          ],
          "name": "Camere Premium",
          "order": 6977,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6980,
          "items": [],
          "name": "[*spacer13]─",
          "order": 6978,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6981,
          "items": [],
          "name": "[spaceredsgfhg0]",
          "order": 6980,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6982,
          "items": [],
          "name": "[cspacer10]┌────────────────────────┐",
          "order": 6981,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6983,
          "items": [],
          "name": "[cspacer06]🌐  LOBBY / WELCOME 🌐",
          "order": 6982,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6984,
          "items": [],
          "name": "[cspacer07]└────────────────────────┘",
          "order": 6983,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6985,
          "items": [],
          "name": "[spacer0ff]",
          "order": 6984,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6986,
          "items": [],
          "name": "[*spacer055] ·",
          "order": 6985,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 6987,
          "items": [],
          "name": "[cspacer0] Welcome to TS.EXPEND.RO",
          "order": 6986,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6989,
          "items": [],
          "name": "[cspacer100]┌────────────────────────┐",
          "order": 6987,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6994,
          "items": [],
          "name": "Pub #1 👑 (max 2 users )",
          "order": 6988,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6990,
          "items": [],
          "name": "[cspacer06]  PUBLIC AREA",
          "order": 6989,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6991,
          "items": [],
          "name": "[cspacer07f]└────────────────────────┘",
          "order": 6990,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6992,
          "items": [],
          "name": "[*spacer0554] ·",
          "order": 6991,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6993,
          "items": [],
          "name": "[cspacer0] Public Channels",
          "order": 6992,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6988,
          "items": [],
          "name": "[*spacer133]─",
          "order": 6993,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6995,
          "items": [],
          "name": "Pub #2 👑 (max 2 users)",
          "order": 6994,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6996,
          "items": [],
          "name": "Pub #3 👑 (max 5 users)",
          "order": 6995,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6997,
          "items": [],
          "name": "Pub #4 👑 (max 5 users)",
          "order": 6996,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6998,
          "items": [],
          "name": "[spacer0fdbg]",
          "order": 6997,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7030,
          "items": [],
          "name": "[*spacer05344] ··",
          "order": 6998,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7000,
          "items": [],
          "name": "[cspacer1005]┌────────────────────────┐",
          "order": 6999,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7001,
          "items": [],
          "name": "[cspacer06] 🔽🔽🔽 MIX ARENA 🔽🔽🔽",
          "order": 7000,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7002,
          "items": [],
          "name": "[cspacer0d7]└────────────────────────┘",
          "order": 7001,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7003,
          "items": [],
          "name": "[cspacer0]\\n📝 MIX ARENA RULES 📝",
          "order": 7002,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7004,
          "items": [],
          "name": "[cspacer0]\\n📢 MIX ARENA INFO 📢",
          "order": 7003,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7005,
          "items": [],
          "name": "MIX ARENA - Staff",
          "order": 7004,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7006,
          "items": [],
          "name": "MIX ARENA - Assistance",
          "order": 7005,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7007,
          "items": [],
          "name": "MIX ARENA - Verification Room #1",
          "order": 7006,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7008,
          "items": [],
          "name": "MIX ARENA - Verification Room #2",
          "order": 7007,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7009,
          "items": [],
          "name": "[spacer0sgd]",
          "order": 7008,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7010,
          "items": [],
          "name": "MIX ARENA - LOBBY",
          "order": 7009,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7011,
          "items": [],
          "name": "[spacer0sdfgb]",
          "order": 7010,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7012,
          "items": [
            {
              "clients": 0,
              "id": 7014,
              "items": [],
              "name": "T",
              "order": 0,
              "parent_id": 7012,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 7013,
              "items": [],
              "name": "CT",
              "order": 7014,
              "parent_id": 7012,
              "topic": ""
            }
          ],
          "name": "MIX1.EXPEND.RO     [DE]",
          "order": 7011,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7015,
          "items": [
            {
              "clients": 0,
              "id": 7016,
              "items": [],
              "name": "CT",
              "order": 0,
              "parent_id": 7015,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 7017,
              "items": [],
              "name": "T",
              "order": 7016,
              "parent_id": 7015,
              "topic": ""
            }
          ],
          "name": "MIX2.EXPEND.RO     [DE]",
          "order": 7012,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7018,
          "items": [
            {
              "clients": 0,
              "id": 7019,
              "items": [],
              "name": "CT",
              "order": 0,
              "parent_id": 7018,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 7020,
              "items": [],
              "name": "T",
              "order": 7019,
              "parent_id": 7018,
              "topic": ""
            }
          ],
          "name": "MIX3.EXPEND.RO     [DE]",
          "order": 7015,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7021,
          "items": [
            {
              "clients": 0,
              "id": 7022,
              "items": [],
              "name": "CT",
              "order": 0,
              "parent_id": 7021,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 7023,
              "items": [],
              "name": "T",
              "order": 7022,
              "parent_id": 7021,
              "topic": ""
            }
          ],
          "name": "MIX4.EXPEND.RO     [DE]",
          "order": 7018,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7024,
          "items": [
            {
              "clients": 0,
              "id": 7025,
              "items": [],
              "name": "CT",
              "order": 0,
              "parent_id": 7024,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 7026,
              "items": [],
              "name": "T",
              "order": 7025,
              "parent_id": 7024,
              "topic": ""
            }
          ],
          "name": "MIX5.EXPEND.RO     [RO]",
          "order": 7021,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7027,
          "items": [],
          "name": "[spacer0ddd]",
          "order": 7024,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7028,
          "items": [],
          "name": "MIX AFK",
          "order": 7027,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7029,
          "items": [],
          "name": "[spacerdsgfgf0]",
          "order": 7028,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7037,
          "items": [],
          "name": "[*spacer0543] ·",
          "order": 7029,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7031,
          "items": [],
          "name": "[cspacer0]🏆 Gaming Servers 🏆",
          "order": 7030,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7032,
          "items": [],
          "name": "[*spacer05344] ·",
          "order": 7031,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 7036,
          "items": [
            {
              "clients": 0,
              "id": 7071,
              "items": [
                {
                  "clients": 1,
                  "id": 7192,
                  "items": [],
                  "name": "SEDINTA STAFF",
                  "order": 0,
                  "parent_id": 7071,
                  "topic": ""
                }
              ],
              "name": "OLDSCHOOL AFK",
              "order": 0,
              "parent_id": 7036,
              "topic": ""
            }
          ],
          "name": "OLDSCHOOL.EXPEND.RO",
          "order": 7032,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6999,
          "items": [],
          "name": "[*spacer0544] ·",
          "order": 7033,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7045,
          "items": [],
          "name": "[*spacer055df] ·",
          "order": 7036,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7039,
          "items": [],
          "name": "[cspacer0]🎮 Gaming Channels 🎮",
          "order": 7037,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7040,
          "items": [],
          "name": "Gaming #1",
          "order": 7039,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7041,
          "items": [],
          "name": "Gaming #2",
          "order": 7040,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7042,
          "items": [],
          "name": "Gaming #3",
          "order": 7041,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7043,
          "items": [],
          "name": "[*spacer055d] ·",
          "order": 7042,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7044,
          "items": [],
          "name": "[spacer0aSFD]",
          "order": 7043,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7046,
          "items": [],
          "name": "[spacer0sadgfb]",
          "order": 7044,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7033,
          "items": [
            {
              "clients": 0,
              "id": 7034,
              "items": [],
              "name": "Staff Only 🔏",
              "order": 0,
              "parent_id": 7033,
              "topic": ""
            }
          ],
          "name": "RESPAWN.EXPEND.RO",
          "order": 7045,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7047,
          "items": [],
          "name": "[*spacer134242dd]─",
          "order": 7046,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7048,
          "items": [],
          "name": "[cspacer0] Camere Permanente",
          "order": 7047,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7049,
          "items": [],
          "name": "[*spacer142451623dd]─",
          "order": 7048,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7050,
          "items": [],
          "name": "Permanent !",
          "order": 7049,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7051,
          "items": [],
          "name": "[*spacer13dd]─",
          "order": 7050,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7052,
          "items": [],
          "name": "[cspacer0] Camere Temporare",
          "order": 7051,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7053,
          "items": [],
          "name": "[*spacer133dd]─",
          "order": 7052,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "p1U+Ctsu56qL+EPlXkAf9tuhAkw=",
    "platform": "Linux",
    "created": 1756232231,
    "uptime": 3005733,
    "steam_id": null,
    "domain": null,
    "id": 11143196,
    "ip": "137.74.5.69",
    "port": 9752,
    "query": 10011,
    "color": 0,
    "city": "Warsaw",
    "description": "Bine ai venit pe Ts.Expend.Ro",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1773021728,
    "score": 0,
    "last_online": 1776034836,
    "icon": null,
    "name": "TS.EXPEND.RO # WWW.EXPEND.RO",
    "connect": "137.74.5.69:9752",
    "request": "137.74.5.69:10011",
    "map": null,
    "gamemode": null,
    "version": "3.12.1 Build: 1585305527",
    "numplayers": 3,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "PL",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1771451047,
    "last_update": 1776034836,
    "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": 110,
    "language": "pl",
    "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/11143196");
$data = json_decode($json, true);
var_dump($data);