API для Killing Floor Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790975763,
"app": {
"id": 50,
"name": "Killing Floor",
"steam_id": 1250,
"url": "killing-floor"
},
"color": 0,
"connect": "46.132.92.207:7707",
"country": "FI",
"domain": null,
"game": 1250,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17643816,
"ip": "46.132.92.207",
"language": "fi",
"last_update": 1791466580,
"map": "KF-IceCave",
"maxplayers": 6,
"name": "Killing Floor Server",
"numplayers": 0,
"official": null,
"points": 0,
"port": 7707,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 28852,
"request": "46.132.92.207:28852",
"secured": false,
"status": false,
"steam_id": "90293939351710721",
"version": "1.0.6.5",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Куопио",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1791466580,
"last_online": 1790975763,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1439,
"wipe_period": null,
"os": "w",
"region": 255,
"product": "killingfloor",
"gametype": "l;1;2",
"dedicated": false
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17643816");
$data = json_decode($json, true);
var_dump($data);