JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/5831570
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 5831570,
    "ip": "46.126.2.190",
    "port": 1234,
    "query": 1235,
    "color": 0,
    "city": "Chur",
    "description": null,
    "game": 107410,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776336169,
    "score": 0,
    "last_online": 1776283223,
    "icon": null,
    "name": null,
    "connect": null,
    "request": "46.126.2.190:1235",
    "map": null,
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": true,
    "country": "CH",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1725204061,
    "last_update": 1776336169,
    "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": 3403,
    "language": "de",
    "parked": false,
    "app": {
      "id": 61,
      "steam_id": 107410,
      "name": "Arma 3",
      "url": "arma-3"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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