API для IcarusServer
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1784664197,
"app": {
"id": 1600891,
"name": "Icarus",
"steam_id": 1149460,
"url": "icarus"
},
"color": 0,
"connect": "193.93.205.115:27003",
"country": "PL",
"domain": null,
"game": 1149460,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 12425182,
"ip": "193.93.205.115",
"language": "pl",
"last_update": 1791173039,
"map": null,
"maxplayers": 8,
"name": "IcarusServer",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27003,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "193.93.205.115:27015",
"secured": true,
"status": true,
"steam_id": "90292872020870144",
"version": "0.0.0.1",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Słupno",
"description": null,
"disabled_modules": [],
"gamemode": "Icarus",
"hidden": false,
"last_offline": 1789559035,
"last_online": 1791173039,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 2572,
"wipe_period": null,
"D_s": "1",
"G_s": "3.0.27.157242-x-x",
"L_s": "1",
"P_s": "Lobby",
"P2PADDR": "90292872020870144",
"P2PPORT": "27003",
"CONMETHOD": "P2P",
"OWNINGNAME": "IcarusServer",
"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/12425182");
$data = json_decode($json, true);
var_dump($data);