Arma 2: Operation Arrowhead
API для Dawn Patrol TEST Server
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/812030json
{
"response": {
"steam_id": "90284374147523607",
"domain": null,
"id": 812030,
"ip": "144.217.0.248",
"port": 10302,
"query": 10303,
"color": 0,
"city": "Beauharnois",
"description": "",
"game": 33930,
"owner": null,
"boosts": 1,
"last_offline": 1776100315,
"score": null,
"last_online": 1776209433,
"icon": null,
"name": "Dawn Patrol TEST Server",
"connect": "144.217.0.248:10302",
"request": "144.217.0.248:10303",
"map": "Chernarus",
"gamemode": "Dawn Patrol Epoch Chernarus",
"version": "1.64.144629",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": false,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1684357603,
"last_update": 1776209433,
"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": 51,
"language": "en",
"parked": false,
"app": {
"id": 62,
"steam_id": 33930,
"name": "Arma 2: Operation Arrowhead",
"url": "arma-2-operation-arrowhead"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/812030");
$data = json_decode($json, true);
var_dump($data);