API для DayZ-TestServer
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794375618,
"app": {
"id": 54695,
"name": "DayZ Experimental",
"steam_id": 1024020,
"url": "dayz-experimental"
},
"color": 0,
"connect": "94.246.35.14:21014",
"country": "NO",
"domain": null,
"game": 1024020,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19951474,
"ip": "94.246.35.14",
"language": "no",
"last_update": 1794702349,
"map": "chernarusplus",
"maxplayers": 5,
"name": "DayZ-TestServer",
"numplayers": 0,
"official": null,
"points": 0,
"port": 21014,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27016,
"request": "94.246.35.14:27016",
"secured": true,
"status": false,
"steam_id": "90297252282556435",
"version": "1.30.164289",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Malm",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794702349,
"last_online": 1794602189,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 189,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "dayz",
"gametype": "battleye,no3rd,external,privHive,shardABC123,lqs0,etm1.000000,entm1.000000,21:31",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19951474");
$data = json_decode($json, true);
var_dump($data);