JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11142882
json
{
  "response": {
    "channels": {
      "onlinecount": 11,
      "items": [
        {
          "clients": 1,
          "id": 1,
          "items": [],
          "name": "Welcome To alpha-squad.nl",
          "order": 0,
          "parent_id": 0,
          "topic": "alpha-squad.nl"
        },
        {
          "clients": 0,
          "id": 77,
          "items": [],
          "name": "Back 4 Blood",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 23,
          "items": [],
          "name": "World of Wars Ships",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 8,
          "items": [],
          "name": "Battlefield 1",
          "order": 4,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 3,
          "id": 495,
          "items": [],
          "name": "INTERPOL",
          "order": 7,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 76,
          "items": [],
          "name": "Battlefield™ 2042",
          "order": 8,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 52,
          "items": [],
          "name": "World of Tanks",
          "order": 23,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 7,
          "items": [],
          "name": "Sleeping Room",
          "order": 52,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2,
          "items": [
            {
              "clients": 0,
              "id": 3,
              "items": [],
              "name": "Call of Duty",
              "order": 0,
              "parent_id": 2,
              "topic": ""
            }
          ],
          "name": "Joint Operations Escalation IC",
          "order": 76,
          "parent_id": 0,
          "topic": "Joint Operations Escalation IC"
        },
        {
          "clients": 0,
          "id": 4,
          "items": [],
          "name": "Battlefield™ V",
          "order": 77,
          "parent_id": 0,
          "topic": "Battlefield™ V"
        }
      ]
    },
    "external_id": "bFaAM+lbmkgqSytRYSI+Gun3jlg=",
    "platform": "Windows",
    "created": 1612473217,
    "uptime": 832195,
    "steam_id": null,
    "domain": null,
    "id": 11142882,
    "ip": "88.159.151.225",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Wageningen",
    "description": "Welcome to alpha-squad, check www.alpha-squad.nl for latest information\nalpha-squad.nl is online",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1770933677,
    "score": 0,
    "last_online": 1776897616,
    "icon": null,
    "name": "alpha-squad.nl",
    "connect": "88.159.151.225:9987",
    "request": "88.159.151.225:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 5,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "NL",
    "status": true,
    "votes": 0,
    "points": 67,
    "add_date": 1770933677,
    "last_update": 1776897616,
    "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": 70,
    "language": "nl",
    "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/11142882");
$data = json_decode($json, true);
var_dump($data);