Killing Floor 2
COMISARIA 76 的 API
我们提供多种集成方式。 你可以使用其中任意一种,也可以通过 JSON API 自行创建集成。 如果你希望我们新增其他集成方式,请联系我们。 联系我们
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11118037json
{
"response": {
"steam_id": "90284174549262342",
"domain": null,
"id": 11118037,
"ip": "45.235.98.241",
"port": 27315,
"query": 27316,
"color": 0,
"city": "Córdoba",
"description": null,
"game": 232090,
"owner": null,
"boosts": 1,
"last_offline": 1775467927,
"score": 0,
"last_online": 1775843423,
"icon": null,
"name": "COMISARIA 76",
"connect": "45.235.98.241:27315",
"request": "45.235.98.241:27316",
"map": "KF-KillZone_TheOctagon",
"gamemode": "Killing Floor 2",
"version": "1150",
"numplayers": 3,
"maxplayers": 6,
"bots": 3,
"secured": true,
"private": false,
"country": "AR",
"status": true,
"votes": 0,
"points": 47,
"add_date": 1770113267,
"last_update": 1775843423,
"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": 126,
"language": "es",
"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/11118037");
$data = json_decode($json, true);
var_dump($data);