JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11759639
json
{
  "response": {
    "fps": 84,
    "fps_avg": 80,
    "entities_count": 72949,
    "world_seed": 71000,
    "world_size": 3500,
    "steam_id": "90286889200960518",
    "domain": null,
    "id": 11759639,
    "ip": "1.52.177.149",
    "port": 28015,
    "query": 28017,
    "project_id": null,
    "color": 0,
    "city": "Ho Chi Minh City",
    "description": "![VN-MP.COM 2x - SEA|PVP|Max Squad|Weekly Map|Monthly BP](https://vn-mp.com/rust/logo_rust_x2.png)\nVN-MP.COM 2x - SEA|x2|Max Squad|Weekly Map|Monthly BP\r\n\r\n- Wipe: Monthly\r\n- Rate: 2x Gather/Smelt/Craft\r\n- Group Limit: 4 Max",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781200435,
    "last_online": 1781262027,
    "icon": null,
    "name": "VN-MP.COM 2x - SEA|PVP|Max Squad|Weekly Map|Monthly BP",
    "connect": "1.52.177.149:28015",
    "request": "1.52.177.149:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 7,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "VN",
    "status": true,
    "votes": 0,
    "points": 63,
    "add_date": 1780931725,
    "last_update": 1781262027,
    "banned": false,
    "wipe": 1781200311,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1219,
    "language": "vi",
    "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/11759639");
$data = json_decode($json, true);
var_dump($data);