JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11142901
json
{
  "response": {
    "channels": {
      "onlinecount": 53,
      "items": [
        {
          "clients": 0,
          "id": 14756,
          "items": [],
          "name": "[cspacer999]Komanda",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 124,
          "items": [],
          "name": "[cspacer]--Žaidimų Kanalai--",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1481,
          "items": [],
          "name": "Opšrūtų taškas",
          "order": 5,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 5,
          "items": [
            {
              "clients": 0,
              "id": 5742,
              "items": [],
              "name": "SUB",
              "order": 0,
              "parent_id": 5,
              "topic": ""
            }
          ],
          "name": "Deica CHANNEL",
          "order": 69,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 69,
          "items": [],
          "name": "[cspacer]--Privatūs kanalai--",
          "order": 120,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 127,
          "items": [],
          "name": "Minecraft Kanalas",
          "order": 122,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 122,
          "items": [],
          "name": "League of Legends Kanalas",
          "order": 123,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1100,
          "items": [],
          "name": "CS:GO Kanalas",
          "order": 124,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 120,
          "items": [],
          "name": "Muzikos Kanalas",
          "order": 125,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 590,
          "items": [],
          "name": "Lineage 2 Kanalas",
          "order": 127,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 1,
          "items": [],
          "name": "REZ.LT Main Room",
          "order": 128,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1818,
          "items": [],
          "name": "GTA 5 Kanalas",
          "order": 590,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 123,
          "items": [],
          "name": "Dota 2 Kanalas",
          "order": 1100,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1485,
          "items": [],
          "name": "Hardo Channel",
          "order": 1481,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1966,
          "items": [
            {
              "clients": 0,
              "id": 2432,
              "items": [],
              "name": "=SaR= Elitnye Pacany N1",
              "order": 0,
              "parent_id": 1966,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 6227,
              "items": [],
              "name": "Krasiвые malьчики-чики :D",
              "order": 2432,
              "parent_id": 1966,
              "topic": ""
            }
          ],
          "name": "=SaR= Elitnye Pacany N2",
          "order": 1485,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1817,
          "items": [],
          "name": "Rust Kanalas",
          "order": 1816,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 3548,
          "items": [],
          "name": "Overwatch Kanalas",
          "order": 1817,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1816,
          "items": [],
          "name": "Payday 2 Kanalas",
          "order": 1818,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 3616,
          "items": [],
          "name": "Ch0k3* Kanalas",
          "order": 1966,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 9598,
          "items": [],
          "name": "Battle Royale Fortnite Kanalas",
          "order": 3548,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 3718,
          "items": [],
          "name": "Kebabu degustatoriai CIA CIA CIA CIA CIA",
          "order": 3616,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 3789,
          "items": [],
          "name": "Memories",
          "order": 3718,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 4286,
          "items": [
            {
              "clients": 0,
              "id": 9096,
              "items": [],
              "name": "AFK",
              "order": 0,
              "parent_id": 4286,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 9097,
              "items": [],
              "name": "Farming Simulator 17",
              "order": 9096,
              "parent_id": 4286,
              "topic": ""
            }
          ],
          "name": "CS:GO",
          "order": 3789,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 5609,
          "items": [],
          "name": "coco",
          "order": 4286,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6003,
          "items": [],
          "name": "LOL MACHAS; LOL < DOTA 2",
          "order": 5609,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6708,
          "items": [],
          "name": "Aimu kanalas",
          "order": 6003,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7336,
          "items": [],
          "name": "Akropolis",
          "order": 6591,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6591,
          "items": [
            {
              "clients": 0,
              "id": 6777,
              "items": [],
              "name": "Party 1",
              "order": 0,
              "parent_id": 6591,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 6778,
              "items": [],
              "name": "Party 2",
              "order": 6777,
              "parent_id": 6591,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 6779,
              "items": [],
              "name": "AFK",
              "order": 6778,
              "parent_id": 6591,
              "topic": ""
            }
          ],
          "name": "DreamTeam",
          "order": 6708,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 11226,
          "items": [],
          "name": ",,Mortal Kombat'",
          "order": 7336,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 11428,
          "items": [],
          "name": "ETS 2 Kanalas",
          "order": 9598,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 12585,
          "items": [],
          "name": "Blood",
          "order": 11226,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 12465,
          "items": [],
          "name": "Realm Royale Kanalas",
          "order": 11428,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 125,
          "items": [],
          "name": "[cspacer]--Kiti Kanalai--",
          "order": 12465,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 13325,
          "items": [],
          "name": "Sargieciai CIAAAAAA",
          "order": 12585,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 14574,
          "items": [],
          "name": "Sargyniai :)",
          "order": 13325,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 14752,
          "items": [],
          "name": "savi",
          "order": 14574,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 14962,
          "items": [
            {
              "clients": 0,
              "id": 14963,
              "items": [],
              "name": "1",
              "order": 0,
              "parent_id": 14962,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 14964,
              "items": [],
              "name": "2",
              "order": 14963,
              "parent_id": 14962,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 14966,
              "items": [],
              "name": "3",
              "order": 14964,
              "parent_id": 14962,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 14968,
              "items": [],
              "name": "4",
              "order": 14966,
              "parent_id": 14962,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 14967,
              "items": [],
              "name": "AFK",
              "order": 14968,
              "parent_id": 14962,
              "topic": ""
            }
          ],
          "name": "FRAGORIA",
          "order": 14752,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 14912,
          "items": [],
          "name": "Administracijos Kanalas",
          "order": 14756,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 128,
          "items": [],
          "name": "[cspacer]WWW.REZ.LT",
          "order": 14912,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 14969,
          "items": [],
          "name": "[cspacer]--Laikini Kanalai--",
          "order": 14962,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "fgTrMsRFvAEMkupCtXZYvuTCfS4=",
    "platform": "Linux",
    "created": 0,
    "uptime": 70612,
    "steam_id": null,
    "domain": null,
    "id": 11142901,
    "ip": "79.98.30.225",
    "port": 9987,
    "query": 9987,
    "project_id": null,
    "color": 0,
    "city": "Vilnius",
    "description": "Sveiki atvykę į rez.lt TeamSpeak3 serverį. Norint gauti privatų kanalą, susisiekite su KoGeL* arba Deica.",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780953266,
    "last_online": 1781293230,
    "icon": null,
    "name": "REZ.LT TS3 Server",
    "connect": "79.98.30.225:9987",
    "request": "79.98.30.225:9987",
    "map": null,
    "gamemode": null,
    "version": "3.0.11.4 Build: 1439904634",
    "numplayers": 1,
    "maxplayers": 512,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "LT",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1770933678,
    "last_update": 1781293230,
    "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": 140,
    "language": "lt",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11142901");
$data = json_decode($json, true);
var_dump($data);