JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11502252
json
{
  "response": {
    "fps": 101,
    "fps_avg": 103,
    "entities_count": 71590,
    "world_seed": 481981,
    "world_size": 3500,
    "steam_id": "90286590816804882",
    "domain": null,
    "id": 11502252,
    "ip": "204.13.236.203",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "Secaucus",
    "description": "![[US]Phoenix PvE 2x|RaidBases|Events|RP|Monthly](https://i.imgur.com/KIs4m6C.png)\nWelcome to Phoenix Gaming - a growing global Rust community!\r\n\r\nUS PvE/RP 2x server with RaidBases, Events, RP and monthly wipes.\r\n\r\nWant more Phoenix? Our EU/Nordic Main Server has Custom Helis, more plugins and bigger events.\r\n\r\nWebsite: PhoenixGaming.NET\r\nDiscord: Shared community for US + EU\r\n\r\n- 2x Gathering\r\n- PVP/Raid Blocking\r\n- Raidable Bases\r\n- NO GROUP LIMIT\r\n- Convoy\r\n- Junk items removed from loot\r\n- Trade\r\n- TP\r\n- /remove\r\n- Nightvision\r\n- Craftingspeed 2x - Smeltspeed 2x - Recyclerspeed 2x\r\n- Clans REBORN\r\n- BetterTC - Upgrade/down the entire base + Skins\r\n- Located in the USA\r\n- RP\r\n- Shop",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780225452,
    "last_online": 1780627827,
    "icon": null,
    "name": "[US]Phoenix PvE 2x|RaidBases|Events|RP|Monthly",
    "connect": "204.13.236.203:28080",
    "request": "204.13.236.203:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207195,
    "last_update": 1780627827,
    "banned": false,
    "wipe": 1779103800,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 1,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4643,
    "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/11502252");
$data = json_decode($json, true);
var_dump($data);