JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11501166
json
{
  "response": {
    "fps": 59,
    "fps_avg": 59,
    "entities_count": 68841,
    "world_seed": 783279292,
    "world_size": 3500,
    "steam_id": "90285946084241411",
    "domain": null,
    "id": 11501166,
    "ip": "54.37.128.27",
    "port": 28015,
    "query": 27017,
    "color": 0,
    "city": "Warsaw",
    "description": "Welcome to ZenRust Solo/Duo Monthly!\r\n\r\nWipe Info:\r\n- Last Wipe: 19/05/2026 (Full Wipe)\r\n- Note: We just switched to a monthly schedule mid-cycle. This current wipe will only last until the upcoming forced wipe.\r\n- Schedule: Moving forward, full wipes occur only on the official forced wipe (the first Thursday of every month).\r\n\r\nRules:\r\n- Max Group Size: 2 (Strictly Solo/Duo)\r\n- No cheating or bug abuse.\r\n- No banned alt accounts.\r\n- No racism or hate speech.\r\n\r\nFeatures:\r\n- High-performance hardware & optimal FPS.\r\n- Active admins.\r\n\r\nDiscord: <coming soon>",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779207167,
    "last_online": 1780583437,
    "icon": null,
    "name": "ZENRUST | SOLO/DUO | MONTHLY 19.05 05/19 JUST WIPED",
    "connect": "54.37.128.27:28015",
    "request": "54.37.128.27:27017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "PL",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207167,
    "last_update": 1780583437,
    "banned": false,
    "wipe": 1779189690,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4771,
    "language": "pl",
    "parked": false,
    "app": {
      "id": 252490,
      "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/11501166");
$data = json_decode($json, true);
var_dump($data);