JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11502208
json
{
  "response": {
    "fps": 57,
    "fps_avg": 55,
    "entities_count": 167317,
    "world_seed": 238909786,
    "world_size": 5500,
    "steam_id": 90286585532169220,
    "domain": null,
    "id": 11502208,
    "ip": "51.222.10.172",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Montreal",
    "description": "![(CA)New Dawn Of Rust 2x Gather Rate and Resources| PvE | Monthl](https://i.postimg.cc/hPH4mCL5/server-logo.png)\nNewbie Friendly, No BP WIPES, No PvP Except For In Raidable Bases. Players who haven't been online for over 10 days will have there base marked as abandoned and free for other players to loot.\r\nBE AWARE NPC don't just stand there they can Detect your footsteps  and navigate the map to engage in combat",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780560266,
    "last_online": 1780562428,
    "icon": null,
    "name": "(CA)New Dawn Of Rust 2x Gather Rate and Resources| PvE | Monthl",
    "connect": "51.222.10.172:28015",
    "request": "51.222.10.172:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207194,
    "last_update": 1780562428,
    "banned": false,
    "wipe": 1780531886,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4900,
    "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/11502208");
$data = json_decode($json, true);
var_dump($data);