JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11731518
json
{
  "response": {
    "fps": 230,
    "fps_avg": 223,
    "entities_count": 68097,
    "world_seed": 142893166,
    "world_size": 3500,
    "steam_id": "90286573766686723",
    "domain": null,
    "id": 11731518,
    "ip": "85.190.138.62",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "Rust experience with balanced progression, active moderation, optimized performance, and a growing community. Rise above the rest.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470419,
    "last_online": 1780606835,
    "icon": null,
    "name": "ASCEND Rust | Premium 2x | Wipe Weekly",
    "connect": "85.190.138.62:28015",
    "request": "85.190.138.62:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780411261,
    "last_update": 1780606835,
    "banned": false,
    "wipe": 1780400793,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5663,
    "language": "de",
    "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/11731518");
$data = json_decode($json, true);
var_dump($data);