JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11541303
json
{
  "response": {
    "steam_id": "90285154897078275",
    "domain": null,
    "id": 11541303,
    "ip": "43.143.210.236",
    "port": 13575,
    "query": 14075,
    "color": 0,
    "city": "Beijing",
    "description": null,
    "game": 221100,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780557819,
    "last_online": 1779864142,
    "icon": null,
    "name": "考古挖掘系统 | 挖掘场遗址 | 修复文物获得奖励",
    "connect": "43.143.210.236:13575",
    "request": "43.143.210.236:14075",
    "map": "chernarusplus",
    "gamemode": null,
    "version": "129",
    "numplayers": 0,
    "maxplayers": 70,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779355423,
    "last_update": 1780557819,
    "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": 11213,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 63,
      "steam_id": 221100,
      "name": "DayZ",
      "url": "dayz"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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