API dla A Bungulator's Paradise
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 58,
"fps_avg": 58,
"entities_count": 81795,
"world_seed": 1337,
"world_size": 4500,
"steam_id": "90286604244898832",
"domain": null,
"id": 11004830,
"ip": "66.51.97.57",
"port": 28015,
"query": 28016,
"color": 0,
"city": "London",
"description": "\nHome of The 13th Bungulator! This is a great server for people to learn how to play and build without getting beat down immediately after spawning. We have some fun mods running that favor the PVE style. The most popular ones are listed below. Come on in a build a base, raid some NPC bases, and make some new Rust friends. As you can tell, this server is themed after our Supreme Leader, TheBurntPeanut. The first of his name, and leader of the steaming world.\r\n - PVE with PVP Monuments\r\n - Raidable NPC Bases\r\n - FREE & VIP Kits (Newbies type /kit in the chat)\r\n - Blueprint Share\r\n - and a few more!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779728010,
"last_online": 1780605633,
"icon": null,
"name": "A Bungulator's Paradise",
"connect": "66.51.97.57:28015",
"request": "66.51.97.57:28016",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 1,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1769938990,
"last_update": 1780605633,
"banned": false,
"wipe": 1780596653,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4080,
"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/11004830");
$data = json_decode($json, true);
var_dump($data);