API dla NexusRust | 3x | Solo/Duo | QoL Plugins
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 240,
"fps_avg": 238,
"entities_count": 27302,
"world_seed": 1459873700,
"world_size": 2500,
"steam_id": "90285622185618454",
"domain": null,
"id": 11501188,
"ip": "45.145.226.85",
"port": 27015,
"query": 27017,
"color": 0,
"city": "Berlin",
"description": "\nPvP Solo/Duo 3x | EU\r\nWeekly Wipe: Thursday 18:00\r\n\r\nVanilla+ Experience with QoL Improvements:\r\n• Remove Tool & Building Helper\r\n• Increased Stack Sizes\r\n• Faster Crafting & Smelting\r\n• Auto Cleanup & Performance Tweaks\r\n• Minicopter Spawn\r\n• Radiation Time: 18:00 - 24:00\r\n\r\nJoin our Discord:\r\nhttps://nexusrust.eu/discord\r\n\r\nActive Admins | Fair Play | No P2W",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780587818,
"last_online": 1780049428,
"icon": null,
"name": "NexusRust | 3x | Solo/Duo | QoL Plugins",
"connect": "45.145.226.85:27015",
"request": "45.145.226.85:27017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 80,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779207168,
"last_update": 1780587818,
"banned": false,
"wipe": 1778504674,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11131,
"language": "de",
"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/11501188");
$data = json_decode($json, true);
var_dump($data);