API для zdislaw
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1784971932,
"app": {
"id": 1611062,
"name": "Abiotic Factor",
"steam_id": 427410,
"url": "abiotic-factor"
},
"color": 0,
"connect": "144.126.153.162:30300",
"country": "US",
"domain": null,
"game": 427410,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 12585179,
"ip": "144.126.153.162",
"language": "en",
"last_update": 1794751510,
"map": "SecSurfaceElevator",
"maxplayers": 6,
"name": "zdislaw",
"numplayers": 0,
"official": null,
"points": 30,
"port": 30300,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 30315,
"request": "144.126.153.162:30315",
"secured": false,
"status": true,
"steam_id": "90297501153562644",
"version": "1.0.0.6",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Сент-Луис",
"description": null,
"disabled_modules": [],
"gamemode": "Abiotic Factor",
"hidden": false,
"last_offline": 1784971932,
"last_online": 1794751510,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 742,
"wipe_period": null,
"SN_i": "1",
"SN0_s": "zdislaw",
"P2PADDR": "90297501153562644",
"P2PPORT": "30300",
"CONMETHOD": "P2P",
"GamePort_i": "30300",
"Hardcore_b": "false",
"OWNINGNAME": "zdislaw",
"bHasMods_b": "false",
"listentype": "d",
"Dedicated_b": "true",
"ShortCode_s": "GET75",
"environment": "w",
"MaxPlayers_i": "6",
"SESSIONFLAGS": "43",
"a2s_protocol": 17,
"USESPRESENCE_b": "false",
"CUSTOMJOININFO_s": "797a2aa8d13f4ff99d7258ed911b0120",
"players_complete": true,
"ModifiedRuleset_i": "2",
"AllowLocalOnlyMods_b": "true"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12585179");
$data = json_decode($json, true);
var_dump($data);