API dla Sheltered Rust
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 163,
"fps_avg": 167,
"entities_count": 121699,
"world_seed": 470462927,
"world_size": 4500,
"steam_id": "90286581740618762",
"domain": null,
"id": 11502719,
"ip": "108.255.39.105",
"port": 30002,
"query": 30003,
"color": 0,
"city": "Owasso",
"description": "\nSheltered Rust is a duo, builder-focused PvE server designed for players who want to progress, experiment, and collaborate without the pressure or toxicity of sweat-driven PvP.\r\n\r\nWe run monthly wipes with vanilla loot and thoughtful quality-of-life tweaks (3× resources except sulfur), all on a stable, low-lag dedicated server.\r\n\r\nExpect an enhanced Outpost, active admins, and systems that support building and cooperation rather than punishment. Full rules, plugins, and perks are available on our Discord.\r\n\r\nIf you’re looking for a refuge where the focus is creating and surviving together, welcome home.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780546460,
"last_online": 1780570834,
"icon": null,
"name": "Sheltered Rust",
"connect": "108.255.39.105:30002",
"request": "108.255.39.105:30003",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779207214,
"last_update": 1780570834,
"banned": false,
"wipe": 1778175949,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 1,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5039,
"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/11502719");
$data = json_decode($json, true);
var_dump($data);