JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11259896
json
{
  "response": {
    "fps": 30,
    "fps_avg": 28,
    "entities_count": 69756,
    "world_seed": 12345,
    "world_size": 3500,
    "steam_id": "90286153030641668",
    "domain": null,
    "id": 11259896,
    "ip": "212.30.88.134",
    "port": 40120,
    "query": 40122,
    "color": 0,
    "city": "Ljubljana",
    "description": "![Shelnix Rust | 5x Solo/Duo/Trio | Bi-Weekly](https://i.imgur.com/2BF2BOn.png)\n▶ Powered by Shelnix – The Future of Modded Rust ◀ Shelnix Rust 5X | Solo/Duo/Trio | 5x Loot | QuickSmelt | Shop | Wipes Mon+Thu 20:00 CET",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778223182,
    "last_online": 1780599635,
    "icon": null,
    "name": "Shelnix Rust | 5x Solo/Duo/Trio | Bi-Weekly",
    "connect": "212.30.88.134:40120",
    "request": "212.30.88.134:40122",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "SI",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774555183,
    "last_update": 1780599635,
    "banned": false,
    "wipe": 1778223669,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3807,
    "language": "sl",
    "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/11259896");
$data = json_decode($json, true);
var_dump($data);