JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11637408
json
{
  "response": {
    "channels": {
      "onlinecount": 46,
      "items": [
        {
          "clients": 3,
          "id": 1,
          "items": [],
          "name": "#LOBBY/AFK",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 21,
          "items": [],
          "name": "[spacer2]___",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 30,
          "items": [],
          "name": "[spacer1]___",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 12,
          "items": [],
          "name": "#2 » [3x Users]",
          "order": 11,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 13,
          "items": [],
          "name": "#3 » [4x Users]",
          "order": 12,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 14,
          "items": [],
          "name": "#4 » [4x Users]",
          "order": 13,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 15,
          "items": [],
          "name": "#5 » [5x Users]",
          "order": 14,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 16,
          "items": [],
          "name": "#6 » [5x Users]",
          "order": 15,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 320,
          "items": [],
          "name": "#7 » [6x Users]",
          "order": 16,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 177,
          "items": [],
          "name": "┏ #JB",
          "order": 20,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 3,
          "items": [
            {
              "clients": 0,
              "id": 4,
              "items": [],
              "name": "┏ #KOMPANIET UTAN HJÄLTAR!",
              "order": 0,
              "parent_id": 3,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 34,
              "items": [],
              "name": "┣ #GOLFWANG",
              "order": 4,
              "parent_id": 3,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 9,
              "items": [],
              "name": "┗ #COWBOY CREW",
              "order": 34,
              "parent_id": 3,
              "topic": "Lusse\\p-=a.K.a=-\\pKatt"
            }
          ],
          "name": "[cspacer1]#KONTORET",
          "order": 21,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 73,
          "items": [
            {
              "clients": 0,
              "id": 74,
              "items": [],
              "name": "#1 » [2x]",
              "order": 0,
              "parent_id": 73,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 75,
              "items": [],
              "name": "#2 » [2x]",
              "order": 74,
              "parent_id": 73,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 76,
              "items": [],
              "name": "#3 » [2x]",
              "order": 75,
              "parent_id": 73,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 77,
              "items": [],
              "name": "#4 » [2x]",
              "order": 76,
              "parent_id": 73,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 78,
              "items": [],
              "name": "#5 » [2x]",
              "order": 77,
              "parent_id": 73,
              "topic": ""
            }
          ],
          "name": "#DUOS [2x Users]",
          "order": 30,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 3059,
          "items": [],
          "name": "Mortal",
          "order": 67,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 11,
          "items": [],
          "name": "#1 » [3x Users]",
          "order": 73,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 556,
          "items": [],
          "name": "┣ #FaceitFerrari",
          "order": 177,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 762,
          "items": [],
          "name": "#8 » [6x Users]",
          "order": 320,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 20,
          "items": [],
          "name": "[cspacer1]#THE ALIBI ROOMS",
          "order": 321,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 951,
          "items": [
            {
              "clients": 0,
              "id": 1278,
              "items": [],
              "name": "(λ)Warcraft2(1995)[email protected]",
              "order": 0,
              "parent_id": 951,
              "topic": ""
            }
          ],
          "name": "┣ (λ)Resistance",
          "order": 556,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 321,
          "items": [],
          "name": "#10 » [Unlimited]",
          "order": 604,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 604,
          "items": [],
          "name": "#9 » [Unlimited]",
          "order": 762,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 3748,
          "items": [],
          "name": "┣ #ARTEMIS STALLIONS",
          "order": 951,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 4432,
          "items": [],
          "name": "premghouls",
          "order": 3059,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 4125,
          "items": [],
          "name": "┣ #Diskoteket",
          "order": 3748,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 5287,
          "items": [],
          "name": "┗ #Hjo Vikings",
          "order": 4125,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6038,
          "items": [],
          "name": "Ban = Burn All Niggers",
          "order": 4432,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 67,
          "items": [],
          "name": "[cspacer1]#CREATE PERM OR TEMP. CHANNEL",
          "order": 5287,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6041,
          "items": [],
          "name": "Knarkane AS",
          "order": 6038,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6047,
          "items": [],
          "name": "Kote",
          "order": 6041,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6049,
          "items": [],
          "name": "potät",
          "order": 6047,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6050,
          "items": [],
          "name": "potättät",
          "order": 6049,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6053,
          "items": [],
          "name": "67",
          "order": 6050,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6057,
          "items": [],
          "name": "r6",
          "order": 6053,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6058,
          "items": [],
          "name": "qupecogurec",
          "order": 6057,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6069,
          "items": [],
          "name": "cs2",
          "order": 6058,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6072,
          "items": [],
          "name": "Arsi09",
          "order": 6069,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6075,
          "items": [],
          "name": "dbd",
          "order": 6072,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6088,
          "items": [],
          "name": "holly jolly christmas",
          "order": 6075,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "kd5dtgNDm6rg+WFCqZSJ0q/pKmA=",
    "platform": "Windows",
    "created": 1479160575,
    "uptime": 931798,
    "steam_id": null,
    "domain": "ilude.ddns.net",
    "id": 11637408,
    "ip": "84.219.177.187",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Märsta",
    "description": "Welcome ladies & gentlemen, we hope you enjoy your stay! connection problems? the server will always be back online as soon as possible. / ledningen\nDISCORD - https://discord.gg/63U7PqR",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779917079,
    "last_online": 1780283425,
    "icon": null,
    "name": "iNTERLUDe's fina grabbar!",
    "connect": "ilude.ddns.net:9987",
    "request": "84.219.177.187:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 4,
    "maxplayers": 64,
    "bots": 0,
    "secured": null,
    "private": true,
    "country": "SE",
    "status": true,
    "votes": 0,
    "points": 64,
    "add_date": 1779917079,
    "last_update": 1780283425,
    "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": 69,
    "language": "sv",
    "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/11637408");
$data = json_decode($json, true);
var_dump($data);