JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/1208241
json
{
  "response": {
    "fps": 59,
    "fps_avg": 58,
    "entities_count": 136744,
    "world_seed": 1337,
    "world_size": 4000,
    "steam_id": "90286542792486921",
    "domain": null,
    "id": 1208241,
    "ip": "92.118.18.98",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Ashburn",
    "description": "Come on in and don't be a jerk. Chill server, raid anytime. Pro's and Toxic people can go somewhere else.\r\n If you have no life, and need to take over a server because you are bored. Just go get your own server! \r\n -Toxic Chat will get you banned \r\n No SAMS next to monuments/rad towns \r\n -Casual play, no PvP CHADS! \r\n -No walling in TC(s \r\n -PvP is allowed, but please don't be a jerk! -logfile C:\\TCAFiles\\Users\\davidc\\24142\\server.log -silent-crashes +app.publicip 92.118.18.98 +app.listenip 92.118.18.98   +app.port 28019  +server.url https://low.ms/game-servers/rust-server-hosting https://www.dropbox.com/scl/fi/nsr1n0dhywp0wxwy8s26g/may2026.2.0.map?rlkey=knxphat6k1crdk6o8qme10959&st=aqk67g16&dl=1",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470420,
    "last_online": 1780594232,
    "icon": null,
    "name": "Canada Vanilla Chill",
    "connect": "92.118.18.98:28015",
    "request": "92.118.18.98:28016",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1691956065,
    "last_update": 1780594232,
    "banned": false,
    "wipe": 1778199556,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2529,
    "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/1208241");
$data = json_decode($json, true);
var_dump($data);