Skip to main content
GET
/
2
/
searches
/
noResultRate
curl
curl --request GET \
  --url 'https://analytics.us.algolia.com/2/searches/noResultRate?index=ALGOLIA_INDEX_NAME&startDate=2022-09-19&endDate=2023-01-21&tags=device%3Amobile%2520phone' \
  --header 'accept: application/json' \
  --header 'x-algolia-api-key: ALGOLIA_API_KEY' \
  --header 'x-algolia-application-id: ALGOLIA_APPLICATION_ID'
{
  "rate": 0.49,
  "count": 504,
  "noResultCount": 54,
  "dates": [
    {
      "date": "2023-06-14",
      "noResultCount": 54,
      "count": 504,
      "rate": 0.49
    }
  ]
}
Required ACL: analytics

Authorizations

x-algolia-application-id
string
header
required

Your Algolia application ID.

x-algolia-api-key
string
header
required

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
string
required

Index name.

Example:

"ALGOLIA_INDEX_NAME"

startDate
string

Start date of the period to analyze, in YYYY-MM-DD format.

Example:

"2022-09-19"

endDate
string

End date of the period to analyze, in YYYY-MM-DD format.

Example:

"2023-01-21"

tags
string

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

rate
number
required

No results rate: calculated as the number of searches with zero results divided by the total number of searches.

Required range: 0 <= x <= 1
Example:

0.49

count
integer
required

Number of searches.

Example:

504

noResultCount
integer
required

Number of searches without any results.

Example:

54

dates
dailyNoResultsRates · object[]
required

Daily no results rates.

I