API для httr
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1793159042,
"app": {
"id": 55076,
"name": "Arma Reforger",
"steam_id": 1874880,
"url": "arma-reforger"
},
"color": 0,
"connect": "31.214.238.82:10400",
"country": "US",
"domain": null,
"game": 1874880,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19253728,
"ip": "31.214.238.82",
"language": "en",
"last_update": 1794598527,
"map": "Combat Ops - Everon US (static spawn)",
"maxplayers": 10,
"name": "httr",
"numplayers": 0,
"official": false,
"points": 0,
"port": 10400,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 10400,
"request": "31.214.238.82:10400",
"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": 1794598527,
"last_online": 1794397646,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 6665,
"wipe_period": null,
"flags": 1,
"region": "NA",
"visible": true,
"battlEye": true,
"favorite": false,
"hostType": "CommunityDs",
"joinable": true,
"joinQueue": {
"size": 0
},
"sessionId": "b132e303-0000378a4503",
"pingSiteId": "new_york",
"scenarioId": "{385FF9E8754BE5C6}Missions/Coop_CombatOps_Eden_US_StaticSpawn.conf",
"lastJoinedAt": null,
"platformName": "Windows",
"runtimeStats": {
"fps": 120,
"memory": 1328399
},
"directJoinCode": "0855320563",
"detailsUpdatedAt": 1794397164,
"hostedScenarioModId": "64F0F0676005CFC8",
"supportedGameClientTypes": [
"PLATFORM_PC",
"PLATFORM_XBL",
"PLATFORM_PSN"
]
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19253728");
$data = json_decode($json, true);
var_dump($data);