JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/8748060
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 8748060,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": null,
    "game": 270880,
    "owner": 84300,
    "boosts": 1,
    "last_offline": 1758808461,
    "score": 0,
    "last_online": 1756012836,
    "icon": null,
    "name": "ATS Анархия [mods] 24/7",
    "connect": null,
    "request": null,
    "map": "/map/usa.mbd",
    "gamemode": "Discord: discord.gg/mdJPTgYfKH",
    "version": null,
    "numplayers": 0,
    "maxplayers": 8,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "NL",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1745944745,
    "last_update": 1758808461,
    "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": 648,
    "language": "nl",
    "parked": true,
    "app": {
      "id": 2949,
      "steam_id": 270880,
      "name": "American Truck Simulator",
      "url": "american-truck-simulator"
    },
    "server_owner": {
      "username": "uabalandabar",
      "avatar": "431a02d4-b08b-4fc1-aafa-a50de247ea4b.jpg",
      "last_online": 1756193707
    },
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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