Retrieve top search results
Retrieves the object IDs of the 1,000 most frequent search results.
clickAnalytics query parameter to true, the response also includes:
- Tracked searches count.
Tracked searches are Search API requests with
clickAnalyticsset totrue. This differs from the response’scount, which includes searches whereclickAnalyticsisfalse. - Click count
- Click-through rate (CTR)
- Conversion count
- Conversion rate (CR)
- Average click position
revenueAnalytics parameter to true, the response also includes:
- Add-to-cart count
- Add-to-cart rate (ATCR)
- Purchase count
- Purchase rate
- Revenue details for each currency
- Null means there were no queries. Algolia didn’t receive any events, so rates are null.
- 0% rates mean there were queries but no click or conversion events were received.
analyticsAuthorizations
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.
Query Parameters
Index name.
"ALGOLIA_INDEX_NAME"
Whether to include metrics related to click and conversion events in the response.
End date of the period to analyze, in YYYY-MM-DD format.
"2023-01-21"
Number of items to return.
x <= 1000Position of the first item to return.
x >= 0Whether to include metrics related to revenue events in the response.
Search query.
Start date of the period to analyze, in YYYY-MM-DD format.
"2022-09-19"
Tags by which to segment the analytics.
You can combine multiple tags with OR and AND.
Tags must be URL-encoded.
For more information, see Segment your analytics data.
Response
OK
- Top search results
- Top search results with click analytics
- Top search results with revenue analytics
Most frequent search results.