Killing Floor 2
Ch3rryPie | ZedternalU (Roguelike custom 10GB!) 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10317875json
{
"response": {
"steam_id": "90284939022027795",
"domain": null,
"id": 10317875,
"ip": "95.165.68.129",
"port": 7777,
"query": 27015,
"color": 0,
"city": "Moscow",
"description": null,
"game": 232090,
"owner": 144339,
"boosts": 1,
"last_offline": 1777109015,
"score": 0,
"last_online": 1777238423,
"icon": null,
"name": "Ch3rryPie | ZedternalU (Roguelike custom 10GB!)",
"connect": "95.165.68.129:7777",
"request": "95.165.68.129:27015",
"map": "KF-Random_Holdout_Challenge_C",
"gamemode": "Killing Floor 2",
"version": "1150",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1758290801,
"last_update": 1777238423,
"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": 39,
"language": "ru",
"parked": false,
"app": {
"id": 51,
"steam_id": 232090,
"name": "Killing Floor 2",
"url": "killing-floor-2"
},
"server_owner": {
"username": "Anton_Sychev",
"avatar": "4e0c36a7-43da-4086-ad16-18dc5e04ff0e.jpg",
"last_online": 1767822304
},
"mods": [],
"disabled_modules": [
"chat"
]
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10317875");
$data = json_decode($json, true);
var_dump($data);