API для Cyberdemons Dayz Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794751233,
"app": {
"id": 63,
"name": "DayZ",
"steam_id": 221100,
"url": "dayz"
},
"color": 0,
"connect": "163.172.111.70:2301",
"country": "FR",
"domain": null,
"game": 221100,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20153340,
"ip": "163.172.111.70",
"language": "fr",
"last_update": 1794753309,
"map": "nasdara",
"maxplayers": 60,
"name": "Cyberdemons Dayz Server",
"numplayers": 0,
"official": null,
"points": 30,
"port": 2301,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27016,
"request": "163.172.111.70:27016",
"secured": true,
"status": true,
"steam_id": "90297524187402265",
"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": null,
"last_online": 1794753309,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 42058,
"wipe_period": null,
"\u0001\u0001": "\u0002\u0001\u0002\u0004\u0001\u0002���G\u0002\u0015ѥ�\u0004T��l\rVPPAdminTools!�%�\u0004\u0004��\\\u0013Community Framework\u0003\u0004dayz\u000eJacob_Mango_V3\u0003VPP\u0001\u0002",
"time": "18:12",
"queue": 0,
"platform": "?",
"timeLeft": "15",
"dedicated": "1",
"clientPort": "0",
"listentype": "d",
"dlc_enabled": true,
"environment": "l",
"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/20153340");
$data = json_decode($json, true);
var_dump($data);