'Get parent configurable products from product SKU/Id Magento API

I have a simple product's SKU/ID and I want to get all the configurable products that are linked to this product. What is the best way to do this through the API? I don't have access to the code.

I am not finding any specific endpoint for this and the only solution I can think of right now is to load all configurable products, load their respective child simple products, and do a search. This is highly inefficient so I was hoping there would be a better solution.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source