API для BreadBOB
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1788995459,
"app": {
"id": 55076,
"name": "Arma Reforger",
"steam_id": 1874880,
"url": "arma-reforger"
},
"color": 0,
"connect": "209.180.212.84:2001",
"country": "US",
"domain": null,
"game": 1874880,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 15791003,
"ip": "209.180.212.84",
"language": null,
"last_update": 1794597792,
"map": "MSTP_Ruha_FreedomFighters",
"maxplayers": 4,
"name": "BreadBOB",
"numplayers": 0,
"official": false,
"points": 0,
"port": 2001,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 2001,
"request": "209.180.212.84:2001",
"secured": false,
"status": false,
"steam_id": null,
"version": "1.8.0.13",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Сиэтл",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794597792,
"last_online": 1794549203,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 5194,
"wipe_period": null,
"flags": 0,
"region": "NA",
"visible": true,
"battlEye": false,
"favorite": false,
"hostType": "CommunityDs",
"joinable": false,
"joinQueue": {
"size": 0
},
"sessionId": "3baa4cdf-0000686865b8",
"pingSiteId": "los_angeles",
"scenarioId": "{32780865629BA826}Missions/FreedomFighters/MSTP_Ruha_FF.conf",
"lastJoinedAt": null,
"platformName": "Windows",
"runtimeStats": {
"fps": 609,
"memory": 901174
},
"directJoinCode": "0661114154",
"detailsUpdatedAt": 1790918121,
"hostedScenarioModId": "686AFC1FB2E2D71B",
"supportedGameClientTypes": [
"PLATFORM_PC"
]
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/15791003");
$data = json_decode($json, true);
var_dump($data);