JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/521411
json
{
  "response": {
    "fps": 113,
    "fps_avg": 108,
    "entities_count": 72489,
    "world_seed": 1121224751,
    "world_size": 3500,
    "steam_id": "90286324962117632",
    "domain": null,
    "id": 521411,
    "ip": "134.255.228.132",
    "port": 26014,
    "query": 26015,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![EU Chris macht 1x Monthly Solo/Duo/Trio/Quad | Noob friendly](http://chris-macht.de/rust/header.png)\nWelcome to the Chris macht Rust Server\r\n\r\nRules:\r\n1. No abusive messages\r\n2. Be beginner friendly\r\n3. Maximum team size: 4 players\r\n4. Basegriefing is prohibited. The TC and set doors must be removed after the raid. Except for bases that are closer than two quadrants from your mainbase. \r\n5.Use only English and German in chat\r\n\r\nSettings:\r\n- Mapsize: 3500\r\n- 50% Upkeep\r\n- 25% Decay\r\n- Custom AntiCheat\r\n- Auto Restart: 05:00 AM CET\r\n\r\nServerwipe:\r\n- First Thursday of the month (Fullwipe)\r\n\r\nStore:\r\nstore.chris-macht.de\r\n- Skip Queue\r\n- No P2W\r\n\r\nOur Discord server: discord.chris-macht.de (Enter in webbrowser)",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779981177,
    "last_online": 1780572633,
    "icon": null,
    "name": "EU Chris macht 1x Monthly Solo/Duo/Trio/Quad | Noob friendly",
    "connect": "134.255.228.132:26014",
    "request": "134.255.228.132:26015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1643498230,
    "last_update": 1780572633,
    "banned": false,
    "wipe": 1779981630,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2204,
    "language": "de",
    "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/521411");
$data = json_decode($json, true);
var_dump($data);