JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11511265
json
{
  "response": {
    "fps": 87,
    "fps_avg": 88,
    "entities_count": 88475,
    "world_seed": 0,
    "world_size": 4608,
    "steam_id": 90286309352022020,
    "domain": null,
    "id": 11511265,
    "ip": "5.226.141.82",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "City of London",
    "description": "![RED - No BP Wipe, Low UpKeep, No Team Limit, Noob Friendly](https://i.postimg.cc/R0nBSbqr/RED-Logo-J.jpg)\n\r\n* RED - Rust, Extremeley Dangerous.\r\n* Noob Friendly\r\n* No BP Wipes\r\n* Low UpKeep (25%)\r\n* No Team Limit\r\n* Weekly Map Wipe\r\n*\r\n*",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780549415,
    "last_online": 1780147227,
    "icon": null,
    "name": "RED - No BP Wipe, Low UpKeep, No Team Limit, Noob Friendly",
    "connect": "5.226.141.82:28080",
    "request": "5.226.141.82:28015",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779353840,
    "last_update": 1780549415,
    "banned": false,
    "wipe": 1778864846,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 11866,
    "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/11511265");
$data = json_decode($json, true);
var_dump($data);