JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11606637
json
{
  "response": {
    "steam_id": "90286136605047829",
    "domain": null,
    "id": 11606637,
    "ip": "66.51.97.62",
    "port": 28090,
    "query": 28091,
    "color": 0,
    "city": "City of London",
    "description": "![AFTER IMPACT](https://i.ibb.co/TwnSdCM/Rust-Header-Image-Raised.png)\nHumanity abandoned Earth aboard a colossal interstellar ark known as Eidolon after ecological collapse rendered the planet nearly uninhabitable.\r\n\r\nDecades into deep-space exploration, the vessel collided with a massive rogue asteroid field after a catastrophic navigation failure. The impact shattered the ship into thousands of fragments, trapping debris within Earth’s orbit.\r\n\r\nEscape pods, cryogenic survivors, cargo modules, reactor fragments, and asteroid debris rained back to the surface over decades.\r\n\r\nNow the remains continue to fall.\r\n\r\nMeteor storms carry valuable ores, advanced components, experimental technology — and destruction.\r\n\r\nThe island is one of the few remaining survivable zones.\r\n\r\nEvery survivor fights for what remains of civilization.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779915478,
    "last_online": 1780605635,
    "icon": null,
    "name": "AFTER IMPACT",
    "connect": "66.51.97.62:28090",
    "request": "66.51.97.62:28091",
    "map": "Procedural Map",
    "gamemode": "Rust",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915478,
    "last_update": 1780605635,
    "banned": false,
    "wipe": 1779566338,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5109,
    "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/11606637");
$data = json_decode($json, true);
var_dump($data);