Killing Floor 2
Huwhyte tactical KF beta #10 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11480740json
{
"response": {
"steam_id": "90283986793267221",
"domain": null,
"id": 11480740,
"ip": "5.161.149.88",
"port": 27820,
"query": 47058,
"color": 0,
"city": "Ashburn",
"description": null,
"game": 232090,
"owner": null,
"boosts": 1,
"last_offline": 1775323334,
"score": 0,
"last_online": 1777238454,
"icon": null,
"name": "Huwhyte tactical KF beta #10",
"connect": "5.161.149.88:27820",
"request": "5.161.149.88:47058",
"map": "KF-ThrillsChills_NoDropTowerSpawn",
"gamemode": "Killing Floor 2",
"version": "1150",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774979211,
"last_update": 1777238454,
"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": 788,
"language": "en",
"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/11480740");
$data = json_decode($json, true);
var_dump($data);