API dla RustLand
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 59,
"fps_avg": 59,
"entities_count": 64553,
"world_seed": 926384511,
"world_size": 3500,
"steam_id": "90286256843764751",
"domain": null,
"id": 10978406,
"ip": "213.136.90.245",
"port": 28715,
"query": 28716,
"color": 0,
"city": "Lauterbourg",
"description": "\n♦ Welcome to the The RustShowdown Server ♦\r\n\r\n♠♦♠ Server Features ♠♦♠\r\n• Offline Raid Protection (Picklocks can still be used)\r\n• Better TC\r\n• Blueprint Share (Team)\r\n• Cooking 2.0\r\n• Chassie Craft\r\n• Picklock (Lockpicks can be found in loottables)\r\n• Hit Markers\r\n• Server Hud\r\n• Wallpaper Planner\r\n• UItemSort\r\n• Death Notes\r\n• Deployable Zipline\r\n• Full Wipes\r\n• Optimized FPS\r\n• SkillTree Level System\r\n• Skinner 2.0\r\n• 60min Days/3min Nights\r\n• Kits Only Starter Kit no P2W\r\n• Instand Craft\r\n• Workbench Level 1 Unlocked\r\n• Pop\r\n• Underwear Selection\r\n• Toxic Zones Off\r\n• Gather Stacks 5x-10x\r\n• Gather Size 3x\r\n• RemoverTool\r\n\r\n♦♣♦ Events ♦♣♦\r\n• GunGame Arena\r\n• Airfield Event\r\n• Caravan Convoy Event\r\n• Convoy Reforged (Easy Medium Hard)\r\n• Air Convoy\r\n• Cargo Convoy (Easy Medium Hard)\r\n• Gas Station Event\r\n• Nuke Event\r\n• Supermarket Event\r\n• Raid able Bases Event\r\n• Power Plant Event\r\n• Sputnik Event\r\n• Junkyard Event",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780605815,
"last_online": 1779876024,
"icon": null,
"name": "RustLand",
"connect": "213.136.90.245:28715",
"request": "213.136.90.245:28716",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1769900968,
"last_update": 1780605815,
"banned": false,
"wipe": 1778187420,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 1,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 10271,
"language": "fr",
"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/10978406");
$data = json_decode($json, true);
var_dump($data);