JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/9743000
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 9743000,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": null,
    "game": 431600,
    "owner": 125912,
    "boosts": 1,
    "last_offline": 1761066197,
    "score": 5,
    "last_online": 1759429833,
    "icon": null,
    "name": "FB: Zrt Carreras Virtuales",
    "connect": null,
    "request": null,
    "map": "Buenos Aires Circuito No 12",
    "gamemode": "Automobilista: All Cars / All Tracks",
    "version": null,
    "numplayers": 0,
    "maxplayers": 24,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "AR",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1752194577,
    "last_update": 1761066197,
    "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": 7,
    "language": "es",
    "parked": true,
    "app": {
      "id": 166,
      "steam_id": 431600,
      "name": "Automobilista",
      "url": "automobilista"
    },
    "server_owner": {
      "username": "ZRT_wsp_5492281531457",
      "avatar": "b1da3ab4-831b-41db-acac-93d957e22833.jpg",
      "last_online": 1753221538
    },
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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