JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11180582
json
{
  "response": {
    "channels": {
      "onlinecount": 4,
      "items": [
        {
          "clients": 1,
          "id": 1,
          "items": [],
          "name": "Public Channel",
          "order": 0,
          "parent_id": 0,
          "topic": "Default Channel has no topic"
        },
        {
          "clients": 0,
          "id": 2,
          "items": [],
          "name": "Call of Duty 2",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 3,
          "items": [],
          "name": "Medal of Honor Allied Assault",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 4,
          "items": [],
          "name": "Ralli Sport Challenge",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "K4BJ2gqxejLsMH9cqvYnb52FAkw=",
    "platform": "Linux",
    "created": 1683879861,
    "uptime": 1628,
    "steam_id": null,
    "domain": "power-net.ddns.net",
    "id": 11180582,
    "ip": "62.1.100.26",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Athens",
    "description": "Welcome to AWMN POWER-NET #19508 TeamSpeak",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1772743344,
    "score": 0,
    "last_online": 1776359423,
    "icon": null,
    "name": "AWMN POWER-NET #19508",
    "connect": "power-net.ddns.net:9987",
    "request": "62.1.100.26:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 1,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": true,
    "country": "GR",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1772229617,
    "last_update": 1776359423,
    "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": 141,
    "language": "el",
    "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/11180582");
$data = json_decode($json, true);
var_dump($data);