API для My Space Engineers Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90288781663911946",
"domain": null,
"id": 12326389,
"ip": "45.80.185.120",
"port": 27016,
"query": 27016,
"project_id": null,
"color": 0,
"city": "San José",
"description": null,
"game": 244850,
"owner": null,
"boosts": 1,
"last_offline": 1784786619,
"last_online": 1784149863,
"icon": null,
"name": "My Space Engineers Server",
"connect": "45.80.185.120:27016",
"request": "45.80.185.120:27016",
"map": "EarthPlanet_Start_RightBrokenSa",
"gamemode": null,
"version": "1209024",
"numplayers": 0,
"maxplayers": 2,
"bots": 0,
"secured": true,
"private": null,
"country": "CR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1784149865,
"last_update": 1784786619,
"ban_reason": null,
"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": 5614,
"language": "es",
"parked": false,
"app": {
"id": 97,
"steam_id": 244850,
"name": "Space Engineers",
"url": "space-engineers"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12326389");
$data = json_decode($json, true);
var_dump($data);