Get analytics data
Get analytics data for a product with optional filtering. See Platform Overview.
Authorizations
API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....
Query Parameters
Product ID (required)
Filter by version IDs
Filter by test IDs
Filter by metric IDs
Start date for filtering
End date for filtering
Filter by language codes
When set, returns only production (true) or only development (false) data. Omit to include both.
Response
Analytics data retrieved successfully
Analytics data containing evaluation results and metrics. Each entry in averages.total carries a per-version coverage number (0-100, same scale as score): the percentage of the product's non-deleted test cases that have at least one completed evaluation under that version. It is 0 when the product has no test cases or the version evaluated none, and is computed independently of the isProduction filter.