JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11645216
json
{
  "response": {
    "fps": 196,
    "fps_avg": 197,
    "entities_count": 101701,
    "world_seed": 1754166749,
    "world_size": 4250,
    "steam_id": "90286629041752079",
    "domain": null,
    "id": 11645216,
    "ip": "161.184.191.150",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Calgary",
    "description": "![Alberta Wildlands](https://i.imgur.com/lJqkVO6.png)\nPure vanilla Rust with a strong, respectful Alberta community. No kits, no boosts — just real survival and fair competition. Monthly wipes keep the world fresh and the action constant.\r\n\r\nServer Expectations:\r\n\r\n Respect others — compete hard, but keep it clean\r\n\r\n No cheating, exploiting, scripting, or 3rd party tools\r\n\r\n No harassment or targeted griefing\r\n\r\n No racism, hate, or slurs of any kind\r\n\r\n No excessive spam or trolling\r\n\r\n Admins enforce rules fairly and transparently\r\n\r\nPlay fair, build smart, fight hard, and help keep the Wildlands a place people actually want to play. Welcome to Alberta Wildlands.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595664,
    "last_online": 1780669830,
    "icon": null,
    "name": "Alberta Wildlands",
    "connect": "161.184.191.150:28015",
    "request": "161.184.191.150:28016",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 5,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1780177453,
    "last_update": 1780669830,
    "banned": false,
    "wipe": 1780595941,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2086,
    "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/11645216");
$data = json_decode($json, true);
var_dump($data);