Zend certified PHP/Magento developer

How to return products in stock via API REST using SearchCriteria?

I have an integration that must get my products in stock via the Magento 2 API using SearchCriteria.

How could I filter it, since it’s inside my custom_attributes?