Analytics
Send events
Send events from the application with the search key. Tie a click or conversion to the search that produced it with the query_id from the search reply.
curl
Python
TypeScript
Up to 1,000 events per request. A click tied to a search carries one position per record id, starting at 1.
Read analytics
curl
Python
TypeScript
Query logs can hold sensitive text. On an index with per-record access control, Captain provides analytics until a dedicated analytics key is available.
Analytics by metric
Each metric also has its own endpoint, for dashboards that chart one number over time. They take start_date and end_date (UTC, inclusive, YYYY-MM-DD, the last 7 days by default). The list endpoints also take limit and offset. These endpoints are in beta.
Rates come with a daily series, so one call fills a chart.
For example, the top searches of the last week: