API для Unturned
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1723753928,
"app": {
"id": 48,
"name": "Unturned",
"steam_id": 304930,
"url": "unturned"
},
"color": 0,
"connect": "172.240.13.209:25840",
"country": "US",
"domain": null,
"game": 304930,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 5651815,
"ip": "172.240.13.209",
"language": "en",
"last_update": 1794971511,
"map": "Washington",
"maxplayers": 6,
"name": "Unturned",
"numplayers": 0,
"official": null,
"points": 30,
"port": 25840,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 25840,
"request": "172.240.13.209:25840",
"secured": true,
"status": true,
"steam_id": "85568392929701537",
"version": "3.26.3.15",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Ашберн",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794316145,
"last_online": 1794971511,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 221,
"wipe_period": null,
"Cfg_0": "Items.Spawn_Chance=0.25",
"Cfg_1": "Items.Despawn_Dropped_Time=900",
"Cfg_2": "Items.Respawn_Time=500",
"Cfg_3": "Zombies.Spawn_Chance=0.22",
"Cfg_4": "Zombies.Crawler_Chance=0",
"Cfg_5": "Zombies.Sprinter_Chance=0",
"Cfg_6": "Zombies.Flanker_Chance=0",
"Cfg_7": "Zombies.Burner_Chance=0",
"Cfg_8": "Zombies.Acid_Chance=0",
"Cfg_9": "Zombies.Damage_Multiplier=0.9",
"Cfg_10": "Zombies.Max_Mega_Drops=7",
"Cfg_11": "Players.Lose_Skills_PvP=0.9",
"Cfg_12": "Players.Lose_Skills_PvE=0.75",
"Cfg_13": "Players.Allow_Per_Character_Saves=T",
"Cfg_14": "Events.Airdrop_Frequency_Min=2",
"Cfg_15": "Events.Airdrop_Frequency_Max=4",
"Cfg_16": "Gameplay.Chart=T",
"Cfg_17": "Gameplay.Allow_Freeform_Buildables=F",
"Cfg_18": "Gameplay.Viewmodel_AimingMisalignmentMultiplier=1",
"rocket": "4.9.3.15",
"Cfg_Count": "19",
"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/5651815");
$data = json_decode($json, true);
var_dump($data);