API для My Ansible Enshrouded Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794709227,
"app": {
"id": 1611384,
"name": "Enshrouded",
"steam_id": 1203620,
"url": "enshrouded"
},
"color": 0,
"connect": "45.159.176.121:15637",
"country": "DE",
"domain": null,
"game": 1203620,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20139101,
"ip": "45.159.176.121",
"language": "de",
"last_update": 1794738018,
"map": null,
"maxplayers": 3,
"name": "My Ansible Enshrouded Server",
"numplayers": 3,
"official": null,
"points": 81,
"port": 15637,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 15637,
"request": "45.159.176.121:15637",
"secured": false,
"status": true,
"steam_id": "90297512335388702",
"version": "0.0.15.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Гамбург",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": null,
"last_online": 1794738018,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 27,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "Enshrouded",
"gametype": "10;1287369;1;4;1;0;0;0;0",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20139101");
$data = json_decode($json, true);
var_dump($data);