JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11710885
json
{
  "response": {
    "fps": 67,
    "fps_avg": 67,
    "entities_count": 54890,
    "world_seed": 1337,
    "world_size": 4850,
    "steam_id": 90286467074272260,
    "domain": null,
    "id": 11710885,
    "ip": "185.248.134.200",
    "port": 28014,
    "query": 28015,
    "color": 0,
    "city": "London",
    "description": "![Lumity 10x is cool](https://cdn3.mapstr.gg/c919782009e7fc5b22691ce487db2fa3.png)\nLumity is a high-performance premium rust server focused on delivering a balanced and competitive 10x experience.\r\n\r\nWhat we offer:\r\n\r\nIncreased gather rates 10x\r\nOptimized loot system\r\nFast crafting & smelting\r\nStarter kits for quick entry\r\nCustom events & PvP activities\r\nActive staff & regular updates\r\n\r\nServer Rules:\r\n\r\nDiscord.gg/lumityrust\r\nNo cheating or exploiting\r\nNo racism or excessive toxicity\r\n\r\nDetails:\r\n- Max Team Size: 32\r\n- Map Wipes Mondays & Fridays\r\n\r\nDesigned for both casual and competitive players.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780395253,
    "last_online": 1780570830,
    "icon": null,
    "name": "Lumity 10x is cool",
    "connect": "185.248.134.200:28014",
    "request": "185.248.134.200:28015",
    "map": "Discord.gg/LumityRust",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 0,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780300730,
    "last_update": 1780570830,
    "banned": false,
    "wipe": 1780290190,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6026,
    "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/11710885");
$data = json_decode($json, true);
var_dump($data);