API для cs.Game.LGSS
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 15442945,
"ip": "188.243.171.37",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Санкт-Петербург",
"description": null,
"game": 10,
"boosts": 1,
"last_offline": 1788805116,
"last_online": 1788939063,
"icon": null,
"name": "cs.Game.LGSS",
"connect": "188.243.171.37:27015",
"request": "188.243.171.37:27015",
"map": "aim_mansion2",
"gamemode": "ReHLDS Server",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1788776065,
"last_update": 1788939063,
"ban_reason": null,
"banned": false,
"hidden": 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": 10272,
"language": "ru",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/15442945");
$data = json_decode($json, true);
var_dump($data);