面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11717873
json
{
  "response": {
    "fps": 197,
    "fps_avg": 196,
    "entities_count": 101396,
    "world_seed": 1337,
    "world_size": 4000,
    "steam_id": "90286575449381899",
    "domain": null,
    "id": 11717873,
    "ip": "43.249.192.243",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Jinan",
    "description": "![【永恒】二倍|三人|下午3点新开|新手友好|rustcnh](https://001.cn-nb1.rains3.com/CNHRustSeverblack.png)\n欢迎加入永恒Rust服务器!访问我们的网站rustcnh.com以了解更多信息!\r\n\r\n清档时间规则:\r\n北京时间每周五下午15:00强制清档(含蓝图清除);北京时间每月第一个星期五凌晨2:00官方清档。\r\n\r\n服务器详情:\r\n2倍资源刷新,游戏节奏更快\r\n限制3人组队,请勿超员\r\n加快夜晚时长,优化游戏体验\r\n24小时专业管理团队在线,举报问题实时响应处理\r\n禁止了破坏游戏公平性的特殊指令权限,如remove等\r\n\r\n社群以及联系我们:\r\n我们的网站:rustcnh.com\r\n社区QQ群:865017351\r\nKOOK组队大厅:66346195\r\nDiscord社区https://discord.gg/r2Hakdy3\r\n\r\n我们是一群专注于游戏娱乐的团队,永恒CNH祝您玩的愉快!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780324085,
    "last_online": 1780564420,
    "icon": null,
    "name": "【永恒】二倍|三人|下午3点新开|新手友好|rustcnh",
    "connect": "43.249.192.243:28015",
    "request": "43.249.192.243:28016",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 200,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1780324085,
    "last_update": 1780564420,
    "banned": false,
    "wipe": 1780304713,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1765,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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