Squad
API для Bars
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11142655json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11142655,
"ip": "188.42.131.188",
"port": 7792,
"query": 7792,
"color": 0,
"city": "Amsterdam",
"description": null,
"game": 393380,
"owner": null,
"boosts": 1,
"last_offline": 1778542934,
"score": 0,
"last_online": 1778400692,
"icon": null,
"name": "Bars",
"connect": "188.42.131.188:7792",
"request": "188.42.131.188:7792",
"map": "Zeus_Sanxian_Islands",
"gamemode": "Zeus, RandomSelector, Zeus Sanxian Islands",
"version": "v10.3.1.571437.1655",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": null,
"private": null,
"country": "NL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1770804052,
"last_update": 1778542934,
"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": 282,
"language": "nl",
"parked": false,
"app": {
"id": 137,
"steam_id": 393380,
"name": "Squad",
"url": "squad"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11142655");
$data = json_decode($json, true);
var_dump($data);