API для Donkeyland
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1792850282,
"app": {
"id": 63,
"name": "DayZ",
"steam_id": 221100,
"url": "dayz"
},
"color": 0,
"connect": "144.126.153.174:28700",
"country": "US",
"domain": null,
"game": 221100,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18940117,
"ip": "144.126.153.174",
"language": "en",
"last_update": 1793060972,
"map": "chernarusplus",
"maxplayers": 20,
"name": "Donkeyland",
"numplayers": 0,
"official": null,
"points": 30,
"port": 28700,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 28715,
"request": "144.126.153.174:28715",
"secured": true,
"status": true,
"steam_id": "90295803066792960",
"version": "1.30.164200",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Сент-Луис",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": null,
"last_online": 1793060972,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 40526,
"wipe_period": null,
"\u0001\u0001": "\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0002\u0004dayz\u0005Vaker\u0001\u0002",
"time": "08:13",
"queue": 0,
"platform": "win",
"timeLeft": "15",
"dedicated": "1",
"clientPort": "0",
"listentype": "d",
"dlc_enabled": false,
"environment": "w",
"a2s_protocol": 17,
"allowedBuild": "0",
"first_person": true,
"requiredBuild": "0",
"requiredVersion": "130",
"day_acceleration": 12,
"players_complete": true,
"night_acceleration": 1
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18940117");
$data = json_decode($json, true);
var_dump($data);