API для CCT - Teste Caico
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794359435,
"app": {
"id": 55076,
"name": "Arma Reforger",
"steam_id": 1874880,
"url": "arma-reforger"
},
"color": 0,
"connect": "189.127.20.70:2051",
"country": "BR",
"domain": null,
"game": 1874880,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19927439,
"ip": "189.127.20.70",
"language": "pt",
"last_update": 1794602055,
"map": "Glenwood: Operacao Queda de Sinal (PvEvP / PvE)",
"maxplayers": 64,
"name": "CCT - Teste Caico",
"numplayers": 1,
"official": false,
"points": 31,
"port": 2051,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 2051,
"request": "189.127.20.70:2051",
"secured": true,
"status": true,
"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": 1794600768,
"last_online": 1794602055,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1141,
"wipe_period": null,
"flags": 1,
"region": "NA",
"visible": true,
"battlEye": true,
"favorite": false,
"hostType": "CommunityDs",
"joinable": false,
"joinQueue": {
"size": 0
},
"sessionId": "fe8fb197-0000cbd91e30",
"pingSiteId": "miami",
"scenarioId": "{7A91B2C3D4E5F600}Missions/Glenwood_SignalFall.conf",
"lastJoinedAt": null,
"platformName": "Windows",
"runtimeStats": {
"fps": 60,
"memory": 1091004
},
"directJoinCode": "0085946093",
"detailsUpdatedAt": 1794601624,
"hostedScenarioModId": "1578E0D322413CDF",
"supportedGameClientTypes": [
"PLATFORM_PC",
"PLATFORM_XBL",
"PLATFORM_PSN"
]
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19927439");
$data = json_decode($json, true);
var_dump($data);