API для My TEST server DayZ
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794756048,
"app": {
"id": 63,
"name": "DayZ",
"steam_id": 221100,
"url": "dayz"
},
"color": 0,
"connect": "5.157.16.6:2302",
"country": "SE",
"domain": null,
"game": 221100,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20155626,
"ip": "5.157.16.6",
"language": null,
"last_update": 1794769493,
"map": "chernarusplus",
"maxplayers": 60,
"name": "My TEST server DayZ",
"numplayers": 0,
"official": null,
"points": 0,
"port": 2302,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27016,
"request": "5.157.16.6:27016",
"secured": true,
"status": false,
"steam_id": "90297526286408720",
"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": 1794769493,
"last_online": 1794756027,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 69752,
"wipe_period": null,
"os": "w",
"time": "11:38",
"queue": 0,
"region": -1,
"product": "dayz",
"gametype": "battleye,no3rd,external,privHive,shardABC123,lqs0,entm1.000000,mod,11:38",
"dedicated": true,
"dlc_enabled": false,
"first_person": true,
"night_acceleration": 1
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20155626");
$data = json_decode($json, true);
var_dump($data);