How to get option details for bundle product by sku and option id Magento 2?

You can get the bundle options details by bundle product SKU and option id using Magento 2 to explore option related information.

Magento 2 Native sample data comes with bundle product name, Sprite Yoga Companion Kit and SKU 24-WG080.

You can use interface, Magento\Bundle\Api\ProductOptionRepositoryInterface to fetch detail of options from the bundle.

Call Functions,

$items = $this->getBundleOptionDetailBySkuOptionId();
echo “<pre>”;print_r($items->debug());


You can get the details of Sprite Stasis Ball option from the sample data bundle product.