JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11607095
json
{
  "response": {
    "fps": 36,
    "fps_avg": 33,
    "entities_count": 139169,
    "world_seed": 6942069,
    "world_size": 5000,
    "steam_id": "90285805590499333",
    "domain": null,
    "id": 11607095,
    "ip": "216.68.127.110",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Cincinnati",
    "description": null,
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780620199,
    "last_online": 1780450311,
    "icon": null,
    "name": "AZPZ Rust",
    "connect": "216.68.127.110:28015",
    "request": "216.68.127.110:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 10,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779915494,
    "last_update": 1780620199,
    "banned": false,
    "wipe": 1776480603,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 11915,
    "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/11607095");
$data = json_decode($json, true);
var_dump($data);