API для la familia
JSON для программ, сайтов и прочего
text
json
{
"response": {
"os": "l",
"region": 0,
"product": "cstrike",
"gametype": "alltalk,best,bhop,bots,bunnyhopping,custom,game,grenade,specinfo,startmoney,surf,surf_,surftimer",
"dedicated": true,
"steam_id": "90292114724363278",
"domain": null,
"id": 12421420,
"ip": "74.91.115.159",
"port": 27056,
"query": 27056,
"project_id": null,
"color": 0,
"city": "Чикаго",
"description": null,
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1788481830,
"last_online": 1788490800,
"icon": null,
"name": "la familia",
"connect": "74.91.115.159:27056",
"request": "74.91.115.159:27056",
"map": "surf_boreas",
"gamemode": "Counter-Strike: Source",
"version": "10897846",
"numplayers": 0,
"maxplayers": 20,
"bots": 3,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1784664144,
"last_update": 1788490800,
"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": 351,
"language": "en",
"parked": false,
"app": {
"id": 5,
"steam_id": 240,
"name": "Counter-Strike: Source",
"url": "counter-strike-source"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12421420");
$data = json_decode($json, true);
var_dump($data);