Killing Floor 2
API для COMISARIA 76
Мы предлагаем широкий выбор методов интеграции. Вы можете воспользоваться любым из них или создать свой собственный с помощью JSON API. Если у вас есть предложение по добавлению нового метода интеграции, пожалуйста, свяжитесь с нами. Связаться с нами
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11118037json
{
"response": {
"steam_id": "90284174549262342",
"domain": null,
"id": 11118037,
"ip": "45.235.98.241",
"port": 27315,
"query": 27316,
"color": 0,
"city": "Córdoba",
"description": null,
"game": 232090,
"owner": null,
"boosts": 1,
"last_offline": 1775467927,
"score": 0,
"last_online": 1775841692,
"icon": null,
"name": "COMISARIA 76",
"connect": "45.235.98.241:27315",
"request": "45.235.98.241:27316",
"map": "KF-KillZone_TheOctagon",
"gamemode": "Killing Floor 2",
"version": "1150",
"numplayers": 2,
"maxplayers": 6,
"bots": 2,
"secured": true,
"private": false,
"country": "AR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1770113267,
"last_update": 1775841692,
"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": 719,
"language": "es",
"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.ru/servers/11118037");
$data = json_decode($json, true);
var_dump($data);