API для Coldstream Avorion
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790723808,
"app": {
"id": 172,
"name": "Avorion",
"steam_id": 445220,
"url": "avorion"
},
"color": 0,
"connect": "40.160.84.169:27000",
"country": "US",
"domain": null,
"game": 445220,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17466825,
"ip": "40.160.84.169",
"language": "en",
"last_update": 1791213414,
"map": "ADB9WuIsqI",
"maxplayers": 10,
"name": "Coldstream Avorion",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27000,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27020,
"request": "40.160.84.169:27020",
"secured": true,
"status": true,
"steam_id": "90293810500064270",
"version": "2.5.13.44140",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Warrenton",
"description": null,
"disabled_modules": [],
"gamemode": "Avorion",
"hidden": false,
"last_offline": null,
"last_online": 1791213414,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 307,
"wipe_period": null,
"scenario": "Normal",
"tutorial": "no",
"difficulty": "Veteran",
"listentype": "l",
"environment": "l",
"a2s_protocol": 17,
"collision_damage": "Full",
"mod_achievements": "yes",
"players_complete": true,
"same_start_sector": "yes"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17466825");
$data = json_decode($json, true);
var_dump($data);