API для AMP Powered Unturned Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"os": "w",
"region": -1,
"product": "Unturned",
"gametype": "PVP,CHn,EZY,2Pp,WSn,F2P,BEy,<net>sns</net>,<pf>rm</pf>",
"dedicated": true,
"steam_id": "90291620353393667",
"domain": null,
"id": 14072020,
"ip": "112.201.128.138",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Cainta",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1787919157,
"last_online": 1787763679,
"icon": null,
"name": "AMP Powered Unturned Server",
"connect": "112.201.128.138:27015",
"request": "112.201.128.138:27015",
"map": "Washington",
"gamemode": null,
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": null,
"country": "PH",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1787674318,
"last_update": 1787919157,
"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": 10294,
"language": "tl",
"parked": false,
"app": {
"id": 48,
"steam_id": 304930,
"name": "Unturned",
"url": "unturned"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14072020");
$data = json_decode($json, true);
var_dump($data);