JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/10733908
json
{
  "response": {
    "channels": {
      "onlinecount": 12,
      "items": [
        {
          "clients": -1,
          "id": 2,
          "items": [],
          "name": "[cspacer]",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 3,
          "id": 5,
          "items": [
            {
              "clients": 2,
              "id": 8,
              "items": [],
              "name": "WHAT EVER IT TAKES-and Greece was fucked",
              "order": 0,
              "parent_id": 5,
              "topic": ""
            }
          ],
          "name": "THE EARTH IS NOT WHAT YOU BELIEVE",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 19,
          "items": [],
          "name": "FORREST  TRUMP  il canale delle sparate",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 26,
          "items": [],
          "name": "Euro Truck",
          "order": 5,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 15,
          "items": [
            {
              "clients": 0,
              "id": 1,
              "items": [],
              "name": "BAROCCO (music)",
              "order": 0,
              "parent_id": 15,
              "topic": "L'importanza del barocco nel mondo occidentale"
            },
            {
              "clients": 0,
              "id": 16,
              "items": [
                {
                  "clients": 0,
                  "id": 6,
                  "items": [],
                  "name": "CANALE ospiti ( non anale)",
                  "order": 0,
                  "parent_id": 16,
                  "topic": ""
                }
              ],
              "name": "DOWNLOAD files",
              "order": 1,
              "parent_id": 15,
              "topic": ""
            }
          ],
          "name": "HATA PAOLO ZION RECORDING donotdisturb",
          "order": 19,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 56,
          "items": [
            {
              "clients": 0,
              "id": 55,
              "items": [],
              "name": "Farm Simulator",
              "order": 0,
              "parent_id": 56,
              "topic": ""
            }
          ],
          "name": "Insurgency Sandstorm",
          "order": 26,
          "parent_id": 0,
          "topic": "213.202.205.23:23400"
        },
        {
          "clients": 0,
          "id": 3,
          "items": [],
          "name": "NASA....we lost the tecnology",
          "order": 56,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "MxgCYnHXh5dEbe9IusSiP0NG43s=",
    "platform": "Linux",
    "created": 1702400891,
    "uptime": 2796537,
    "steam_id": null,
    "domain": null,
    "id": 10733908,
    "ip": "129.152.23.53",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Siziano",
    "description": "...la terra non è come tu pensi...",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1777717942,
    "last_online": 1780515025,
    "icon": null,
    "name": "! THE EARTH IS NOT LIKE YOU BELIEVE !",
    "connect": "129.152.23.53:9987",
    "request": "129.152.23.53:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 5,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "IT",
    "status": true,
    "votes": 0,
    "points": 67,
    "add_date": 1765927379,
    "last_update": 1780515025,
    "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": 85,
    "language": "it",
    "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/10733908");
$data = json_decode($json, true);
var_dump($data);