paginate search results and reduce api calls