JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11691831
json
{
  "response": {
    "steam_id": "90286237747786783",
    "domain": null,
    "id": 11691831,
    "ip": "170.23.138.239",
    "port": 24147,
    "query": 24148,
    "project_id": null,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": null,
    "game": 1604030,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780225002,
    "last_online": 1781373151,
    "icon": null,
    "name": "Civi-Rising",
    "connect": "170.23.138.239:24147",
    "request": "170.23.138.239:24148",
    "map": "VRisingWorld",
    "gamemode": "81ed0caa-24fc-4782-bb58-b7269912aa63",
    "version": "0.0.0.1",
    "numplayers": 0,
    "maxplayers": 60,
    "bots": 0,
    "secured": true,
    "private": true,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1780225002,
    "last_update": 1781373151,
    "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": 3260,
    "language": "de",
    "parked": false,
    "app": {
      "id": 55075,
      "steam_id": 1604030,
      "name": "V Rising",
      "url": "v-rising"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/11691831");
$data = json_decode($json, true);
var_dump($data);