API для [UNON]可怖传闻|地牢Rogue玩法|公益
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "85568392930583444",
"domain": null,
"id": 11832094,
"ip": "113.133.32.30",
"port": 27020,
"query": 27020,
"project_id": null,
"color": 0,
"city": "Xincheng",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1781796250,
"last_online": 1781795579,
"icon": "https://s1.ax1x.com/2023/05/05/p9UBLp6.jpg",
"name": "[UNON]可怖传闻|地牢Rogue玩法|公益",
"connect": "113.133.32.30:27020",
"request": "113.133.32.30:27020",
"map": "Tales of Terror",
"gamemode": "₮死亡不掉-建筑无敌",
"version": "3.26.3.3",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": false,
"votes": 0,
"points": 30,
"add_date": 1781782167,
"last_update": 1781796250,
"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": 325,
"language": "zh",
"parked": false,
"app": {
"id": 48,
"steam_id": 304930,
"name": "Unturned",
"url": "unturned"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11832094");
$data = json_decode($json, true);
var_dump($data);