JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/1648434
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 118336,
    "world_seed": 784232516,
    "world_size": 4500,
    "steam_id": "90286588128917509",
    "domain": null,
    "id": 1648434,
    "ip": "46.59.18.254",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Stockholm",
    "description": "![[EU]PandaGaming.se|Rust|](https://www.pandagaming.se/rust_maps/RustLogo/Vanilla-Rust4.png)\n-- Pure, Vanilla Server --\r\n-- client.connect 46.59.18.254:28017 --\r\n-- Discord Invite: discord.gg/A3yg6SVvys --\r\n*** Also try our modded server: ***\r\n *** client.connect 46.59.18.254:28117 ***",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780563267,
    "last_online": 1780583442,
    "icon": null,
    "name": "[EU]PandaGaming.se|Rust|",
    "connect": "46.59.18.254:28015",
    "request": "46.59.18.254:28017",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "SE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1698492175,
    "last_update": 1780583442,
    "banned": false,
    "wipe": 1778242017,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2697,
    "language": "sv",
    "parked": false,
    "app": {
      "id": 252490,
      "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/1648434");
$data = json_decode($json, true);
var_dump($data);