JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/3679528
json
{
  "response": {
    "fps": 98,
    "fps_avg": 101,
    "entities_count": 119200,
    "world_seed": 1099713234,
    "world_size": 4500,
    "steam_id": "90286604374997001",
    "domain": null,
    "id": 3679528,
    "ip": "185.216.144.100",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "City of London",
    "description": "![BAREFOOT EU 2X PVE [NO BP WIPE] NOOBS FRIENDLY](https://www.dropbox.com/scl/fi/eu9192xm8ebhywe02qvda/BAREFOOT.png?rlkey=25xkw625msieni8ew38ui723c&st=zwksb7mm&dl=1)\nWelcome to BAREFOOT EU 2X PVE \r\nSOLO/DUO/QUAD NO ALLIANCES\r\nMonthly PVE with PURGE at 7pm on the last Monday before wipe\r\n\r\n-Monthly Force Wipe - No BP Wipe\r\n-50% Up Keep.\r\n-Increased Stack Size\r\n-Longer Day/Shorter Night\r\n-Events\r\n-Raidable Bases\r\n-Aire event\r\n-Sputnik\r\n-Convoy Reformed\r\n-Barges\r\n-We also have\r\n-Removel Tool\r\n-Furnace Splitter\r\n-Shop were you can spend your points",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596861,
    "last_online": 1780608029,
    "icon": null,
    "name": "BAREFOOT EU 2X PVE [NO BP WIPE] NOOBS FRIENDLY",
    "connect": "185.216.144.100:28080",
    "request": "185.216.144.100:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1711959620,
    "last_update": 1780608029,
    "banned": false,
    "wipe": 1780597300,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2247,
    "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/3679528");
$data = json_decode($json, true);
var_dump($data);