API dla My Untitled Rust Server
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 32,
"fps_avg": 35,
"entities_count": 218052,
"world_seed": 617265,
"world_size": 6000,
"steam_id": "90286604967649292",
"domain": null,
"id": 10633242,
"ip": "66.51.97.53",
"port": 28005,
"query": 28006,
"color": 0,
"city": "London",
"description": "![DST Sandbox Rust Server [UK]](https://i.ibb.co/TwnSdCM/Rust-Header-Image-Raised.png)\n(Hosted By Pine Hosting....Welcome to the DST Sandbox Rust Server.)\r\n\r\n(50 player max sever.)\r\n\r\n(This is a...[6000]...size map.)\r\n\r\n(That is set to a modded server.)\r\n\r\n(An is set to survival mode...So Kill Raid trade or try get along it's up to you how you play.)\r\n\r\n(Possibly in the future there may be other mods added to help change gameplay.)\r\n\r\n(Decay is switched off.)\r\n\r\n(Blueprint wipes can happen every once an a while or less the devs say so otherwise all blueprints will be kept for the next map wipe.)\r\n\r\n(The server resets every day at 3:00am at UK time.)\r\n\r\n(Admins)\r\n[DST L Adam]\r\n[Soul killer]",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780598666,
"last_online": 1780623034,
"icon": null,
"name": "My Untitled Rust Server",
"connect": "66.51.97.53:28005",
"request": "66.51.97.53:28006",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1763713764,
"last_update": 1780623034,
"banned": false,
"wipe": 1780598827,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3649,
"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/10633242");
$data = json_decode($json, true);
var_dump($data);