JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/10310648
json
{
  "response": {
    "fps": 240,
    "fps_avg": 239,
    "entities_count": 18244,
    "world_seed": 6,
    "world_size": 2000,
    "steam_id": "90286736104348680",
    "domain": null,
    "id": 10310648,
    "ip": "45.92.36.171",
    "port": 28015,
    "query": 28016,
    "project_id": null,
    "color": 0,
    "city": "Maidenhead",
    "description": "![[EU] Rust Nemesis | 1x Weekly Thursdays | Events | Raidable Bas](https://github.com/RustNemesis/rust-server-assets/blob/main/Rust_Nemesis_Header_512x256.png?raw=true)\nWelcome to Rust Nemesis   Custom Dynamic Events:   Raidable Bases & Cargo Plane Crashes   Airfield Raids & Power Plant Invasions   Junkyard Battles & Gas Station Shootouts   Jet Wrecks & Sputnik Crashes   Convoy Patrols & Roaming Drones   Harbor Chaos & Satellite Dish Outbreaks   Tugboat Pirates & Water Patrol Raids    Features:   Scaling difficulty across the wipe   Balanced loot tables   Active admins   Weekly wipes   Challenge grows as the wipe progresses — tougher enemies, bigger rewards.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776049310,
    "last_online": 1780900234,
    "icon": null,
    "name": "[EU] Rust Nemesis | 1x Weekly Thursdays | Events | Raidable Bas",
    "connect": "45.92.36.171:28015",
    "request": "45.92.36.171:28016",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1758288387,
    "last_update": 1780900234,
    "banned": false,
    "wipe": 1780638147,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3531,
    "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/10310648");
$data = json_decode($json, true);
var_dump($data);