Killing Floor 2
#毁灭战士,黑暗时代(Doom) 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/6292356json
{
"response": {
"steam_id": "90284589678104605",
"domain": null,
"id": 6292356,
"ip": "175.178.214.31",
"port": 1318,
"query": 20556,
"color": 0,
"city": "Guangzhou",
"description": null,
"game": 232090,
"owner": null,
"boosts": 1,
"last_offline": 1777258359,
"score": 0,
"last_online": 1776505940,
"icon": null,
"name": "#毁灭战士,黑暗时代(Doom)",
"connect": "175.178.214.31:1318",
"request": "175.178.214.31:20556",
"map": "kf-cube-2024-challenge",
"gamemode": "Killing Floor 2",
"version": "1150",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1729563650,
"last_update": 1777258359,
"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": 901,
"language": "zh",
"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/6292356");
$data = json_decode($json, true);
var_dump($data);