API для Бригх Ебеней
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1787261015,
"app": {
"id": 170,
"name": "Conan Exiles",
"steam_id": 440900,
"url": "conan-exiles"
},
"color": 0,
"connect": "77.42.47.145:7777",
"country": "FI",
"domain": null,
"game": 440900,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 13877278,
"ip": "77.42.47.145",
"language": "fi",
"last_update": 1794674125,
"map": "ConanSandbox",
"maxplayers": 10,
"name": "Бригх Ебеней",
"numplayers": 0,
"official": null,
"points": 30,
"port": 7777,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "77.42.47.145:27015",
"secured": false,
"status": true,
"steam_id": null,
"version": null,
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Хельсинки",
"description": null,
"disabled_modules": [],
"gamemode": "Conan Exiles",
"hidden": false,
"last_offline": 1787261015,
"last_online": 1794674125,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1314,
"wipe_period": null,
"S0": "false",
"S4": "1.000000",
"S7": "1",
"S8": "1.000000",
"Sa": "false",
"Sf": "0",
"Sl": "1.000000",
"Sy": "0",
"Sz": "1.000000",
"se": "0.000000",
"CSF": "0",
"S05": "false",
"S15": "0",
"S21": "1.000000",
"S22": "1.000000",
"S23": "1.000000",
"S24": "1.000000",
"S25": "false",
"S30": "0",
"S115": "0.500000",
"S117": "false",
"S118": "1.500000",
"S119": "false",
"S120": "",
"S122": "true",
"listentype": "d",
"environment": "l",
"a2s_protocol": 2,
"players_complete": true,
"EXTERNAL_SERVER_UID": "b6e3de33f5faa032e3ef54dc1f87c794"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/13877278");
$data = json_decode($json, true);
var_dump($data);