Skip to content

Get search analytics

GET
/v1/apps/{appId}/analytics
curl --request GET \
--url 'https://api.shoofai.com/v1/apps/demo-store/analytics?interval=hour' \
--header 'x-shoof-api-key: <x-shoof-api-key>'

The numbers the dashboard’s analytics page shows, for a range: searches, visitors, the no-result, click-through and conversion rates, a series over time, the top searches, the searches that found nothing and the most clicked records.

The range defaults to the last 14 days, and starts no earlier than the plan’s retention (retentionDays). Searches sent with analytics: false aren’t counted.

appId
required
string

The app’s id, shown in the dashboard (for example ali-sport-goods). demo-store is the public demo app.

Example

demo-store
from
string

The start of the range, an ISO 8601 date (2026-10-01) or date-time.

to
string

The end of the range, an ISO 8601 date or date-time. A date means its midnight, UTC. Defaults to now.

interval
string
default: day
Allowed values: hour day week

The step of series.

The analytics for the range.

Media typeapplication/json
object
totals
object
searches
integer
users

Distinct visitors (userToken) who searched.

integer
noResultRate

The share of searches that found nothing

number
clickThroughRate

The share of searches followed by a click

number
conversionRate

The share of searches followed by a conversion

number
avgClickPosition
number | null
latencyP50

The median search time in milliseconds.

number | null
latencyP95

The 95th percentile search time in milliseconds.

number | null
revenue
number
byType

Searches by kind (search

object
key
additional properties
integer
series
Array<object>
object
date
string format: date-time
searches
integer
noResults
integer
clicks
integer
conversions
integer
topQueries
Array<object>
object
query
string
count
integer
avgHits
number
noResultQueries
Array<object>
object
query
string
count
integer
topClicked
Array<object>
object
objectId
string
count
integer
title
string
retentionDays

How many days back the plan keeps analytics.

integer

Example generated

{
"totals": {
"searches": 1,
"users": 1,
"noResultRate": 1,
"clickThroughRate": 1,
"conversionRate": 1,
"avgClickPosition": 1,
"latencyP50": 1,
"latencyP95": 1,
"revenue": 1,
"byType": {
"additionalProperty": 1
}
},
"series": [
{
"date": "2026-04-15T12:00:00Z",
"searches": 1,
"noResults": 1,
"clicks": 1,
"conversions": 1
}
],
"topQueries": [
{
"query": "example",
"count": 1,
"avgHits": 1
}
],
"noResultQueries": [
{
"query": "example",
"count": 1
}
],
"topClicked": [
{
"objectId": "example",
"count": 1,
"title": "example"
}
],
"retentionDays": 1
}

The request is invalid (bad_request). details lists each problem with its path.

Media typeapplication/json
object
error
required
object
code
required

A stable, machine-readable code.

string
message
required

A human-readable explanation.

string
details

More about the error, such as the validation problems.

Example

{
"error": {
"code": "bad_request",
"message": "Invalid request",
"details": [
{
"path": "hitsPerPage",
"message": "Must be 100 or less"
}
]
}
}

The key is missing, unknown, expired or for another app (unauthorized).

Media typeapplication/json
object
error
required
object
code
required

A stable, machine-readable code.

string
message
required

A human-readable explanation.

string
details

More about the error, such as the validation problems.

Example generated

{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

The key can’t do this (forbidden), the origin isn’t allowed for the key, or the feature isn’t in the plan (feature_not_in_plan) or is switched off for the app (feature_disabled).

Media typeapplication/json
object
error
required
object
code
required

A stable, machine-readable code.

string
message
required

A human-readable explanation.

string
details

More about the error, such as the validation problems.

Example generated

{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

Too many requests in this window (rate_limited). Wait Retry-After seconds, then retry.

Media typeapplication/json
object
error
required
object
code
required

A stable, machine-readable code.

string
message
required

A human-readable explanation.

string
details

More about the error, such as the validation problems.

Example

{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded"
}
}
Retry-After
integer

Seconds to wait before retrying. Sent with every 429.

RateLimit
string

What’s left in the window (IETF draft-ietf-httpapi-ratelimit-headers): the bucket’s name, r the requests left and t the seconds until the window resets. Sent on every response.

Example
"search";r=597;t=43
RateLimit-Policy
string

The bucket’s quota q per window of w seconds. Sent on every response.

Example
"search";q=600;w=60
RateLimit-Limit
integer

The requests allowed per window (the older form of RateLimit-Policy).

RateLimit-Remaining
integer

The requests left in the window.

RateLimit-Reset
integer

Seconds until the window resets.