Skip to main content
GET
/
api
/
v2
/
analytics
/
test-count
Test Count Analytics (v2)
curl --request GET \
  --url https://dash.empirical.run/api/v2/analytics/test-count \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "daily": [
      { "date": "2025-02-01", "test_count": 142 },
      { "date": "2025-02-02", "test_count": 148 },
      { "date": "2025-02-03", "test_count": 151 }
    ],
    "summary": {
      "latest_count": 151,
      "first_count": 142,
      "change": 9,
      "change_percent": 6
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.empirical.run/llms.txt

Use this file to discover all available pages before exploring further.

Returns the count of distinct test cases that ran each day, with a summary describing how the count changed across the window. Useful for tracking test suite size growth. Skipped runs are excluded from the count, and test IDs are normalized so retries do not inflate the daily total.
{
  "data": {
    "daily": [
      { "date": "2025-02-01", "test_count": 142 },
      { "date": "2025-02-02", "test_count": 148 },
      { "date": "2025-02-03", "test_count": 151 }
    ],
    "summary": {
      "latest_count": 151,
      "first_count": 142,
      "change": 9,
      "change_percent": 6
    }
  }
}

Get last 90 days of test counts

curl -X GET \
  "https://dash.empirical.run/api/v2/analytics/test-count?days=90" \
  -H "Authorization: Bearer $EMPIRICALRUN_KEY"

Filter by environment

curl -X GET \
  "https://dash.empirical.run/api/v2/analytics/test-count?days=30&environment_id=42" \
  -H "Authorization: Bearer $EMPIRICALRUN_KEY"

Authorizations

Authorization
string
header
required

Project API key from the Empirical dashboard.

Query Parameters

days
number

Number of days of history (1-90, default 90). Ignored if start_date and end_date are provided.

start_date
string

Start of custom date range (ISO 8601). Must be used together with end_date.

end_date
string

End of custom date range (ISO 8601). Must be used together with start_date.

environment_id
string

Filter by environment ID.

Response

Daily test count and summary.

data
object
required