JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11511850
json
{
  "response": {
    "fps": 218,
    "fps_avg": 219,
    "entities_count": 49749,
    "world_seed": 50000,
    "world_size": 3000,
    "steam_id": "90286271037890590",
    "domain": null,
    "id": 11511850,
    "ip": "135.148.252.138",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Hudson",
    "description": "🔥 Welcome to The Rust Pit 🔥  A chill but competitive Rust server built for new and experienced players. Enjoy active staff, short nights, balanced gameplay, custom events, boosted gather rates, raid bases, clans, PvP, and a growing community. No nonstop toxicity — just good fights, good vibes, and nonstop action.  💬 Join the Discord and invite your squad!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780560817,
    "last_online": 1779882620,
    "icon": null,
    "name": "RUST PIT/QUADS",
    "connect": "135.148.252.138:28015",
    "request": "135.148.252.138:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779353866,
    "last_update": 1780560817,
    "banned": false,
    "wipe": 1779390289,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 11963,
    "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/11511850");
$data = json_decode($json, true);
var_dump($data);