JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11800943
json
{
  "response": {
    "fps": 218,
    "fps_avg": 219,
    "entities_count": 69773,
    "world_seed": 171717,
    "world_size": 3500,
    "steam_id": "90286772637764627",
    "domain": null,
    "id": 11800943,
    "ip": "104.243.53.50",
    "port": 28015,
    "query": 28016,
    "project_id": null,
    "color": 0,
    "city": "Spanish Fork",
    "description": "RadRust Chill | Monthly Wipe | 2x Smelt | 2x Wood/Stone/Metal | 3x Cloth & Pickups | Sulfur/HQM 1.5x | Solo/Duo/Trio/Quad | No PTW | PvP/Raiding Welcome | No Jerks | Discord: discord.gg/9UWVSJhC4p",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781463043,
    "last_online": 1781573423,
    "icon": null,
    "name": "RadRust Chill | 2xish Resources | No PTW | Solo/Duo/Trio/Quad",
    "connect": "104.243.53.50:28015",
    "request": "104.243.53.50:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 3,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1781463043,
    "last_update": 1781573423,
    "banned": false,
    "wipe": 1780607960,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1707,
    "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/11800943");
$data = json_decode($json, true);
var_dump($data);