Barotrauma
API для Brave Seamen
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11181141json
{
"response": {
"steam_id": "90283608232044566",
"domain": null,
"id": 11181141,
"ip": "71.115.209.77",
"port": 27015,
"query": 27016,
"color": 0,
"city": "Syracuse",
"description": null,
"game": 602960,
"owner": null,
"boosts": 1,
"last_offline": 1774697547,
"score": 0,
"last_online": 1776436837,
"icon": null,
"name": "Brave Seamen",
"connect": "71.115.209.77:27015",
"request": "71.115.209.77:27016",
"map": "Thorn-NT-FYL",
"gamemode": "multiplayercampaign",
"version": "1.11.5.0",
"numplayers": 1,
"maxplayers": 16,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 35,
"add_date": 1772229687,
"last_update": 1776436837,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 41,
"language": "en",
"parked": false,
"app": {
"id": 50335,
"steam_id": 602960,
"name": "Barotrauma",
"url": "barotrauma"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11181141");
$data = json_decode($json, true);
var_dump($data);