JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/2762762
json
{
  "response": {
    "steam_id": "90284966604369942",
    "domain": null,
    "id": 2762762,
    "ip": "192.99.201.207",
    "port": 37015,
    "query": 37016,
    "color": 0,
    "city": "Montreal",
    "description": "",
    "game": 41010,
    "owner": null,
    "boosts": 1,
    "last_offline": 1777544565,
    "score": null,
    "last_online": 1777175528,
    "icon": null,
    "name": "Serious Saturdays",
    "connect": "192.99.201.207:37015",
    "request": "192.99.201.207:37016",
    "map": "1_01_Palenque",
    "gamemode": "Serious Sam HD : The Second Encounter",
    "version": "0.1.200.142",
    "numplayers": 0,
    "maxplayers": 16,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1706395935,
    "last_update": 1777544565,
    "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": 9,
    "language": "en",
    "parked": false,
    "app": {
      "id": 95,
      "steam_id": 41010,
      "name": "Serious Sam HD: The Second Encounter",
      "url": "serious-sam-hd-the-second-encounter"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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