API для LSP Server CS 1.6
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": null,
"os": "l",
"product": "cstrike",
"region": -1,
"steam_id": "90288636642437127",
"domain": null,
"id": 11949818,
"ip": "37.230.137.161",
"port": 27014,
"query": 27014,
"project_id": null,
"color": 0,
"city": "Moscow",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1784053815,
"last_online": 1783846210,
"icon": null,
"name": "LSP Server CS 1.6",
"connect": "37.230.137.161:27014",
"request": "37.230.137.161:27014",
"map": "de_train",
"gamemode": null,
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": null,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1783795823,
"last_update": 1784053815,
"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": 6773,
"language": "ru",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11949818");
$data = json_decode($json, true);
var_dump($data);