API для GER | TrapHouse - BaroTrauma - Community
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794682552,
"app": {
"id": 50335,
"name": "Barotrauma",
"steam_id": 602960,
"url": "barotrauma"
},
"color": 0,
"connect": "176.57.140.148:28000",
"country": "DE",
"domain": null,
"game": 602960,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20126452,
"ip": "176.57.140.148",
"language": "de",
"last_update": 1794797161,
"map": "Azimuth",
"maxplayers": 6,
"name": "GER | TrapHouse - BaroTrauma - Community",
"numplayers": 0,
"official": null,
"points": 30,
"port": 28000,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 28015,
"request": "176.57.140.148:28015",
"secured": false,
"status": true,
"steam_id": "90297511135424543",
"version": "1.13.5.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Франкфурт-на-Майне",
"description": null,
"disabled_modules": [],
"gamemode": "multiplayercampaign",
"hidden": false,
"last_offline": 1794733560,
"last_online": 1794797161,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 244,
"wipe_period": null,
"message0": "Discord-Server: https://discord.gg/3BNk9c5cXU",
"traitors": "0",
"playstyle": "Casual",
"submarine": "Azimuth",
"listentype": "d",
"environment": "w",
"gamestarted": "False",
"playercount": "0",
"a2s_protocol": 17,
"allowrespawn": "True",
"eoscrossplay": "False",
"karmaenabled": "False",
"allowspectating": "True",
"contentpackage0": "Vanilla,D14AF79498BED9EB475FA6D3A3117093,",
"players_complete": true,
"subselectionmode": "Vote",
"voicechatenabled": "False",
"modeselectionmode": "Manual",
"friendlyfireenabled": "True"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20126452");
$data = json_decode($json, true);
var_dump($data);