API для VOLOVAT
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1788563477,
"app": {
"id": 1600891,
"name": "Icarus",
"steam_id": 1149460,
"url": "icarus"
},
"color": 0,
"connect": "54.37.128.175:17777",
"country": "PL",
"domain": null,
"game": 1149460,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 14955988,
"ip": "54.37.128.175",
"language": "pl",
"last_update": 1791174259,
"map": null,
"maxplayers": 8,
"name": "VOLOVAT",
"numplayers": 0,
"official": null,
"points": 30,
"port": 17777,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27067,
"request": "54.37.128.175:27067",
"secured": true,
"status": true,
"steam_id": "90292266606481431",
"version": "0.0.0.1",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Варшава",
"description": null,
"disabled_modules": [],
"gamemode": "Icarus",
"hidden": false,
"last_offline": 1790242578,
"last_online": 1791174259,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 4954,
"wipe_period": null,
"D_s": "1",
"G_s": "3.0.26.156677-x-x",
"L_s": "1",
"P_s": "Lobby",
"P2PADDR": "90292266606481431",
"P2PPORT": "17777",
"CONMETHOD": "P2P",
"OWNINGNAME": "VOLOVAT",
"listentype": "d",
"environment": "w",
"SESSIONFLAGS": "683",
"a2s_protocol": 17,
"ProspectInfo_s": "BgAAAExvYmJ5AAAAAAAAAAAAAAAAAAAAAAANAAAAU2VydmVyIExvYmJ5AAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14955988");
$data = json_decode($json, true);
var_dump($data);