Skip to main content
GET
/
{projectId}
/
analytics
/
summary
Analytics summary
curl --request GET \
  --url https://api.testdino.com/api/public/v1/{projectId}/analytics/summary \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "metrics": {
      "totalRuns": 123,
      "totalTestCases": 123,
      "avgRunsPerDay": 123,
      "failedRuns": 123,
      "passedRuns": 123,
      "flaky": {
        "totalFlakyTestCases": 123,
        "flakinessPercentage": 123
      },
      "newFailures": {
        "totalNewFailures": 123,
        "newFailuresPercentage": 123
      },
      "avgExecutionTime": 123,
      "durationThresholds": {
        "fast": 123,
        "medium": 123,
        "slow": 123
      }
    },
    "uniqueFlakyTests": [
      {
        "title": "<string>",
        "fileName": "<string>",
        "filePath": "<string>",
        "failedInDays": 123,
        "dates": [
          "<string>"
        ]
      }
    ],
    "uniqueNewFailures": [
      {
        "title": "<string>",
        "fileName": "<string>",
        "filePath": "<string>",
        "failedInDays": 123,
        "dates": [
          "<string>"
        ]
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Project PAT (tdp_) token with public-api scope

Path Parameters

projectId
string
required

The project identifier (e.g. project_abc123). Must match the project associated with your PAT.

Query Parameters

dateRange
enum<string>

Predefined date range filter. Takes precedence over startDate/endDate if both are provided. For custom ranges, omit this and use startDate+endDate instead.

Available options:
7d,
14d,
30d,
60d,
90d
environment
string

Filter results by environment name (e.g. production, staging). Use the /filters endpoint to discover available environments.

environmentBranches
string

Comma-separated branches to scope analytics within the selected environment.

startDate
string<date>

Start of a custom date range (ISO 8601 date, e.g. 2026-03-01). Must be used together with endDate. Ignored if dateRange is also provided.

endDate
string<date>

End of a custom date range (ISO 8601 date, e.g. 2026-03-31). Must be used together with startDate. Ignored if dateRange is also provided.

days
integer
default:30

Lookback period in days for flaky test detection (1–365, default 30). Independent of dateRange.

Required range: 1 <= x <= 365

Response

Analytics summary

success
boolean
data
object