API dla Rust Haven 3x Monthly | Solo/Duo/Trio/Quad | Shared BPs
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 47,
"fps_avg": 46,
"entities_count": 90104,
"world_seed": 495322094,
"world_size": 4000,
"steam_id": "90286607303422988",
"domain": null,
"id": 11606700,
"ip": "66.51.97.53",
"port": 28045,
"query": 28046,
"color": 0,
"city": "City of London",
"description": "\n💥 Rust Haven | 3x Modded PvP Server Welcome to Rust Haven, the home of fast-paced, balanced PvP action. ⚒ 3x Gather Rates (Sulfur 1x) 🧰 Faster Smelting & Crafting 🔓 Shared Blueprints 💣 Frequent PvP Events Join Rust Haven — where every shot counts. 💥",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779989019,
"last_online": 1780656631,
"icon": null,
"name": "Rust Haven 3x Monthly | Solo/Duo/Trio/Quad | Shared BPs",
"connect": "66.51.97.53:28045",
"request": "66.51.97.53:28046",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779915479,
"last_update": 1780656631,
"banned": false,
"wipe": 1780603169,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5134,
"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/11606700");
$data = json_decode($json, true);
var_dump($data);