JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10454557
json
{
  "response": {
    "channels": {
      "onlinecount": 56,
      "items": [
        {
          "clients": 0,
          "id": 10,
          "items": [
            {
              "clients": 1,
              "id": 1262,
              "items": [],
              "name": "Lobby",
              "order": 0,
              "parent_id": 10,
              "topic": ""
            }
          ],
          "name": "[cspacer0_title]Entrance",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1242,
          "items": [],
          "name": "[cspacer19]___",
          "order": 10,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1246,
          "items": [
            {
              "clients": 2,
              "id": 2298,
              "items": [],
              "name": "Public Lounge l",
              "order": 0,
              "parent_id": 1246,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2051,
              "items": [
                {
                  "clients": 0,
                  "id": 8696,
                  "items": [],
                  "name": "Area 1",
                  "order": 0,
                  "parent_id": 2051,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 2375,
                  "items": [],
                  "name": "Area 2",
                  "order": 8696,
                  "parent_id": 2051,
                  "topic": ""
                }
              ],
              "name": "Counter-Strike: Global Offensive",
              "order": 1247,
              "parent_id": 1246,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 7208,
              "items": [],
              "name": "PLAYER*INNEN UNKNOWN'S BATTLEGROUNDS",
              "order": 1248,
              "parent_id": 1246,
              "topic": "Player'sUnknowns Battle Royale"
            },
            {
              "clients": 0,
              "id": 11754,
              "items": [],
              "name": "HELLDIVERS™ 2",
              "order": 1275,
              "parent_id": 1246,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 7307,
              "items": [
                {
                  "clients": 0,
                  "id": 7869,
                  "items": [],
                  "name": "Area 1",
                  "order": 0,
                  "parent_id": 7307,
                  "topic": ""
                }
              ],
              "name": "League of Legends",
              "order": 2050,
              "parent_id": 1246,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1248,
              "items": [
                {
                  "clients": 0,
                  "id": 2427,
                  "items": [],
                  "name": "Area 1",
                  "order": 0,
                  "parent_id": 1248,
                  "topic": ""
                }
              ],
              "name": "Minecraft",
              "order": 2051,
              "parent_id": 1246,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2299,
              "items": [],
              "name": "Public Lounge II",
              "order": 2298,
              "parent_id": 1246,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2300,
              "items": [],
              "name": "Public Lounge III",
              "order": 2299,
              "parent_id": 1246,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1247,
              "items": [],
              "name": "Call of Duty 4: Modern Warfare",
              "order": 2300,
              "parent_id": 1246,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 11424,
              "items": [],
              "name": "KreShys Kriegszone",
              "order": 5862,
              "parent_id": 1246,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1275,
              "items": [],
              "name": "Battlefield",
              "order": 7208,
              "parent_id": 1246,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 5862,
              "items": [],
              "name": "Other (create subchannel)",
              "order": 7307,
              "parent_id": 1246,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 2050,
              "items": [],
              "name": "ArmA",
              "order": 8837,
              "parent_id": 1246,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 8837,
              "items": [],
              "name": "GTA V",
              "order": 11754,
              "parent_id": 1246,
              "topic": "GTA Action"
            }
          ],
          "name": "[cspacer1_title]Public-Area",
          "order": 1242,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1254,
          "items": [
            {
              "clients": 0,
              "id": 2792,
              "items": [],
              "name": "3xP' CJ-Team",
              "order": 0,
              "parent_id": 1254,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 3384,
              "items": [],
              "name": "Frechdachs*inhöhle",
              "order": 2792,
              "parent_id": 1254,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 6151,
              "items": [],
              "name": "Shishabar",
              "order": 3384,
              "parent_id": 1254,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 6975,
              "items": [],
              "name": "NovusLêx",
              "order": 6151,
              "parent_id": 1254,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 9523,
              "items": [],
              "name": "▁▂▃▅ Ehrenbasis ▅▃▂▁",
              "order": 6975,
              "parent_id": 1254,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 9755,
              "items": [],
              "name": "Risk of pepes/pepettes",
              "order": 8918,
              "parent_id": 1254,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 8918,
              "items": [],
              "name": "The Voice",
              "order": 9523,
              "parent_id": 1254,
              "topic": "The Base"
            },
            {
              "clients": 0,
              "id": 10450,
              "items": [],
              "name": "BIER",
              "order": 9755,
              "parent_id": 1254,
              "topic": "2 beers 2 more"
            },
            {
              "clients": 0,
              "id": 10640,
              "items": [],
              "name": "Noa Black Freitag",
              "order": 10450,
              "parent_id": 1254,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 10786,
              "items": [],
              "name": "Trekkerwerkstatt",
              "order": 10640,
              "parent_id": 1254,
              "topic": ""
            }
          ],
          "name": "[cspacer3_title]Team/Player-Area",
          "order": 1244,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1255,
          "items": [
            {
              "clients": 3,
              "id": 8757,
              "items": [],
              "name": "Member Lounge I",
              "order": 0,
              "parent_id": 1255,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1639,
              "items": [],
              "name": "3xP' Arts",
              "order": 1241,
              "parent_id": 1255,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1241,
              "items": [],
              "name": "Alle Daten*innen",
              "order": 1265,
              "parent_id": 1255,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1761,
              "items": [],
              "name": "Member*innen/Community Lounge III",
              "order": 1635,
              "parent_id": 1255,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 9952,
              "items": [],
              "name": "Member*innen/Community Lounge IV",
              "order": 1761,
              "parent_id": 1255,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 1635,
              "items": [],
              "name": "Member*innen Lounge II-The cool channel",
              "order": 8757,
              "parent_id": 1255,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 1265,
              "items": [],
              "name": "Admininstrator*innen Conference",
              "order": 9952,
              "parent_id": 1255,
              "topic": ""
            }
          ],
          "name": "[cspacer3_title]3xP'-Area",
          "order": 1245,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2061,
          "items": [],
          "name": "[cspacer1]___",
          "order": 1246,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1244,
          "items": [],
          "name": "[cspacer2]___",
          "order": 1250,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1245,
          "items": [],
          "name": "[cspacer3]___",
          "order": 1254,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 11693,
          "items": [],
          "name": "[spacer5]___",
          "order": 1255,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2783,
          "items": [],
          "name": "[cspacer5]___",
          "order": 1853,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1250,
          "items": [
            {
              "clients": 0,
              "id": 2188,
              "items": [],
              "name": "War Area 1",
              "order": 0,
              "parent_id": 1250,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1251,
              "items": [],
              "name": "War Area 2",
              "order": 2188,
              "parent_id": 1250,
              "topic": ""
            }
          ],
          "name": "[cspacer2_title]War-Area",
          "order": 2061,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2784,
          "items": [
            {
              "clients": 0,
              "id": 8703,
              "items": [
                {
                  "clients": 0,
                  "id": 10688,
                  "items": [],
                  "name": "WoW",
                  "order": 0,
                  "parent_id": 8703,
                  "topic": ""
                }
              ],
              "name": "Skallis Sub Channel",
              "order": 0,
              "parent_id": 2784,
              "topic": ""
            }
          ],
          "name": "[cspacer5_title]Temp-Channel-Area",
          "order": 2783,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1853,
          "items": [
            {
              "clients": 0,
              "id": 2069,
              "items": [],
              "name": "Available",
              "order": 0,
              "parent_id": 1853,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 11682,
              "items": [],
              "name": "Stille Treppe",
              "order": 1855,
              "parent_id": 1853,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1855,
              "items": [],
              "name": "Not available",
              "order": 2069,
              "parent_id": 1853,
              "topic": ""
            }
          ],
          "name": "[cspacer4_title]AFK-Area",
          "order": 11693,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "Bhq26RlWWvENbv8UM4eNgpvyQUE=",
    "platform": "Linux",
    "created": 1320488440,
    "uptime": 17887166,
    "steam_id": null,
    "domain": null,
    "id": 10454557,
    "ip": "91.121.21.210",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Roubaix",
    "description": "Welcome to 3xP public' TS3 server!\nCheck out: [3xP' board](http://board.3xp-clan.com/)",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1768641963,
    "score": 0,
    "last_online": 1776024037,
    "icon": null,
    "name": "3xP' Clan Multigaming since 2009",
    "connect": "91.121.21.210:9987",
    "request": "91.121.21.210:9987",
    "map": null,
    "gamemode": null,
    "version": "3.12.1 Build: 1585305527",
    "numplayers": 8,
    "maxplayers": 200,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1760078837,
    "last_update": 1776024037,
    "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": 112,
    "language": "fr",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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