面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11667881
json
{
  "response": {
    "channels": {
      "onlinecount": 65,
      "items": [
        {
          "clients": 1,
          "id": 2,
          "items": [],
          "name": "Гастивая",
          "order": 0,
          "parent_id": 0,
          "topic": "Default Channel has no topic"
        },
        {
          "clients": 0,
          "id": 33141,
          "items": [
            {
              "clients": 0,
              "id": 1380,
              "items": [],
              "name": "teamspeak addess\\psave profile",
              "order": 0,
              "parent_id": 33141,
              "topic": ""
            }
          ],
          "name": "[*spacer0]+_",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 18609,
          "items": [],
          "name": "ggbb",
          "order": 1824,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 41307,
          "items": [],
          "name": "Крутые парни только здесь!!!!!!",
          "order": 4420,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 9665,
          "items": [],
          "name": "Мир отмороженных",
          "order": 8125,
          "parent_id": 0,
          "topic": "cold mf"
        },
        {
          "clients": 0,
          "id": 68527,
          "items": [],
          "name": "натуральные пользователи MAX",
          "order": 9595,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 50182,
          "items": [],
          "name": "HoN-хуён и марафон (строго 16+)",
          "order": 9665,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 56092,
          "items": [],
          "name": "QuestionMark",
          "order": 11036,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1824,
          "items": [
            {
              "clients": 0,
              "id": 2262,
              "items": [],
              "name": "dobro",
              "order": 0,
              "parent_id": 1824,
              "topic": ""
            }
          ],
          "name": "Dota 2",
          "order": 14312,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 4420,
          "items": [
            {
              "clients": 0,
              "id": 4849,
              "items": [],
              "name": "b",
              "order": 0,
              "parent_id": 4420,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 6081,
              "items": [],
              "name": "kabinet",
              "order": 4849,
              "parent_id": 4420,
              "topic": ""
            }
          ],
          "name": "de",
          "order": 18609,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 48158,
          "items": [],
          "name": "Flaming Pro",
          "order": 19152,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 48318,
          "items": [],
          "name": "Selectel",
          "order": 25688,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 48459,
          "items": [],
          "name": "rust вова двушка питон жопа",
          "order": 26426,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 39102,
          "items": [],
          "name": "[*spacer0]_*",
          "order": 33141,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 8125,
          "items": [],
          "name": "Шептуны",
          "order": 34103,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 11036,
          "items": [],
          "name": "GTK*DYSHA",
          "order": 34331,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 34103,
          "items": [],
          "name": "AFK, Sleep, Masturbate",
          "order": 39102,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 49321,
          "items": [],
          "name": "sCUM",
          "order": 41307,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 48241,
          "items": [],
          "name": "playman faceit",
          "order": 48158,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 9595,
          "items": [
            {
              "clients": 0,
              "id": 28420,
              "items": [],
              "name": "Dota2_International",
              "order": 0,
              "parent_id": 9595,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 6241,
              "items": [],
              "name": "Road to PRO (GTK)",
              "order": 17173,
              "parent_id": 9595,
              "topic": "MysTic sQuad team"
            },
            {
              "clients": 0,
              "id": 17173,
              "items": [],
              "name": "treasure is here",
              "order": 28420,
              "parent_id": 9595,
              "topic": ""
            }
          ],
          "name": "Lancer /qwq/ - VPNteam",
          "order": 48241,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 34331,
          "items": [],
          "name": "dRaTe_mix",
          "order": 48318,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 19152,
          "items": [],
          "name": "sm1th - горящий йух №1 :)",
          "order": 48459,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 51859,
          "items": [],
          "name": "bebra",
          "order": 49321,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 26426,
          "items": [],
          "name": "[*spacer0123123]+_",
          "order": 50182,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 52161,
          "items": [],
          "name": "гамно топает",
          "order": 51859,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 52502,
          "items": [],
          "name": "mein kampf",
          "order": 52161,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 52667,
          "items": [],
          "name": "хабиб",
          "order": 52502,
          "parent_id": 0,
          "topic": "хабиб"
        },
        {
          "clients": 0,
          "id": 53459,
          "items": [],
          "name": "новый год",
          "order": 52667,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 53982,
          "items": [],
          "name": "Pubg",
          "order": 53459,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 54337,
          "items": [],
          "name": "костя хуй",
          "order": 53982,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 54376,
          "items": [],
          "name": "ТАНКИ",
          "order": 54337,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 54923,
          "items": [],
          "name": "BROCS",
          "order": 54376,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 55002,
          "items": [],
          "name": "СмарбСроу",
          "order": 54923,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 55034,
          "items": [],
          "name": "121212",
          "order": 55002,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 55716,
          "items": [],
          "name": "танки1112222",
          "order": 55034,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 60149,
          "items": [],
          "name": "УКРЕП SKY HELL",
          "order": 55716,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 14312,
          "items": [
            {
              "clients": 0,
              "id": 15748,
              "items": [],
              "name": "channel 1",
              "order": 0,
              "parent_id": 14312,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 15749,
              "items": [],
              "name": "channel 2",
              "order": 15748,
              "parent_id": 14312,
              "topic": ""
            }
          ],
          "name": "The Division",
          "order": 56092,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 57254,
          "items": [],
          "name": "Хябиб",
          "order": 56498,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 58087,
          "items": [],
          "name": "KBG",
          "order": 57254,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 58192,
          "items": [],
          "name": "💢 !!!!!! BF6 !!!!!! 💢",
          "order": 58087,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 58533,
          "items": [],
          "name": "████████████████████☣☣☣█████████████████",
          "order": 58192,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 59030,
          "items": [],
          "name": "saul",
          "order": 58533,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 60709,
          "items": [],
          "name": "cs",
          "order": 59030,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 56498,
          "items": [],
          "name": "БРАТВА RF-BO",
          "order": 60149,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 60994,
          "items": [],
          "name": "22",
          "order": 60709,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 61150,
          "items": [],
          "name": "5k elo",
          "order": 60994,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 61220,
          "items": [],
          "name": "beker eblan",
          "order": 61150,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 61555,
          "items": [],
          "name": "divinity",
          "order": 61220,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 62754,
          "items": [],
          "name": "GROUNDED",
          "order": 61555,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 67704,
          "items": [],
          "name": "L2 dolbaebi",
          "order": 62754,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 70645,
          "items": [],
          "name": "DENNI DE VIT0",
          "order": 67704,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 25688,
          "items": [
            {
              "clients": 0,
              "id": 24244,
              "items": [],
              "name": "PERDUNYUNKNOWN'S FROMPOCHINKIES",
              "order": 0,
              "parent_id": 25688,
              "topic": ""
            }
          ],
          "name": "RADIO ROZHOK FM",
          "order": 68527,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 70656,
          "items": [],
          "name": "PENIS",
          "order": 70645,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 71139,
          "items": [],
          "name": "322",
          "order": 70656,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 71366,
          "items": [],
          "name": "НИКИТОС ГОУ СЮДА",
          "order": 71139,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "vDLuAm7dBl5Q6pjPOtQlP1p9nhQ=",
    "platform": "Linux",
    "created": 1292980345,
    "uptime": 148314,
    "steam_id": null,
    "domain": "ts.madwars.ru",
    "id": 11667881,
    "ip": "45.132.16.12",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Moscow",
    "description": null,
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780179321,
    "last_online": 1780281652,
    "icon": null,
    "name": "GTK GAME NETWORK",
    "connect": "ts.madwars.ru:9987",
    "request": "45.132.16.12:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.8 Build: 1779874471",
    "numplayers": 1,
    "maxplayers": 380,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 31,
    "add_date": 1780179321,
    "last_update": 1780281652,
    "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": 170,
    "language": "ru",
    "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.cn/servers/11667881");
$data = json_decode($json, true);
var_dump($data);