JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11142879
json
{
  "response": {
    "channels": {
      "onlinecount": 35,
      "items": [
        {
          "clients": 0,
          "id": 3,
          "items": [],
          "name": "[spacer001]___",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 5,
          "items": [],
          "name": "[spacer003]___",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 9,
          "items": [
            {
              "clients": 1,
              "id": 289,
              "items": [],
              "name": "╠ Kdr NFA",
              "order": 0,
              "parent_id": 9,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 12,
              "items": [],
              "name": "╚ Archiv",
              "order": 289,
              "parent_id": 9,
              "topic": ""
            }
          ],
          "name": "Leitung NFA",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 1,
          "items": [],
          "name": "[cspacer001]=====Eingangshalle=====",
          "order": 4,
          "parent_id": 0,
          "topic": "Default Channel has no topic"
        },
        {
          "clients": 0,
          "id": 14,
          "items": [
            {
              "clients": 0,
              "id": 73,
              "items": [],
              "name": "╠ Support / INFO",
              "order": 0,
              "parent_id": 14,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 395,
              "items": [],
              "name": "╠ Lobby 1",
              "order": 73,
              "parent_id": 14,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 396,
              "items": [],
              "name": "╠ Lobby 2",
              "order": 395,
              "parent_id": 14,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 397,
              "items": [],
              "name": "╚ Lobby 3",
              "order": 396,
              "parent_id": 14,
              "topic": ""
            }
          ],
          "name": "[cspacer002]=====Sozialräume=====",
          "order": 5,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 415,
          "items": [
            {
              "clients": 0,
              "id": 416,
              "items": [],
              "name": "Arma Eingangsbereich",
              "order": 0,
              "parent_id": 415,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 417,
              "items": [],
              "name": "TaskForceRadio",
              "order": 416,
              "parent_id": 415,
              "topic": ""
            }
          ],
          "name": "[cspacer010]░░▒▓███ Arma 3 ███▓▒░░",
          "order": 6,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 13,
          "items": [],
          "name": "[*spacer]╤╤",
          "order": 9,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 175,
          "items": [
            {
              "clients": 0,
              "id": 179,
              "items": [],
              "name": "╠ Lobby I",
              "order": 0,
              "parent_id": 175,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 410,
              "items": [],
              "name": "╠ Hunt-Showdown",
              "order": 22,
              "parent_id": 175,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 326,
              "items": [],
              "name": "╠ War-Thunder / Warships",
              "order": 178,
              "parent_id": 175,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 178,
              "items": [],
              "name": "╠ Führung NFA",
              "order": 179,
              "parent_id": 175,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 399,
              "items": [],
              "name": "╠ Landwirtschafts Sim 25",
              "order": 326,
              "parent_id": 175,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 22,
              "items": [],
              "name": "╠ Factorio",
              "order": 389,
              "parent_id": 175,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 389,
              "items": [],
              "name": "╠ Crusader Kings III",
              "order": 399,
              "parent_id": 175,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 412,
              "items": [],
              "name": "╠ Helldivers 2",
              "order": 410,
              "parent_id": 175,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 418,
              "items": [],
              "name": "╠ Hogwarts Hex Hex",
              "order": 412,
              "parent_id": 175,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 306,
              "items": [],
              "name": "╚ Irrenanstalt 2.0",
              "order": 418,
              "parent_id": 175,
              "topic": ""
            }
          ],
          "name": "[cspacer004]░░▒▓███ NFA ███▓▒░░",
          "order": 13,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6,
          "items": [],
          "name": "[spacer004]___",
          "order": 14,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 339,
          "items": [
            {
              "clients": 0,
              "id": 67,
              "items": [],
              "name": "Kaffee Viereck",
              "order": 0,
              "parent_id": 339,
              "topic": ""
            }
          ],
          "name": "[spacer021]___",
          "order": 65,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 4,
          "items": [],
          "name": "[spacer002]___",
          "order": 175,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 65,
          "items": [
            {
              "clients": 0,
              "id": 68,
              "items": [],
              "name": "╠ Polit Kommisar Stefan",
              "order": 0,
              "parent_id": 65,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 413,
              "items": [],
              "name": "╠ Robis Rosaroter Teppich",
              "order": 68,
              "parent_id": 65,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 69,
              "items": [],
              "name": "╚ AFK",
              "order": 413,
              "parent_id": 65,
              "topic": ""
            }
          ],
          "name": "[cspacer005]░░▒▓███ Sonstiges ███▓▒░░",
          "order": 414,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 414,
          "items": [],
          "name": "[spacer010]___",
          "order": 415,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "VFHFrnDh/rghMfcK70x40MR7Jz0=",
    "platform": "Linux",
    "created": 1547398082,
    "uptime": 100001910,
    "steam_id": null,
    "domain": null,
    "id": 11142879,
    "ip": "157.90.238.86",
    "port": 9987,
    "query": 9987,
    "project_id": null,
    "color": 0,
    "city": "Nuremberg",
    "description": null,
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775764925,
    "last_online": 1781291455,
    "icon": null,
    "name": "[GER] MultiGaming / NoFaceArmy",
    "connect": "157.90.238.86:9987",
    "request": "157.90.238.86:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 2,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 31,
    "add_date": 1770933677,
    "last_update": 1781291455,
    "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": 163,
    "language": "de",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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