JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11771344
json
{
  "response": {
    "fps": 72,
    "fps_avg": 72,
    "entities_count": 123643,
    "world_seed": 478443036,
    "world_size": 4500,
    "steam_id": "90286834800757782",
    "domain": null,
    "id": 11771344,
    "ip": "157.211.209.246",
    "port": 28015,
    "query": 28018,
    "project_id": null,
    "color": 0,
    "city": "Morwell",
    "description": "Server Featues:\r\n This is a balanced, PVE x5 server.\r\n No TC Upkeep. \r\n No pay to win, racism, cheating, or toxic gameplay.\r\n Wipes monthly or when the server dies.\r\n  Recyclers at most monuments.\r\n Active Admins.\r\n Custom loot tables.\r\n  Remover Tool.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781085869,
    "last_online": 1781157030,
    "icon": null,
    "name": "[AUS] PEACE 5x PVE No Kill No Raid",
    "connect": "157.211.209.246:28015",
    "request": "157.211.209.246:28018",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780996895,
    "last_update": 1781157030,
    "banned": false,
    "wipe": 1780962460,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6143,
    "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/11771344");
$data = json_decode($json, true);
var_dump($data);