Avorion
API для Lcars - Avorion
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/9342431json
{
"response": {
"steam_id": "90284341322458121",
"domain": null,
"id": 9342431,
"ip": "77.100.232.218",
"port": 27000,
"query": 27020,
"color": 0,
"city": "Wakefield",
"description": "An Avorion Server Hosted by Lcars",
"game": 445220,
"owner": null,
"boosts": 1,
"last_offline": 1776111718,
"score": 0,
"last_online": 1776267017,
"icon": null,
"name": "Lcars - Avorion",
"connect": "77.100.232.218:27000",
"request": "77.100.232.218:27020",
"map": "LOBrzR793f",
"gamemode": "Avorion",
"version": "2.5.13.44140",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": true,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1747775607,
"last_update": 1776267017,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 84,
"language": "en",
"parked": false,
"app": {
"id": 172,
"steam_id": 445220,
"name": "Avorion",
"url": "avorion"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/9342431");
$data = json_decode($json, true);
var_dump($data);