面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11511467
json
{
  "response": {
    "steam_id": "90286344345825311",
    "domain": null,
    "id": 11511467,
    "ip": "49.233.35.49",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Beijing",
    "description": "![【河马】5.29新开-2倍-无权-末日新地图](https://rust-langan.oss-cn-beijing.aliyuncs.com/rust1.png)\n欢迎来到河马服务器         QQ群:1098649363\r\n\r\n服务器特色:\r\n1、每周轮换特色地图,如:行尸走肉、金刚岛等;\r\n2、严格查挂:打击外挂、鼠标宏等作弊行为;\r\n3、游戏教学:新手可加QQ群联系腐竹,教学刷物资点、盖房子、拉电等;\r\n4、清档时间:每周星期五;\r\n5、每晚都有炸家保护,夜晚可安心睡觉。",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780382654,
    "last_online": 1780579234,
    "icon": null,
    "name": "【河马】5.29新开-2倍-无权-末日新地图",
    "connect": "49.233.35.49:28015",
    "request": "49.233.35.49:28017",
    "map": "Custom Map",
    "gamemode": "Rust",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1779353849,
    "last_update": 1780579234,
    "banned": false,
    "wipe": 1780026178,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1912,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 252490,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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