API для Icarus is it
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1788088299,
"app": {
"id": 1600891,
"name": "Icarus",
"steam_id": 1149460,
"url": "icarus"
},
"color": 0,
"connect": "103.244.113.98:29977",
"country": "SG",
"domain": null,
"game": 1149460,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 14230340,
"ip": "103.244.113.98",
"language": "en",
"last_update": 1792604774,
"map": null,
"maxplayers": 8,
"name": "Icarus is it",
"numplayers": 0,
"official": null,
"points": 30,
"port": 29977,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 29978,
"request": "103.244.113.98:29978",
"secured": true,
"status": true,
"steam_id": "90295466459646997",
"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": 1792161954,
"last_online": 1792604774,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 3985,
"wipe_period": null,
"D_s": "1",
"G_s": "3.0.32.158743-x-x",
"P_s": "Lobby",
"P2PADDR": "90295466459646997",
"P2PPORT": "29977",
"CONMETHOD": "P2P",
"OWNINGNAME": "Icarus is it",
"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/14230340");
$data = json_decode($json, true);
var_dump($data);