Skip to main contentQuery Suggestions add new indices to your Algolia application with popular
search queries, external suggestions, or facet values.
In your user interface, you can query the Query Suggestions indices like
regular indices and add suggested searches
to guide users and speed up their search.
Base URLs
The base URLs for requests to the Query Suggestions API are:
https://query-suggestions.us.algolia.com
https://query-suggestions.eu.algolia.com
Use the URL that matches your analytics region.
All requests must use HTTPS.
Authentication
To authenticate your API requests, add these headers:
x-algolia-application-id. Your Algolia application ID.
x-algolia-api-key. An API key with the necessary permissions to make the request.
The required access control list (ACL) to make a request is listed in each endpoint’s reference.
You can find your application ID and API key in the Algolia dashboard.
Request bodies must be JSON objects.
Response status and errors
Response bodies are JSON objects.
Since JSON doesn’t guarantee any specific ordering,
don’t rely on the order of attributes in the API response.
- Successful responses return a
2xx status.
- Client errors return a
4xx status.
- Server errors return a
5xx status.
- Error responses have a
message property with more information.
Version
The current version of the Query Suggestions API is version 1,
as indicated by the /1/ in each endpoint’s URL.