JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11305038
json
{
  "response": {
    "fps": 151,
    "fps_avg": 144,
    "entities_count": 125387,
    "world_seed": 12345,
    "world_size": 4600,
    "steam_id": "90285605228254225",
    "domain": null,
    "id": 11305038,
    "ip": "81.196.159.177",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Călăraşi",
    "description": "WARBOYS EU\r\nMonthly Wipe | PvP / PvE / Art\r\n\r\nWelcome to a competitive yet respectful wasteland.\r\nFast-paced action, creative building, and strategic PvP battles.\r\n\r\nThis is a friendly community server.\r\nToxicity, racism, harassment, and excessive griefing will not be tolerated.\r\nRespect other players and enjoy the fight.\r\n\r\nActive Non-Playing Admins\r\nFair Gameplay | No Pay-To-Win\r\nDiscord: discord.gg/yourlink",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1777406602,
    "score": 0,
    "last_online": 1778539819,
    "icon": null,
    "name": "Warboys",
    "connect": "81.196.159.177:28015",
    "request": "81.196.159.177:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RO",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774592877,
    "last_update": 1778539819,
    "banned": false,
    "wipe": 1776530063,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4534,
    "language": "ro",
    "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/11305038");
$data = json_decode($json, true);
var_dump($data);