Get Analytics

Get the main search metrics for a period in one call. On an index with per-record access control, analytics is available through Captain.

Authentication

AuthorizationBearer

A search key, issued by Captain. Sent as Authorization: Bearer <key>.

Path parameters

indexstringRequiredformat: "^[a-z0-9][a-z0-9_-]{0,47}$"
index name

Query parameters

daysdoubleOptionalDefaults to 7

the last days * 24 hours, when no start_date or end_date is sent

start_datestringOptionalformat: "date"

first day, UTC, inclusive (YYYY-MM-DD). Default: 6 days before end_date (a 7-day window). Sending either one replaces days

end_datestringOptionalformat: "date"

last day, UTC, inclusive (YYYY-MM-DD). Default: today. At most 366 days from start_date. Sending either one replaces days

Response

report
datasetstringOptional
the index
daysdoubleOptional
start_datestringOptionalformat: "date"
end_datestringOptionalformat: "date"
search_requestsintegerOptional
every search and typeahead request
searchesintegerOptional
searches, with the keystrokes that led to each counted once
top_querieslist of objectsOptional
zero_result_querieslist of objectsOptional
zero_result_ratedoubleOptional
eventsmap from strings to integersOptional
event counts by type
click_through_ratedouble or nullOptional
mean_click_positiondouble or nullOptional
conversion_ratedouble or nullOptional
tracked_searchesintegerOptional
searches that carried a user token
© 2026 Captain