Returns the most popular searches. For each search, it also includes the average number of hits.
If you set the clickAnalytics query parameter to true, the response also includes
clickAnalytics parameter set to true. This differs from the response’s count, which shows the overall number of searches, including those where clickAnalytics is false.If you set the revenueAnalytics query parameter to true, the response also includes:
There’s a difference between 0% rates and null rates:
analyticsYour 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.
Index name.
"ALGOLIA_INDEX_NAME"
Whether to include metrics related to click and conversion events in the response.
Whether to include metrics related to revenue events in the response.
Start date of the period to analyze, in YYYY-MM-DD format.
"2022-09-19"
End date of the period to analyze, in YYYY-MM-DD format.
"2023-01-21"
Attribute by which to order the response items.
If the clickAnalytics parameter is false, only searchCount is available.
searchCount, clickThroughRate, conversionRate, averageClickPosition Sorting direction of the results: ascending or descending.
asc, desc Number of items to return.
x <= 1000Position of the first item to return.
x >= 0Tags 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.
OK
Most popular searches and their number of search results (hits).