API dla RustPVEUK PVE|Friendly|Zombies|LowUpkeep
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 130272,
"world_seed": 68713186,
"world_size": 4500,
"steam_id": "90286575272736785",
"domain": null,
"id": 5233954,
"ip": "64.40.9.181",
"port": 28159,
"query": 28156,
"color": 0,
"city": "London",
"description": "\nJoin our discord: discord.gg/U3s4FD2\r\nWelcome to RustPVEUK! We are a friendly PVE server.\r\n Make sure to check /info in game for command list and information!\r\n- Low upkeep cost\r\n- Rewards Shop (Find Lisa in Town)\r\n- Teleportation\r\n- Friendly Admins\r\n- Buffed Helicopter\r\n- Buffed Bradley!\r\n- Discord Kit for discord members!\r\n- Quests available\r\n- Zombie hordes - watch out!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779667407,
"last_online": 1780559430,
"icon": null,
"name": "RustPVEUK PVE|Friendly|Zombies|LowUpkeep",
"connect": "64.40.9.181:28159",
"request": "64.40.9.181:28156",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 2,
"maxplayers": 180,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1721207562,
"last_update": 1780559430,
"banned": false,
"wipe": 1779461463,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2430,
"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/5233954");
$data = json_decode($json, true);
var_dump($data);