MiniError: useProductSearch: Rate limit exceeded for action GET_PRODUCT_SEARCH. Max 20 calls per 60000ms

I am getting this error on local, and wondering if the limits are the same on production as well?

MiniError: useProductSearch: Rate limit exceeded for action GET_PRODUCT_SEARCH. Max 20 calls per 60000ms

It seems like the limit is very restrictive here for operations like search.

Hi @farid , these limits are per user and not the total limit for your Mini, so as long as you are below 20 per minute limit during development, then it should be fine during production as well.

Current limit in production is 20 too, but we continue to review and update these values. Can you explain your particular use case that requires more than 20 requests within a minute, so we can review our limits?

Thanks for the explanation, @Tunca-Shopify In our case, we are trying to show some product suggestions from different categories to users, so we make 5 calls on one screen, and then the user can change color. Then, we again make 5 calls, this time for different colors, and it basically takes four color clicks to hit the limit here.

My search results are filtered by color and category parameters, and I display different suggestions in five rows to the user.

Hi @farid , thanks for the details! We are looking to improve our search APIs in the near future, which will unlock use cases like yours, but until then we’d suggest designing the Mini with the existing rate limits.