API для TDCS Reforger
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1787481137,
"app": {
"id": 55076,
"name": "Arma Reforger",
"steam_id": 1874880,
"url": "arma-reforger"
},
"color": 0,
"connect": "192.135.116.52:2320",
"country": "NL",
"domain": null,
"game": 1874880,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 14014556,
"ip": "192.135.116.52",
"language": "nl",
"last_update": 1794630800,
"map": "Server? I hardly knew 'er",
"maxplayers": 32,
"name": "TDCS Reforger",
"numplayers": 0,
"official": false,
"points": 0,
"port": 2320,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 2320,
"request": "192.135.116.52:2320",
"secured": true,
"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": 1794630800,
"last_online": 1793937575,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 4948,
"wipe_period": null,
"flags": 1,
"region": "EU",
"visible": true,
"battlEye": true,
"favorite": false,
"hostType": "CommunityDs",
"joinable": true,
"joinQueue": {
"size": 0
},
"sessionId": "0-000000000030",
"pingSiteId": "london",
"scenarioId": "{CCBA159D5D8F03D0}Missions/FreedomFighters/FaircroftIslands.conf",
"lastJoinedAt": null,
"platformName": "LINUX",
"runtimeStats": {
"fps": 56,
"memory": 1073422
},
"directJoinCode": "0063111511",
"detailsUpdatedAt": 1793851271,
"hostedScenarioModId": "693749C732392CF5",
"supportedGameClientTypes": [
"PLATFORM_PC",
"PLATFORM_XBL",
"PLATFORM_PSN"
]
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14014556");
$data = json_decode($json, true);
var_dump($data);