JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11501782
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 89099,
    "world_seed": 1586544950,
    "world_size": 4000,
    "steam_id": "90286425380145161",
    "domain": null,
    "id": 11501782,
    "ip": "194.69.160.95",
    "port": 28051,
    "query": 28053,
    "color": 0,
    "city": "City of London",
    "description": "![[EU/UK] Project Grace [DUO][MONTHLY] | PVE -> PVP](https://rust-server-images.physgun.com/42db76acc59781d6082bfe195e5b18a606ee9d6cee2bf41ca56ee0faa0ae2734.png)\nMonthly Wipe • Structured Progression • No Early Chaos\r\n\r\nA different kind of Rust experience.\r\n\r\nWe slow things down at the start so players can actually build, explore, and enjoy the game — before the chaos kicks in.\r\n\r\n🗓️ Wipe Schedule\r\nMonthly wipe (First Thursday @ 19:00 UTC) (Force Wipe)\r\n\r\n⚙️ Server Phases\r\n\r\nWeek 1 — Grace (PvE)\r\n\r\nNo player vs player damage\r\nNo raiding\r\nBuild, farm, progress safely\r\nKey monuments remain PvP\r\n\r\nWeek 2 — PvP (No Raiding)\r\n\r\nPvP enabled across the map\r\nBases are still protected\r\nRoaming and fights begin\r\n\r\nWeek 3+ — Full PvP\r\n\r\nRaiding enabled\r\nFull Rust experience\r\n\r\n📜 Rules\r\nNo cheating or exploiting\r\nNo griefing during Grace phase\r\nRespect other players during PvE\r\nAdmin decisions are final\r\n\r\n🎯 What we’re about\r\n\r\nProject Grace is built for players who want:\r\n\r\n- A fair start each wipe\r\n- Time to actually build something meaningful\r\n- PvP that ramps up naturally\r\n- Less early wipe frustration\r\n\r\nIf you like Rust but hate getting wiped 2 hours in…\r\nyou’ll probably like it here.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780605211,
    "last_online": 1780260633,
    "icon": null,
    "name": "[EU/UK] Project Grace [DUO][MONTHLY] | PVE -> PVP",
    "connect": "194.69.160.95:28051",
    "request": "194.69.160.95:28053",
    "map": "Procedural 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": 1779207180,
    "last_update": 1780605211,
    "banned": false,
    "wipe": 1778178145,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10938,
    "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/11501782");
$data = json_decode($json, true);
var_dump($data);