browse
Authorizations
Your Algolia application ID.
Your Algolia API key with the necessary permissions to make the request. Permissions are controlled through access control lists (ACL) and access restrictions. The required ACL to make a request is listed in each endpoint's reference.
Path Parameters
Name of the index on which to perform the operation.
"ALGOLIA_INDEX_NAME"
Body
- Search parameters as query string.
- Option 2
Search parameters as query string.
Search parameters as a URL-encoded query string.
"hitsPerPage=2&getRankingInfo=1"
Response
OK
Search results (hits).
Hits are records from your index that match the search criteria, augmented with additional attributes, such as, for highlighting.
Search query.
URL-encoded string of all search parameters.
"query=a&hitsPerPage=20"
A/B test ID. This is only included in the response for indices that are part of an A/B test.
Variant ID. This is only included in the response for indices that are part of an A/B test.
x >= 1
Computed geographical location.
"40.71,-74.01"
Distance from a central coordinate provided by aroundLatLng
.
Whether certain properties of the search response are calculated exhaustive (exact) or approximated.
Rules applied to the query.
See the facetsCount
field of the exhaustive
object in the response.
See the nbHits
field of the exhaustive
object in the response.
See the typo
field of the exhaustive
object in the response.
Facet counts.
{ "category": { "food": 1, "tech": 42 } }
Statistics for numerical facets.
Index name used for the query.
"indexName"
Index name used for the query. During A/B testing, the targeted index isn't always the index used by the query.
"indexNameAlt"
Warnings about the query.
Number of hits selected and sorted by the relevant sort algorithm.
20
Post-normalization query string that will be searched.
"george clo"
Time the server took to process the request, in milliseconds.
20
Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues.
Markup text indicating which parts of the original query have been removed to retrieve a non-empty result set.
Redirect results to a URL, this this parameter is for internal use only.
Extra data that can be used in the search UI.
You can use this to control aspects of your search UI, such as the order of facet names and values without changing your frontend code.
Time the server took to process the request, in milliseconds.
20
Host name of the server that processed the request.
"c2-uk-3.algolia.net"
An object with custom data.
You can store up to 32kB as custom data.
Unique identifier for the query. This is used for click analytics.
"a00dbc80a8d13c4565a442e7e2dca80a"
Whether automatic events collection is enabled for the application.
Page of search results to retrieve.
x >= 0
Number of results (hits).
20
Number of pages of results.
1
Number of hits per page.
1 <= x <= 1000
Cursor to get the next page of the response.
The parameter must match the value returned in the response of a previous request.
The last page of the response does not return a cursor
attribute.
"jMDY3M2MwM2QwMWUxMmQwYWI0ZTN"