API для [COC] Project Outbreak NA - Test
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794344691,
"app": {
"id": 55076,
"name": "Arma Reforger",
"steam_id": 1874880,
"url": "arma-reforger"
},
"color": 0,
"connect": "148.72.141.42:29002",
"country": "US",
"domain": null,
"game": 1874880,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19921531,
"ip": "148.72.141.42",
"language": "en",
"last_update": 1794597724,
"map": "Texas Border Conflict",
"maxplayers": 128,
"name": "[COC] Project Outbreak NA - Test",
"numplayers": 0,
"official": false,
"points": 30,
"port": 29002,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 29002,
"request": "148.72.141.42:29002",
"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": 1794595466,
"last_online": 1794597724,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 4147,
"wipe_period": null,
"flags": 1,
"region": "NA",
"visible": true,
"battlEye": true,
"favorite": false,
"hostType": "CommunityDs",
"joinable": true,
"joinQueue": {
"size": 0
},
"sessionId": "0-000000000030",
"pingSiteId": "new_york",
"scenarioId": "{E1F6A6014C476410}Missions/BorderWarsConflict.conf",
"lastJoinedAt": null,
"platformName": "LINUX",
"runtimeStats": {
"fps": 60,
"memory": 639074
},
"directJoinCode": "0141325418",
"detailsUpdatedAt": 1794594227,
"hostedScenarioModId": "68A679A42BE95164",
"supportedGameClientTypes": [
"PLATFORM_PC",
"PLATFORM_XBL",
"PLATFORM_PSN"
]
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19921531");
$data = json_decode($json, true);
var_dump($data);