Getting the selected product option in product page API

I don’t think it is possible to know what is selected, unless the costumer puts the selected item in the cart.

Can you tell me what you need to do, so I can try to figure it out?