JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11116121
json
{
  "response": {
    "fps": 91,
    "fps_avg": 90,
    "entities_count": 116146,
    "world_seed": 1605782648,
    "world_size": 4500,
    "steam_id": "90286576962782239",
    "domain": null,
    "id": 11116121,
    "ip": "194.50.234.79",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "City of London",
    "description": "![EU/UK RUSTY ISLAND(OLD SCHOOL RUST)/NO OFFLINE RAIDING/LOW UPKE](https://cdn.hostadvice.com/2023/09/final-rust-dedicated-server-0.png)\nWelcome To Rusty Island Old School Rust..\r\n~Tech Tree Disabled\r\n~Researching Costs Full Original Rust Scrap Amount\r\n~Old Rust Legacy Petrol Helicopter\r\n~Low Tc Up Keep 20%\r\n~Noob Friendly Server\r\n~4K Procedural Vanilla Map\r\n~Monthly Map Wipe\r\n~Map Wipe Every First Thursday Of Every Month\r\n~Next Bp Wipe 02/07/2026\r\n~No Team Limit\r\n~Teaming Allowed\r\n~Allies Is Allowed\r\n~Extra Auto Turrets Per Base\r\n~4 Days Offline Raid Protection\r\n~Offline Raid Protection Starts 8 Mins After Logging Off\r\n~Offline 4 Day Protection Resets After Logging Back On The Server\r\n~No More Getting Offlined\r\n~No cheating No Vac Ban Players Allowed\r\n~Join Discord By The Web Page Button\r\n~Enjoy The Server!!!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779328980,
    "last_online": 1780588232,
    "icon": null,
    "name": "EU/UK RUSTY ISLAND(OLD SCHOOL RUST)/NO OFFLINE RAIDING/LOW UPKE",
    "connect": "194.50.234.79:28080",
    "request": "194.50.234.79:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 80,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1770112800,
    "last_update": 1780588232,
    "banned": false,
    "wipe": 1778424198,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4186,
    "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/11116121");
$data = json_decode($json, true);
var_dump($data);