page
0
'page' => page_number
Can be used in these methods:
search,
browseObjects,
generateSecuredApiKey,
addApiKey,
updateApiKey
search,
browse_objects,
generate_secured_api_key,
add_api_key,
update_api_key
search,
browseObjects,
generateSecuredApiKey,
addApiKey,
updateApiKey
search,
browse_objects,
generate_secured_api_key,
add_api_key,
update_api_key
search,
browse,
generateSecuredApiKey,
addAPIKey,
updateAPIKey
search,
browseObjects,
generateSecuredApiKey,
addApiKey,
updateApiKey
Search,
Browse,
GenerateSecuredApiKey,
AddApiKey,
UpdateApiKey
Search,
browse,
generateSecuredApiKey,
addApiKey,
updateApiKey
Search,
BrowseObjects,
GenerateSecuredAPIKey,
AddAPIKey,
UpdateAPIKey
search,
browse index,
generateSecuredApiKey,
add key,
update key
About this parameter
Specify the page to retrieve.
Page numbers are zero-based.
Usage notes
-
Page-numbering is based on the value of
hitsPerPage. IfhitsPerPage=20, thenpage=0will display the hits from 1 to 20,page=2will display the hits from 41 to 60. -
Page numbers are zero-based. To retrieve the tenth page, set
page=9. -
You can see the number of available pages in the value of
nbPagesin the JSON response to the search query. -
If you send a request for a page that doesn’t exist, for example,
pageis greater than or equal tonbPages, Algolia doesn’t respond with an error. Instead, the response has 0 results.
Examples
Access the nth page of results
1
2
3
$results = $index->search('query', [
'page' => 0
]);