How can I get the maximum and minimum value of a record in Algolia?

I am using the algolia api to do a product search, where $value is what the customer searches for.

$results = $index->search($value);

In the product registry, for example, I have the fields: name, price, stock, etc. I want to know if there is any way to give me the maximum and minimum value among all the searched products, as well as in mysql where I can use MIN(price) and MAX(price) in a table