JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/10310396
json
{
  "response": {
    "fps": 150,
    "fps_avg": 113,
    "entities_count": 66540,
    "world_seed": 865949044,
    "world_size": 3500,
    "steam_id": "90286576090813448",
    "domain": null,
    "id": 10310396,
    "ip": "5.249.162.23",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Münster",
    "description": "Welcome to SirServAlot!\r\n -----------------------------------------------------------------------------------------------------------------------\r\n Wipes(blueprints incl.) Thursdays Bi-weekly at 21:00. \r\n -----------------------------------------------------------------------------------------------------------------------\r\n No Rulez. \r\n Map Size: 3500. \r\n Vanilla \r\n ----------------------------------------------------------------------------------------------------------------------- \r\n Active admins monitoring server and cheaters. \r\n Custom anti-cheat.\r\n\r\n No VAC or Gamebans newer than 365 days.\r\n If you have more than one ban (VAC or Gameban) \r\n you will be banned no matter what.\r\n ----------------------------------------------------------------------------------------------------------------------- \r\n Useful links:\r\nWebsite: https://www.sirservalot.dk \r\n Discord: https://discord.gg/fPrpJX8hea \r\n -----------------------------------------------------------------------------------------------------------------------",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780584276,
    "last_online": 1780589437,
    "icon": null,
    "name": "[EU] RUST - Vanilla PVP [NO RULEZ] - Powered by SirServALot.dk",
    "connect": "5.249.162.23:28015",
    "request": "5.249.162.23:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 20,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1758288359,
    "last_update": 1780589437,
    "banned": false,
    "wipe": 1779390797,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3556,
    "language": "de",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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