JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11607198
json
{
  "response": {
    "fps": 240,
    "fps_avg": 239,
    "entities_count": 8391,
    "world_seed": 1337,
    "world_size": 1025,
    "steam_id": "90286388435790865",
    "domain": null,
    "id": 11607198,
    "ip": "40.160.233.202",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Miami",
    "description": "![NA | SAVAS.GG | #1 | KOTH | VANILLA | ONEGRID](https://cdn3.mapstr.gg/ed4994129d1ee3344e2d3a01c96f39a6.png)\nBringing back the beloved Savas map from 2016 Rust.\r\n\r\nFeaturing OG King of The Hill, random loot boxes, same feel, new memories to be had!\r\n\r\nump in, and start reminiscing on the good ol' days!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779915499,
    "last_online": 1780549228,
    "icon": null,
    "name": "NA | SAVAS.GG | #1 | KOTH | VANILLA | ONEGRID",
    "connect": "40.160.233.202:28015",
    "request": "40.160.233.202:28017",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 60,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915499,
    "last_update": 1780549228,
    "banned": false,
    "wipe": 1779648386,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5563,
    "language": "en",
    "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/11607198");
$data = json_decode($json, true);
var_dump($data);