API для DBK
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794580818,
"app": {
"id": 63,
"name": "DayZ",
"steam_id": 221100,
"url": "dayz"
},
"color": 0,
"connect": "81.235.167.18:2302",
"country": "SE",
"domain": null,
"game": 221100,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20078083,
"ip": "81.235.167.18",
"language": "sv",
"last_update": 1794753891,
"map": "takistan",
"maxplayers": 60,
"name": "DBK",
"numplayers": 0,
"official": null,
"points": 0,
"port": 2302,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27016,
"request": "81.235.167.18:27016",
"secured": true,
"status": false,
"steam_id": "90297472770925593",
"version": "1.30.164289",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Уддевалла",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794753891,
"last_online": 1794683719,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 66826,
"wipe_period": null,
"\u0001\u0002": "\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0002���U\u0004!N`�\bTakistan\f���\u0004 ���\u000eDabs Framework\f\u000bCypeRevenge\u0003dab\u0004dayz\tExpansion\u0007Hunterz\u000eJacob_Mango_V3\u0004L4DS\bLamboS2N\nliquidr",
"\u0002\u0002": "ock\u0005Liven\nralian-eAI\bTakistan\u0001\u0002",
"time": "08:00",
"queue": 0,
"platform": "win",
"timeLeft": "0",
"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/20078083");
$data = json_decode($json, true);
var_dump($data);