面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11665074
json
{
  "response": {
    "steam_id": "85568392936265719",
    "domain": null,
    "id": 11665074,
    "ip": "110.42.10.234",
    "port": 27491,
    "query": 27491,
    "project_id": null,
    "color": 0,
    "city": "Ningbo",
    "description": null,
    "game": 304930,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780654460,
    "last_online": 1780872148,
    "icon": "file:///C:/Users/Intel/Downloads/2D42076AA494C2F3591FE4602237C6B6.png",
    "name": "破碎大陆服务器/中倍率掉落/副本/PVEVP/超大背包",
    "connect": "110.42.10.234:27491",
    "request": "110.42.10.234:27491",
    "map": "California2",
    "gamemode": "破碎大陆",
    "version": "3.26.3.2",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1780179092,
    "last_update": 1780872148,
    "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": 1554,
    "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/11665074");
$data = json_decode($json, true);
var_dump($data);