JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11578456
json
{
  "response": {
    "steam_id": "85568392936258039",
    "domain": null,
    "id": 11578456,
    "ip": "49.233.146.149",
    "port": 28820,
    "query": 28820,
    "project_id": null,
    "color": 0,
    "city": "Beijing",
    "description": null,
    "game": 304930,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781049263,
    "last_online": 1781028182,
    "icon": "https://free.picui.cn/free/2026/05/04/69f86484d4419.png",
    "name": "[第二战线]WW2大战场对战/Beta测试",
    "connect": "49.233.146.149:28820",
    "request": "49.233.146.149:28820",
    "map": "眼镜蛇行动",
    "gamemode": "WW2/阵营对战",
    "version": "3.26.3.2",
    "numplayers": 0,
    "maxplayers": 45,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779356921,
    "last_update": 1781049263,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1895,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 48,
      "steam_id": 304930,
      "name": "Unturned",
      "url": "unturned"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11578456");
$data = json_decode($json, true);
var_dump($data);