JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11501905
json
{
  "response": {
    "fps": 209,
    "fps_avg": 192,
    "entities_count": 109414,
    "world_seed": 0,
    "world_size": 4500,
    "steam_id": "90286604007469063",
    "domain": null,
    "id": 11501905,
    "ip": "82.145.53.15",
    "port": 28017,
    "query": 27017,
    "color": 0,
    "city": "Leicester",
    "description": "![AshenRoot PvE x0.5 No Tech Tree](https://www.dropbox.com/scl/fi/wckvm61jicz9ix8tl6z0m/VV.png?rlkey=5pe2vgvtxntqbcoa08ryfwn49&st=w7cbkk7y&dl=1)\nHARDCORE RUST PvE \r\nA brutal survival experience with reduced loot, slower progression, custom Hardcore systems, and skill leveling up to x5. \r\nGather carefully, survive longer, and build your legacy in a harsh world. \r\n⚠️ Server is still under active development — balance, features, and events are constantly being improved",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595663,
    "last_online": 1780623626,
    "icon": null,
    "name": "AshenRoot PvE x0.5 No Tech Tree",
    "connect": "82.145.53.15:28017",
    "request": "82.145.53.15:27017",
    "map": "Procedural Map",
    "gamemode": "Hardcore",
    "version": "2627",
    "numplayers": 2,
    "maxplayers": 99,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1779207184,
    "last_update": 1780623626,
    "banned": false,
    "wipe": 1780595927,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2131,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11501905");
$data = json_decode($json, true);
var_dump($data);