JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/5246190
json
{
  "response": {
    "steam_id": "90281287405706243",
    "domain": null,
    "id": 5246190,
    "ip": "185.216.27.8",
    "port": 27960,
    "query": 27960,
    "color": 0,
    "city": "Nanterre",
    "description": null,
    "game": 282440,
    "owner": null,
    "boosts": 1,
    "last_offline": 1773768725,
    "score": 0,
    "last_online": 1776244232,
    "icon": null,
    "name": "[iCTF] Barium Games",
    "connect": "185.216.27.8:27960",
    "request": "185.216.27.8:27960",
    "map": "spidercrossings",
    "gamemode": "Capture the Flag",
    "version": "1069 linux-x64 Jun  3 2016 20:53:50",
    "numplayers": 0,
    "maxplayers": 16,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1721304222,
    "last_update": 1776244232,
    "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": 247,
    "language": "fr",
    "parked": false,
    "app": {
      "id": 138,
      "steam_id": 282440,
      "name": "Quake Live",
      "url": "quake-live"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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