API для AlbertaStronk
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1780520100,
"app": {
"id": 1564980,
"name": "Motor Town: Behind The Wheel",
"steam_id": 1369670,
"url": "motor-town-behind-the-wheel"
},
"color": 0,
"connect": "172.219.36.98:7777",
"country": "CA",
"domain": null,
"game": 1369670,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11754398,
"ip": "172.219.36.98",
"language": "en",
"last_update": 1794771375,
"map": null,
"maxplayers": 20,
"name": "AlbertaStronk",
"numplayers": 0,
"official": null,
"points": 30,
"port": 7777,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "172.219.36.98:27015",
"secured": true,
"status": true,
"steam_id": "90289870739008541",
"version": "0.7.19",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Эдмонтон",
"description": null,
"disabled_modules": [],
"gamemode": "Unreal Test!",
"hidden": false,
"last_offline": 1790601437,
"last_online": 1794771375,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 76,
"wipe_period": null,
"FPS_i": "49",
"GDH_i": "-1392028285",
"GDVF_i": "31",
"P2PADDR": "90289870739008541",
"P2PPORT": "7777",
"GDH_BT_i": "922577932",
"GDH_VP_i": "-569429124",
"CONMETHOD": "P2P",
"GDH_CVar_i": "1515166748",
"GDH_Item_i": "-376766042",
"OWNINGNAME": "90289870739008541",
"listentype": "d",
"GDH_Cargo_i": "-1264098795",
"environment": "w",
"MTGameType_i": "1",
"SESSIONFLAGS": "41",
"a2s_protocol": 17,
"MTNumPlayers_i": "0",
"MTServerGuid_s": "254268234721DCDEA640CA9399E29CEC",
"players_complete": true,
"AllowCorporation_b": "true",
"AllowModdedVehicle_b": "false",
"AllowCompanyAIDriver_b": "true",
"MTServerPasswordHash_s": "1C04783F0D2FAE6905FF5DA3407ED5363A1884DC37B1E59AAA9FD3A5601BEC9F0E6121410DE1F034141822A300D86534",
"AllowPoliceVehicleByPlayerRole_b": "false"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11754398");
$data = json_decode($json, true);
var_dump($data);