Control hits per filter attribute

I am trying algolia rest api.

Here I have the scenario that needs to find products from 2 different brands, total hits per page is 20 but the result should have 10 products from each brand (NB: the index has more products(say 100) from each brand )
Is there a way to get a balanced result?

HI @raji.chithrangathan, if you want them truly balanced, you would need to make two filtered requests, one for each brand. Each request should give you the most relevant results, not a balanced result. Two different requests would give you the most relevant for each brand.