API для Test Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1792092096,
"app": {
"id": 63,
"name": "DayZ",
"steam_id": 221100,
"url": "dayz"
},
"color": 0,
"connect": "92.119.164.4:2302",
"country": "NL",
"domain": null,
"game": 221100,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18339227,
"ip": "92.119.164.4",
"language": "nl",
"last_update": 1794679233,
"map": "Iceshaft",
"maxplayers": 9,
"name": "Test Server",
"numplayers": 0,
"official": null,
"points": 0,
"port": 2302,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27016,
"request": "92.119.164.4:27016",
"secured": true,
"status": false,
"steam_id": "90297455492160520",
"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": 1794679233,
"last_online": 1794661867,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 46684,
"wipe_period": null,
"os": "w",
"time": "12:00",
"queue": 0,
"region": -1,
"product": "dayz",
"gametype": "battleye,no3rd,external,privHive,shardABC123,lqs0,etm6.000000,entm3.000000,allowedFilePatching,mod,12:00",
"dedicated": true,
"dlc_enabled": false,
"first_person": true,
"day_acceleration": 6,
"night_acceleration": 3
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18339227");
$data = json_decode($json, true);
var_dump($data);