JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/10571557
json
{
  "response": {
    "fps": 227,
    "fps_avg": 224,
    "entities_count": 107337,
    "world_seed": 15667772,
    "world_size": 4500,
    "steam_id": "90286590919990272",
    "domain": null,
    "id": 10571557,
    "ip": "64.140.169.50",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Ogden",
    "description": "![[HZN.GG] - NO KOS|NO DECAY|SCRAP | Wiped 05/21](https://i.ibb.co/j9wt3SV5/file-0000000090d461f9800bc7e8c6730a23.png)\n•• HZN.GG - Pacific Horizon Rust Server •• \r\n  \r\n Beginner Friendly |  No Decay |  Free Scrap \r\n  \r\n Welcome to HZN.GG — a relaxed, community-driven Rust server designed for both new and veteran players. Build, explore, and survive without the constant chaos of kill-on-sight gameplay. \r\n  \r\n •• PvP Zones •• \r\n  \r\n • NO KOS (outside designated PvP areas) \r\n • Oil Rigs \r\n • Launch Site \r\n • Military Tunnels \r\n • Cargo Ship \r\n • Airdrops \r\n • Train Tunnels \r\n • Locked Crates \r\n • Bradley & Heli Events \r\n  \r\n 💥 Raiding Rules: \r\n • Raids allowed, but no griefing or camping. \r\n • Sealing is fine, but locks must be removed after. \r\n  \r\n ⚠️ Bases & Traps: \r\n • Trap bases allowed if secured. \r\n • No random wild traps. \r\n • Do not block monuments or quarries. \r\n • Cave bases must always allow an exit. \r\n  \r\n •• Not Tolerated: •• \r\n • Cheats, scripts, or exploits (instant ban + report). \r\n • Spam crafting, despawning, entity/firework spam. \r\n • Ban evasion = permanent ban. \r\n  \r\n Team Limit: 2 Players \r\n  \r\n A place to learn, to grow, and to thrive — HZN.GG is the wasteland where every survivor finds their home. \r\n  \r\n Join us, build your story, and conquer the wasteland together. \r\n Discord: DISCORD.HZN.GG",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779375826,
    "last_online": 1780573233,
    "icon": null,
    "name": "[HZN.GG] - NO KOS|NO DECAY|SCRAP | Wiped 05/21",
    "connect": "64.140.169.50:28015",
    "request": "64.140.169.50:28017",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1762847095,
    "last_update": 1780573233,
    "banned": false,
    "wipe": 1779375987,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3635,
    "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/10571557");
$data = json_decode($json, true);
var_dump($data);