API для Docker Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"os": "l",
"region": -1,
"product": "eut2",
"gametype": "ZABlAEsBAAA=",
"dedicated": false,
"steam_id": "90285298151509015",
"domain": null,
"id": 13725257,
"ip": "2.68.72.56",
"port": 27015,
"query": 27016,
"project_id": null,
"color": 0,
"city": "Gothenburg",
"description": null,
"game": 227300,
"owner": null,
"boosts": 1,
"last_offline": 1787246728,
"last_online": 1786845171,
"icon": null,
"name": "Docker Server",
"connect": "2.68.72.56:27015",
"request": "2.68.72.56:27016",
"map": "/map/europe.mbd",
"gamemode": null,
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": null,
"country": "SE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1786760029,
"last_update": 1787246728,
"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": 2400,
"language": "sv",
"parked": false,
"app": {
"id": 1980,
"steam_id": 227300,
"name": "Euro Truck Simulator 2",
"url": "euro-truck-simulator-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/13725257");
$data = json_decode($json, true);
var_dump($data);