JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11181693
json
{
  "response": {
    "steam_id": "90284854987233297",
    "domain": null,
    "id": 11181693,
    "ip": "80.145.150.94",
    "port": 27015,
    "query": 27016,
    "color": 0,
    "city": "Otzberg",
    "description": null,
    "game": 378860,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776153718,
    "score": 0,
    "last_online": 1777235478,
    "icon": null,
    "name": "OdBb-TOURISTDRIVES-24/7-All Cars",
    "connect": "80.145.150.94:27015",
    "request": "80.145.150.94:27016",
    "map": "Nürburgring Combined",
    "gamemode": "Project CARS 2",
    "version": "1.0.0.64",
    "numplayers": 0,
    "maxplayers": 20,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1772229819,
    "last_update": 1777235478,
    "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": 13,
    "language": "de",
    "parked": false,
    "app": {
      "id": 6693,
      "steam_id": 378860,
      "name": "Project CARS 2",
      "url": "project-cars-2"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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