API для Test
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794603204,
"app": {
"id": 55076,
"name": "Arma Reforger",
"steam_id": 1874880,
"url": "arma-reforger"
},
"color": 0,
"connect": "85.190.163.130:12700",
"country": "DE",
"domain": null,
"game": 1874880,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20088354,
"ip": "85.190.163.130",
"language": "de",
"last_update": 1794738873,
"map": "Arma Reforger Server",
"maxplayers": 10,
"name": "Test",
"numplayers": 0,
"official": false,
"points": 0,
"port": 12700,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 12700,
"request": "85.190.163.130:12700",
"secured": true,
"status": false,
"steam_id": null,
"version": "1.9.0.37",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Франкфурт-на-Майне",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794738873,
"last_online": 1794603357,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 18577,
"wipe_period": null,
"flags": 1,
"region": "EU",
"visible": true,
"battlEye": true,
"favorite": false,
"hostType": "CommunityDs",
"joinable": true,
"joinQueue": {
"size": 0
},
"sessionId": "1582cdca-0000a342e0af",
"pingSiteId": "frankfurt",
"scenarioId": "{ECC61978EDCC2B5A}Missions/23_Campaign.conf",
"lastJoinedAt": null,
"platformName": "Windows",
"runtimeStats": {
"fps": 120,
"memory": 1019692
},
"directJoinCode": "0654371454",
"detailsUpdatedAt": 1794602876,
"hostedScenarioModId": null,
"supportedGameClientTypes": [
"PLATFORM_PC",
"PLATFORM_XBL",
"PLATFORM_PSN"
]
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20088354");
$data = json_decode($json, true);
var_dump($data);