面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11630649
json
{
  "response": {
    "steam_id": "85568392936241776",
    "domain": null,
    "id": 11630649,
    "ip": "112.17.187.18",
    "port": 5842,
    "query": 5842,
    "color": 0,
    "city": "Hangzhou",
    "description": null,
    "game": 304930,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780662212,
    "last_online": 1780110049,
    "icon": "https://cdn4.winhlb.com/2026/01/16/696a02afef250.png",
    "name": "[LM]萤火拉米加州2.0修仙系统|玩家社区|新手友好",
    "connect": "112.17.187.18:5842",
    "request": "112.17.187.18:5842",
    "map": "California2+",
    "gamemode": "全新地图丨新手福利",
    "version": "3.26.3.2",
    "numplayers": 0,
    "maxplayers": 72,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779916697,
    "last_update": 1780662212,
    "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": 2119,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 48,
      "steam_id": 304930,
      "name": "Unturned",
      "url": "unturned"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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