API для BattleGrounds 2X Solo/Duo
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 80988,
"world_seed": 817202959,
"world_size": 3750,
"steam_id": "90286411331519495",
"domain": null,
"id": 10063349,
"ip": "108.74.19.235",
"port": 28050,
"query": 28051,
"color": 0,
"city": "Port Saint Lucie",
"description": "\nWelcome to BattleGrounds 2X Solo/Duo\r\n Wipes Every Friday 3PM EST\r\n 2x Gather Rates\r\n 2x Crafting Speed\r\n 2x Components and Scrap\r\n Recyclers at additional monuments\r\n Extended Workbench Range\r\n Longs Days & Short Nights\r\n Group Limit 2\r\n Active NON PLAYING ADMINS",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780148616,
"last_online": 1780584639,
"icon": null,
"name": "BattleGrounds 2X Solo/Duo",
"connect": "108.74.19.235:28050",
"request": "108.74.19.235:28051",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1755187561,
"last_update": 1780584639,
"banned": false,
"wipe": 1778182031,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3532,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10063349");
$data = json_decode($json, true);
var_dump($data);