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>"
]
}
]
}
}Consolidated analytics metrics in a single response.
Returns run counts, pass/fail/flakiness rates, average execution time, new test cases, run performance (fastest run, speed improvement, time saved), test-case metrics (fastest/slowest/average), and the top 5 slowest and flaky tests. No chart data — intended for headless dashboards and CI integrations.
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>"
]
}
]
}
}Project PAT (tdp_) token with public-api scope
The project identifier (e.g. project_abc123). Must match the project associated with your PAT.
Predefined date range filter. Takes precedence over startDate/endDate if both are provided. For custom ranges, omit this and use startDate+endDate instead.
7d, 14d, 30d, 60d, 90d Filter results by environment name (e.g. production, staging). Use the /filters endpoint to discover available environments.
Comma-separated branches to scope analytics within the selected environment.
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.
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.
Lookback period in days for flaky test detection (1–365, default 30). Independent of dateRange.
1 <= x <= 365Was this page helpful?