API для 地牢/美丽个屁
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794254617,
"app": {
"id": 48,
"name": "Unturned",
"steam_id": 304930,
"url": "unturned"
},
"color": 0,
"connect": "59.41.231.240:27012",
"country": "CN",
"domain": null,
"game": 304930,
"hide_address": false,
"hide_query": false,
"icon": "https://img.imgdb.cn/item/602545eb3ffa7d37b354e029.png",
"id": 19882907,
"ip": "59.41.231.240",
"language": "zh",
"last_update": 1794923073,
"map": "Tales of Terror",
"maxplayers": 200,
"name": "地牢/美丽个屁",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27012,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27012,
"request": "59.41.231.240:27012",
"secured": true,
"status": false,
"steam_id": "85568392935880321",
"version": "3.26.3.14",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Гуанчжоу",
"description": null,
"disabled_modules": [],
"gamemode": "有home|死亡不掉",
"hidden": false,
"last_offline": 1794923073,
"last_online": 1794340638,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 5639,
"wipe_period": null,
"Cfg_0": "Barricades.Decay_Time=31536000",
"Cfg_1": "Structures.Decay_Time=31536000",
"Cfg_2": "Players.Lose_Skills_PvP=1",
"Cfg_3": "Players.Lose_Skills_PvE=1",
"Cfg_4": "Players.Lose_Skill_Levels_PvP=1",
"Cfg_5": "Players.Lose_Skill_Levels_PvE=1",
"Cfg_6": "Players.Lose_Experience_PvP=1",
"Cfg_7": "Players.Lose_Experience_PvE=1",
"Cfg_8": "Players.Lose_Items_PvP=0",
"Cfg_9": "Players.Lose_Items_PvE=0",
"Mod_0": "1897433393,1186318457,1753131903",
"Cfg_10": "Players.Lose_Clothes_PvP=F",
"Cfg_11": "Players.Lose_Clothes_PvE=F",
"Cfg_12": "Players.Lose_Weapons_PvP=F",
"Cfg_13": "Players.Lose_Weapons_PvE=F",
"Cfg_Count": "14",
"Mod_Count": "1",
"listentype": "d",
"environment": "w",
"BookmarkHost": "un.mlgp.top",
"a2s_protocol": 17,
"rocketplugins": "",
"players_complete": true,
"Browser_Desc_Hint": "<color=#f47920>有home|死亡不掉</color>",
"Custom_Link_Url_0": "aHR0cHM6Ly93d3cubWxncC50b3Av",
"Custom_Links_Count": "1",
"Custom_Link_Message_0": "PGNvbG9yPWdyZWVuPue+juS4veS4quWxgeeahOacjeWKoeWZqOWumOe9kSjmsqHpkrHlvIDnvZHnq5kpPC9jb2xvcj4=",
"Browser_Desc_Full_Count": "2",
"Browser_Desc_Full_Line_0": "PGNvbG9yPSMwMEJGRkY+PHNpemU9MjY+5LiN5o6J6KGj5pyN54mp5ZOB5Li75Ymv5omL57uP6aqM5oqA6IO944CCUVHnvqQ6NDQ1NjU1OTM044CCPC9zaXplPjwvY29",
"Browser_Desc_Full_Line_1": "sb3I+"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19882907");
$data = json_decode($json, true);
var_dump($data);