Killian's Tavern 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286864211651612",
"domain": null,
"id": 11630435,
"ip": "173.237.43.77",
"port": 20149,
"query": 20150,
"project_id": null,
"color": 0,
"city": "Dallas",
"description": null,
"game": 1326470,
"owner": null,
"boosts": 1,
"last_offline": 1781145258,
"last_online": 1781187072,
"icon": null,
"name": "Killian's Tavern",
"connect": "173.237.43.77:20149",
"request": "173.237.43.77:20150",
"map": "Custom",
"gamemode": "Sons Of the Forest",
"version": "0.11.3.0.0",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779916685,
"last_update": 1781187072,
"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": 1159,
"language": "en",
"parked": false,
"app": {
"id": 1569757,
"steam_id": 1326470,
"name": "Sons Of The Forest",
"url": "sons-of-the-forest"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11630435");
$data = json_decode($json, true);
var_dump($data);