API для Dayz Classic
JSON для программ, сайтов и прочего
text
json
{
"response": {
"os": "w",
"region": -1,
"product": "dayz",
"gametype": "battleye,external,privHive,shard123ABC,lqs0,etm5.000000,entm7.000000,mod,05:25",
"dedicated": true,
"steam_id": "90292151975274510",
"domain": null,
"id": 14687313,
"ip": "80.254.126.174",
"port": 16662,
"query": 39656,
"project_id": null,
"color": null,
"city": null,
"description": null,
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1788555528,
"last_online": 1788555992,
"icon": null,
"name": "Dayz Classic",
"connect": "80.254.126.174:16662",
"request": "80.254.126.174:39656",
"map": "chernarusplus",
"gamemode": null,
"version": "1.29.163709",
"numplayers": 0,
"maxplayers": 80,
"bots": 0,
"secured": true,
"private": null,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1788555528,
"last_update": 1788555992,
"ban_reason": "server.ban_reasons.fake_server_data",
"banned": true,
"hidden": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": null,
"language": "ru",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14687313");
$data = json_decode($json, true);
var_dump($data);