API для UnturnedServer
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1789468368,
"app": {
"id": 48,
"name": "Unturned",
"steam_id": 304930,
"url": "unturned"
},
"color": 0,
"connect": "165.217.129.31:9175",
"country": "US",
"domain": null,
"game": 304930,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 16441937,
"ip": "165.217.129.31",
"language": "en",
"last_update": 1794882851,
"map": "AMIO",
"maxplayers": 8,
"name": "UnturnedServer",
"numplayers": 0,
"official": null,
"points": 30,
"port": 9175,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 9175,
"request": "165.217.129.31:9175",
"secured": true,
"status": true,
"steam_id": "85568392936767151",
"version": "3.26.3.12",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Staten Island",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1790023562,
"last_online": 1794882851,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 655,
"wipe_period": null,
"Mod_0": "1753131903,2877846948,1628600107,2255905092,1232252658,2990607168,2978205782,599260823,2007466241,2588720281,1172779022,2637827",
"Mod_1": "390",
"rocket": "4.9.3.18",
"Cfg_Count": "0",
"Mod_Count": "2",
"listentype": "d",
"environment": "l",
"BookmarkHost": "",
"a2s_protocol": 17,
"rocketplugins": "",
"players_complete": true,
"Browser_Desc_Hint": ""
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16441937");
$data = json_decode($json, true);
var_dump($data);