Hi,
I want to do pagination but search query doesn’t give total number of record again query.
https://spoonacular-recipe-food-nutrition-v1.p.mashape.com/recipes/search?query=burger
looking forward to hear back from you.
Thanks
Join in the discussion - add comment below:
Hi techlyse,
For performance reasons I actually don’t know the number of all possible results when searching. One solution would be to set the limit to 100, if you get 100, there are likely more, so you set the offset to 100 and query again. This way you can page without knowing the end - almost like infinite scrolling.