API для WY Unturned Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1792757662,
"app": {
"id": 48,
"name": "Unturned",
"steam_id": 304930,
"url": "unturned"
},
"color": 0,
"connect": "180.188.33.144:27017",
"country": "CN",
"domain": null,
"game": 304930,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18884749,
"ip": "180.188.33.144",
"language": "zh",
"last_update": 1793060152,
"map": "Rio de Janeiro Remastered",
"maxplayers": 8,
"name": "WY Unturned Server",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27017,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27017,
"request": "180.188.33.144:27017",
"secured": true,
"status": true,
"steam_id": "85568392936889134",
"version": "3.26.3.13",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Сямэнь",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1792765207,
"last_online": 1793060152,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1243,
"wipe_period": null,
"Mod_0": "1821848824,3416057692",
"Cfg_Count": "0",
"Mod_Count": "1",
"listentype": "d",
"environment": "w",
"BookmarkHost": "",
"a2s_protocol": 17,
"rocketplugins": "",
"players_complete": true,
"Browser_Desc_Hint": ""
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18884749");
$data = json_decode($json, true);
var_dump($data);