JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11189378
json
{
  "response": {
    "fps": 59,
    "fps_avg": 58,
    "entities_count": 55128,
    "world_seed": 1234567,
    "world_size": 2600,
    "steam_id": "90286591611261955",
    "domain": null,
    "id": 11189378,
    "ip": "91.229.114.45",
    "port": 28099,
    "query": 28101,
    "color": 0,
    "city": "Chicago",
    "description": "![The Rusty Workers 2X|Solo Only|Raid Window|Casual 05/22](https://i.postimg.cc/4xPFc9Fc/banner1.png)\nThe Rusty Workers (serving busy players since 2020)\r\n\r\nDesigned for players with limited time (work/study schedules).\r\nFocused on fair play and reducing offline raiding.\r\n\r\nRaid Rules:\r\n- Raids allowed only between 7:00 PM – 12:00 AM EST (plugin enforced)\r\n- Max 1 raid per day during the first week of wipe\r\n- Raids defined as any use of explosives (GP items, C4, rockets, satchels, etc.)\r\n\r\nServer Features:\r\n- Solo only (no alliances)\r\n- Short nights (5 minutes)\r\n- Hackable crates: 10 minutes\r\n- Combined Outpost + Bandit Camp\r\n- Recyclers on Cargo Ship and Oil Rigs\r\n- Minicopters do not decay\r\n- PVP allowed all the time!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470420,
    "last_online": 1780610428,
    "icon": null,
    "name": "The Rusty Workers 2X|Solo Only|Raid Window|Casual 05/22",
    "connect": "91.229.114.45:28099",
    "request": "91.229.114.45:28101",
    "map": "Wiped - 12 days ago",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1772699049,
    "last_update": 1780610428,
    "banned": false,
    "wipe": 1779487863,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2472,
    "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/11189378");
$data = json_decode($json, true);
var_dump($data);