paging search results for the api