JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11606902
json
{
  "response": {
    "fps": 185,
    "fps_avg": 191,
    "entities_count": 48205,
    "world_seed": 8675309,
    "world_size": 3000,
    "steam_id": "90286581308915716",
    "domain": null,
    "id": 11606902,
    "ip": "74.208.36.3",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Kansas City",
    "description": "![The Frontier 5X | Solo/Duo/Trio/Quad | NoBP Wipe | Better Loot ](https://i.postimg.cc/NMNdm6st/b472dc92-f08e-4eaf-a159-78095ef4548f.jpg)\n\r\nHigh action, fast-paced survival. \r\n \r\n GATHER RATES: 5x Wood, Stone, Metal, and Scrap \r\n? GROUP LIMIT: Max 4 players per team (Strictly Enforced) \r\n? COMPONENTS: Enhanced loot tables with junk removed \r\n? CONVENIENCE: AutoDoors, StackSize (10k), and Hammer Upgrades \r\n? SCHEDULE: Map wipes monthly, first thursday of the month!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780200236,
    "last_online": 1780549234,
    "icon": null,
    "name": "The Frontier 5X | Solo/Duo/Trio/Quad | NoBP Wipe | Better Loot",
    "connect": "74.208.36.3:28015",
    "request": "74.208.36.3:28016",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915487,
    "last_update": 1780549234,
    "banned": false,
    "wipe": 1779639290,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5474,
    "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/11606902");
$data = json_decode($json, true);
var_dump($data);