API для B Nights
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286778210563082",
"domain": null,
"id": 11767610,
"ip": "98.23.102.22",
"port": 7778,
"query": 27016,
"project_id": null,
"color": 0,
"city": "Texarkana",
"description": null,
"game": 1857950,
"owner": null,
"boosts": 1,
"last_offline": 1780933891,
"last_online": 1781031643,
"icon": null,
"name": "B Nights",
"connect": "98.23.102.22:7778",
"request": "98.23.102.22:27016",
"map": "Champlain Valley",
"gamemode": "VEIN",
"version": "0.024h1",
"numplayers": 2,
"maxplayers": 4,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 53,
"add_date": 1780933891,
"last_update": 1781031643,
"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": 44,
"language": "en",
"parked": false,
"app": {
"id": 1530675,
"steam_id": 1857950,
"name": "VEIN",
"url": "vein"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11767610");
$data = json_decode($json, true);
var_dump($data);