grobhouse 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286082364105737",
"domain": null,
"id": 11577412,
"ip": "178.192.162.161",
"port": 7777,
"query": 27015,
"color": 0,
"city": "Geneva",
"description": null,
"game": 232090,
"owner": null,
"boosts": 1,
"last_offline": 1779471218,
"last_online": 1779484819,
"icon": null,
"name": "grobhouse",
"connect": "178.192.162.161:7777",
"request": "178.192.162.161:27015",
"map": "KF-Wyre2009",
"gamemode": "Killing Floor 2",
"version": "1150",
"numplayers": 5,
"maxplayers": 6,
"bots": 5,
"secured": true,
"private": true,
"country": "CH",
"status": true,
"votes": 0,
"points": 83,
"add_date": 1779356874,
"last_update": 1779484819,
"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": 46,
"language": "de",
"parked": false,
"app": {
"id": 51,
"steam_id": 232090,
"name": "Killing Floor 2",
"url": "killing-floor-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11577412");
$data = json_decode($json, true);
var_dump($data);