JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11698859
json
{
  "response": {
    "fps": 11,
    "fps_avg": 10,
    "entities_count": 60641,
    "world_seed": 1375665015,
    "world_size": 3500,
    "steam_id": "90286604689673218",
    "domain": null,
    "id": 11698859,
    "ip": "199.126.96.233",
    "port": 28315,
    "query": 28317,
    "color": 0,
    "city": "Edmonton",
    "description": "![Isolation | 4X SOLO](https://amwalab.com/rust/serverbg.png)\nTrue solo only server. Teaming is disabled.\r\n-4x gather rate\r\n24h Offline Raid Protection can be purchased from TC\r\nStarter build kit\r\nRaidable Bases\r\nQuick Smelt / Instant Craft\r\nRemover Tool\r\n Server wipes on the first thursday of each month.\r\n Active admin.\r\n Do not join with VAC ban within 365 days.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780597469,
    "last_online": 1780602033,
    "icon": null,
    "name": "Isolation | 4X SOLO",
    "connect": "199.126.96.233:28315",
    "request": "199.126.96.233:28317",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 69,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780227276,
    "last_update": 1780602033,
    "banned": false,
    "wipe": 1780597753,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5322,
    "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/11698859");
$data = json_decode($json, true);
var_dump($data);