Returns test case analytics with aggregated metrics and run history. Supports filtering, searching, and sorting.
API key from the Empirical dashboard.
Number of days of history (1-90, default 7). Ignored if start_date and end_date are provided.
Start of custom date range (ISO 8601). Must be used together with end_date.
End of custom date range (ISO 8601). Must be used together with start_date.
Filter by environment ID.
Fetch history for a single test case. When provided, search, tags, order_by, order, and limit are ignored.
Substring match on test name or file path.
Comma-separated tags to filter by (includes match).
Sort field. Allowed values: fail_rate, flaky_rate, last_run.
Sort direction. Allowed values: asc, desc.
Maximum number of test cases to return (1-500, default 100).
Maximum history entries per test case (1-100, default 20).
Test case analytics data.