API dla BattleGrounds10x No BPS/Custom BuildSites/TelePort/Auto Door
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 5,
"fps_avg": 3,
"entities_count": 92074,
"world_seed": 1091701101,
"world_size": 4000,
"steam_id": "90286604405096455",
"domain": null,
"id": 10063350,
"ip": "108.74.19.235",
"port": 28056,
"query": 28057,
"color": 0,
"city": "Port Saint Lucie",
"description": "\nWelcome To BattleGrounds 10x No BPs!\r\n Custom Map\r\n - Heavily Boosted Loot, ensures there's lots of PVP and Raiding.\r\n - Spawn Mini Copters in with /mymini spawns with unlimited fuel\r\n - 10x Gathering and Resources\r\n - No BPs & Instant Craft\r\n - Clans, Auth Share, Teleport\r\n - Everyone has access to BGrade, Auto Doors, Remove",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780607656,
"last_online": 1780597418,
"icon": null,
"name": "BattleGrounds10x No BPS/Custom BuildSites/TelePort/Auto Door",
"connect": "108.74.19.235:28056",
"request": "108.74.19.235:28057",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1755187560,
"last_update": 1780607656,
"banned": false,
"wipe": 1780597380,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 9974,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/10063350");
$data = json_decode($json, true);
var_dump($data);