API для Server CS 1.6 (ReHLDS 3.14.0.857) by castle-host.com
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": null,
"os": "l",
"product": "cstrike",
"region": -1,
"steam_id": "90288690415037459",
"domain": null,
"id": 11950166,
"ip": "188.127.241.8",
"port": 27122,
"query": 27122,
"project_id": null,
"color": 0,
"city": "Moscow",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1784053815,
"last_online": 1783805407,
"icon": null,
"name": "Server CS 1.6 (ReHLDS 3.14.0.857) by castle-host.com",
"connect": "188.127.241.8:27122",
"request": "188.127.241.8:27122",
"map": "cs_siege",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 25,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1783795825,
"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": 6776,
"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/11950166");
$data = json_decode($json, true);
var_dump($data);