Avorion
API для Star Citizen
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11179786json
{
"response": {
"steam_id": "90284007152144396",
"domain": null,
"id": 11179786,
"ip": "216.201.77.183",
"port": 9060,
"query": 9063,
"color": 0,
"city": "Maidenhead",
"description": "Powered by Temu",
"game": 445220,
"owner": null,
"boosts": 1,
"last_offline": 1773672724,
"score": 0,
"last_online": 1776248415,
"icon": null,
"name": "Star Citizen",
"connect": "216.201.77.183:9060",
"request": "216.201.77.183:9063",
"map": "9gfddTsaAN",
"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": 1772229542,
"last_update": 1776248415,
"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": 214,
"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/11179786");
$data = json_decode($json, true);
var_dump($data);