Calculating Total Pages in Search Request Results
TLDR Laura asked how to calculate total pages of search results. Jason suggested using
found / per_page.
Jun 09, 2023 (3 months ago)
found / per_pageyou should get the total number of pages
per_pageis a search parameter that defaults to
Indexed 2764 threads (79% resolved)
Pagination and Determining Next Page
Gustavo asked about pagination and determining the next page. Jason suggested using the `found`, `per_page`, and `page` keys to calculate the total number of pages.
Identifying Last Page of Search Results via API
TJ asked if there was a way to know when he's reached the last page of a search result. Jason suggested using the 'found' and 'page' parameters in the API response.
Query about Search API's Result Details
Shawn asked if the search API returns total pages. Jason clarified that it does not, yet it provides data necessary for the calculation.