Killing Floor
M-Floor 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/9951218json
{
"response": {
"steam_id": "90284254105890827",
"domain": null,
"id": 9951218,
"ip": "203.15.121.27",
"port": 7731,
"query": 28876,
"color": 0,
"city": "Miami",
"description": null,
"game": 1250,
"owner": null,
"boosts": 1,
"last_offline": 1776021739,
"score": 0,
"last_online": 1776295235,
"icon": null,
"name": "M-Floor",
"connect": "203.15.121.27:7731",
"request": "203.15.121.27:28876",
"map": "KFT-SteamyTestMap-LE",
"gamemode": "Test Map",
"version": "1.0.6.5",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1754230619,
"last_update": 1776295235,
"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": 259,
"language": "en",
"parked": false,
"app": {
"id": 50,
"steam_id": 1250,
"name": "Killing Floor",
"url": "killing-floor"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/9951218");
$data = json_decode($json, true);
var_dump($data);