@pelletier The reason why I didn't do it in the way you suggested, is that I take the API request URL of previous page and next page from the received data object. Hence the search function can accommodate both scenarios.