JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11500871
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 103696,
    "world_seed": 1464062013,
    "world_size": 4700,
    "steam_id": "90286180975984663",
    "domain": null,
    "id": 11500871,
    "ip": "81.169.213.146",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Berlin",
    "description": "![[EU] •LOS RUSTOS• -:[ Events || Gather LVL || 4x stack ]:-](https://cdn3.mapstr.gg/666847598bc11933d4a484442234d1dd.jpg)\nWelcome to •LOS RUSTOS• Server.\r\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\r\n▶ Up to 4x Stack Size (Resources, Ammunition, Medical, Food).\r\n▶ Gather Rate Level → Monthly Wipe!\r\n▶ Events: Guarded Crates, Dangerous Treasures, PvP-Raidable Bases, Missile Silo, Train Yard.\r\n▶ Stack All Entities (e.g., place [2] Large Wooden Boxes on top of each other).\r\n▶ Ability to Build on Sea.\r\n▶ Custom Monuments.\r\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\r\n★★★ ENJOY! ★★★",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779438820,
    "last_online": 1779760221,
    "icon": null,
    "name": "[EU] •LOS RUSTOS• -:[ Events || Gather LVL || 4x stack ]:-",
    "connect": "81.169.213.146:28015",
    "request": "81.169.213.146:28017",
    "map": "-:[ Metropolis ]:-",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207164,
    "last_update": 1779760221,
    "banned": false,
    "wipe": 1778189478,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4770,
    "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/11500871");
$data = json_decode($json, true);
var_dump($data);