JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/7412401
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 7412401,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": null,
    "game": 1203620,
    "owner": 103778,
    "boosts": 1,
    "last_offline": 1750457066,
    "last_online": 1741645233,
    "icon": null,
    "name": "PhilippsServer",
    "connect": null,
    "request": null,
    "map": null,
    "gamemode": "Enshrouded",
    "version": null,
    "numplayers": 0,
    "maxplayers": 6,
    "bots": 0,
    "secured": false,
    "private": true,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1738493600,
    "last_update": 1750457066,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": true,
    "hide_address": false,
    "hide_query": false,
    "position_game": 15035,
    "language": "de",
    "parked": true,
    "app": {
      "id": 1611384,
      "steam_id": 1203620,
      "name": "Enshrouded",
      "url": "enshrouded"
    },
    "server_owner": {
      "username": "PhilippMller",
      "avatar": "b88986ad-38b3-442f-901c-847e55f628de.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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