JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11607113
json
{
  "response": {
    "fps": 51,
    "fps_avg": 51,
    "entities_count": 49406,
    "world_seed": 689777,
    "world_size": 3000,
    "steam_id": "90286219765085203",
    "domain": null,
    "id": 11607113,
    "ip": "143.103.19.195",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Mansfield",
    "description": "![[US] 5X Z Nation](https://ik.imagekit.io/v2dxsmiqu5/Z%20Nation%20Files/new%20banners/5x%20new%20banner.png)\nMAP WIPES: TUE & FRI @ 3PM EST\r\nBLUEPRINT WIPES: BIWEEKLY\r\n-------------------------------------------------------------------------------\r\n•5x Gather + Perfectly Balanced Loot\r\nSOLO/DUO/TRIO/QUAD/QUINT",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779915495,
    "last_online": 1780617631,
    "icon": null,
    "name": "[US] 5X Z Nation",
    "connect": "143.103.19.195:28015",
    "request": "143.103.19.195:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 250,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915495,
    "last_update": 1780617631,
    "banned": false,
    "wipe": 1778179762,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5518,
    "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/11607113");
$data = json_decode($json, true);
var_dump($data);