API для Killing Floor Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1791261939,
"app": {
"id": 50,
"name": "Killing Floor",
"steam_id": 1250,
"url": "killing-floor"
},
"color": 0,
"connect": "45.182.127.168:7707",
"country": "AR",
"domain": null,
"game": 1250,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17807154,
"ip": "45.182.127.168",
"language": "es",
"last_update": 1791466605,
"map": "KF-BioticsLab",
"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": "45.182.127.168:28852",
"secured": false,
"status": false,
"steam_id": "90294185830008838",
"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": 1791466605,
"last_online": 1791263745,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 2542,
"wipe_period": null,
"os": "w",
"region": 255,
"product": "killingfloor",
"gametype": "l;1;3",
"dedicated": false
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17807154");
$data = json_decode($json, true);
var_dump($data);