JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11501050
json
{
  "response": {
    "fps": 234,
    "fps_avg": 232,
    "entities_count": 86080,
    "world_seed": 1456029864,
    "world_size": 4000,
    "steam_id": "90286609413183505",
    "domain": null,
    "id": 11501050,
    "ip": "148.251.138.115",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Falkenstein",
    "description": "![Convergence | Citadel |3XLoot|PvP+PvE|Skins|Trio|Events|Skills|](https://rust.convergencegaming.net/assets/citadel-header.png?v=1)\nConvergence is a hybrid Rust server built for players who want freedom without sacrificing challenge. No forced PvP, \r\nno PVE hand-holding — just a world that pushes back.\r\n\r\nPlay your way:\r\n\r\nPVE Mode for building, exploring, and progression.\r\nPVP Mode when you're ready to raid, fight, and compete.\r\nSwitch anytime at designated zones — your playstyle, your rules.\r\n\r\nWelcome to Rust:\r\n\r\nSmart NPC raiders that patrol, ambush, and fight strategically.\r\nBalanced progression — rewarding, not easy.\r\nEvents for both PVE and PVP players.\r\nNo pay-to-win — skill matters.\r\n\r\nWhether you build, fight, or do both — your story starts here.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780601070,
    "last_online": 1780608031,
    "icon": null,
    "name": "Convergence | Citadel |3XLoot|PvP+PvE|Skins|Trio|Events|Skills|",
    "connect": "148.251.138.115:28015",
    "request": "148.251.138.115:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207167,
    "last_update": 1780608031,
    "banned": false,
    "wipe": 1780605570,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4557,
    "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/11501050");
$data = json_decode($json, true);
var_dump($data);