JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11142877
json
{
  "response": {
    "channels": {
      "onlinecount": 18,
      "items": [
        {
          "clients": -1,
          "id": 380,
          "items": [],
          "name": "[*spacer]_",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 382,
          "items": [],
          "name": "[*spacer]__",
          "order": 51,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 383,
          "items": [],
          "name": "[*spacer]___",
          "order": 55,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 51,
          "items": [
            {
              "clients": 2,
              "id": 53,
              "items": [],
              "name": "=> Welcome",
              "order": 0,
              "parent_id": 51,
              "topic": ""
            }
          ],
          "name": "[cspacer]===== Entrance =====",
          "order": 380,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 55,
          "items": [
            {
              "clients": 3,
              "id": 56,
              "items": [],
              "name": "=> Aktenschrank[AFK]",
              "order": 0,
              "parent_id": 55,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 58,
              "items": [],
              "name": "=> Serverschrank",
              "order": 56,
              "parent_id": 55,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 5578,
              "items": [],
              "name": "=> Waffenschrank",
              "order": 58,
              "parent_id": 55,
              "topic": ""
            },
            {
              "clients": 2,
              "id": 3811,
              "items": [],
              "name": "=> Kühlschrank",
              "order": 59,
              "parent_id": 55,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 4703,
              "items": [],
              "name": "=> Kellerschrank",
              "order": 61,
              "parent_id": 55,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 4163,
              "items": [],
              "name": "=> Gefrierschrank",
              "order": 3811,
              "parent_id": 55,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 61,
              "items": [],
              "name": "=> Musikschrank",
              "order": 3907,
              "parent_id": 55,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 3907,
              "items": [],
              "name": "=> Wandschrank",
              "order": 4159,
              "parent_id": 55,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 4159,
              "items": [],
              "name": "=> Fernsehschrank",
              "order": 4163,
              "parent_id": 55,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 9288,
              "items": [],
              "name": "=> Homeofficeschrank",
              "order": 4703,
              "parent_id": 55,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 59,
              "items": [],
              "name": "=> Netzwerkschrank",
              "order": 5578,
              "parent_id": 55,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 4462,
              "items": [],
              "name": "=> Schrank zum Schämen",
              "order": 9288,
              "parent_id": 55,
              "topic": ""
            }
          ],
          "name": "[cspacer]===== Schrankwand =====",
          "order": 382,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "MNS9S7B+Zip3G+kyxXL47je7zJg=",
    "platform": "Linux",
    "created": 0,
    "uptime": 315040,
    "steam_id": null,
    "domain": null,
    "id": 11142877,
    "ip": "49.12.104.238",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Falkenstein",
    "description": "Dear all,\n\ndue to increased server and license costs along with script kids; we've decided to stop hosting this as a public server. Thanks for understanding.\n\n----\nWelcome to Nightwire's Public TeamSpeak Service.\n\nBy using this server you agree..\n.. that you won't use it for illegal sharing/content\n.. nor to post unethical or pornographic stuff\n.. neither to do anything that would in any way break any laws\n\nThe server providers (founders of Nightwire) are not responsible for any problems you might experience here, nor are they responsible for the content which users bring in.\n\nWe do not guarantee that this service will remain for ever, nor that it will have 100% uptime.\nHowever we give our best to provide a free and stable platform.\n\nIf you're conform with these rules, you are welcome to stay here and use it for your guilds/clans or other stuff. :)\n\nNOTE: Due to spammers we had to restrict new users from poking and messaging other people. \nYou'll get the permissions after 1h.",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775050303,
    "last_online": 1780509024,
    "icon": null,
    "name": "Nightwire.de",
    "connect": "49.12.104.238:9987",
    "request": "49.12.104.238:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 7,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 69,
    "add_date": 1770933677,
    "last_update": 1780509024,
    "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": 71,
    "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/11142877");
$data = json_decode($json, true);
var_dump($data);