JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/9528445
json
{
  "response": {
    "fps": 163,
    "fps_avg": 152,
    "entities_count": 125080,
    "world_seed": 470462927,
    "world_size": 4500,
    "steam_id": "90286593615272970",
    "domain": null,
    "id": 9528445,
    "ip": "108.255.39.105",
    "port": 16010,
    "query": 16011,
    "color": 0,
    "city": "Owasso",
    "description": "Welcome to Rusty Amigos! US \r\nBuilder-focused PVE, wipes monthly \r\nRules, Plugin and command info are all on discord! \r\nJoin Discord, click the view webpage button!\r\nWe only have a few hard rules, plz respect them!\r\n\r\n What do we offer.\r\n- We have our own server with good fps and almost no lag!\r\n- A server discord, with chat channels and info you want to know about the server.\r\n- Active admins and moderators.\r\n- We have a Modded outpost! \r\n- Quarries & Test Generators for sale at the outpost.\r\n\r\nChanges to the server!\r\nApart from all the plugins, its a vanilla loot server!\r\nThings that changed are the stack sizes and its 3x wood/stone/frags!\r\n\r\nEvent plugins                           Build plugins\r\n\r\nHarborEvent                              WaterBases\r\nRaidableBases                          Drawbridges\r\nPilotEject                                   SkinBox\r\nHeliRefuel                                  VaultDoor\r\nBradley Guards                         EnhancedHammer\r\nCargo Airplane Crash               BuildingWorkbench\r\nZombies                                    SubmersiblePump\r\n\r\nWe hope to see you on the server.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780577072,
    "last_online": 1780583443,
    "icon": null,
    "name": "Rusty Amigos! US / Builder-focused PVE",
    "connect": "108.255.39.105:16010",
    "request": "108.255.39.105:16011",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 20,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1750538048,
    "last_update": 1780583443,
    "banned": false,
    "wipe": 1778176862,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3391,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "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/9528445");
$data = json_decode($json, true);
var_dump($data);