JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11644793
json
{
  "response": {
    "fps": 55,
    "fps_avg": 53,
    "entities_count": 206950,
    "world_seed": 1972876921,
    "world_size": 6000,
    "steam_id": "90286455370764319",
    "domain": null,
    "id": 11644793,
    "ip": "185.239.236.122",
    "port": 28020,
    "query": 28022,
    "color": 0,
    "city": "Münster",
    "description": "![Brit Graft Rust Server [STAGING][PRIVATE]](http://yourwebsite.com/serverimage.jpg)\n═══ SERVER RULES ═══\r\n\r\n• English speaking/typing only in public chat\r\n• No PVP of any kind\r\n• No raiding or stealing from players\r\n• No griefing or trapping players\r\n• Do not take vehicles or horses that aren’t yours\r\n• Respect other players, their builds, and their loot\r\n• Keep chat and interactions respectful — no toxicity",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780247593,
    "last_online": 1780264225,
    "icon": null,
    "name": "Brit Graft Rust Server [STAGING][PRIVATE]",
    "connect": "185.239.236.122:28020",
    "request": "185.239.236.122:28022",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 2,
    "maxplayers": 10,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 68,
    "add_date": 1780177435,
    "last_update": 1780264225,
    "banned": false,
    "wipe": 1780145305,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 804,
    "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/11644793");
$data = json_decode($json, true);
var_dump($data);