API для Bad Company DayZ PvE (private) - www.BadCompanyPMC.com
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286660482315271",
"domain": null,
"id": 5800882,
"ip": "213.246.56.27",
"port": 2202,
"query": 2205,
"project_id": null,
"color": 0,
"city": "Boulogne-Billancourt",
"description": null,
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1780146816,
"last_online": 1780773700,
"icon": null,
"name": "Bad Company DayZ PvE (private) - www.BadCompanyPMC.com",
"connect": "213.246.56.27:2202",
"request": "213.246.56.27:2205",
"map": "chernarusplus",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": true,
"private": true,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1725019218,
"last_update": 1780773700,
"banned": 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": 5868,
"language": "fr",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/5800882");
$data = json_decode($json, true);
var_dump($data);