Skip to main content
GET
/
{projectId}
/
analytics
/
test-cases
/
performance
Performance trends
curl --request GET \
  --url https://api.testdino.com/api/public/v1/{projectId}/analytics/test-cases/performance \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "metadata": {
      "dateRange": "<string>",
      "selectedBranches": [
        "<string>"
      ],
      "totalUniqueTestCases": 123,
      "totalTestCaseExecutions": 123,
      "baselineDuration": 123,
      "baselineCalculationMethod": "<string>",
      "categoryDistributionMethod": "<string>",
      "categoryThresholds": {
        "excellent": {
          "min": 123,
          "max": 123
        },
        "good": {
          "min": 123,
          "max": 123
        },
        "average": {
          "min": 123,
          "max": 123
        },
        "poor": {
          "min": 123,
          "max": 123
        },
        "critical": {
          "min": 123,
          "max": null
        }
      }
    },
    "categoryCounts": {
      "excellent": 123,
      "good": 123,
      "average": 123,
      "poor": 123,
      "critical": 123
    },
    "poorTests": [
      {
        "title": "<string>",
        "fileName": "<string>",
        "filePath": "<string>",
        "averageDuration": 123,
        "executionCount": 123
      }
    ],
    "criticalTests": [
      {
        "title": "<string>",
        "fileName": "<string>",
        "filePath": "<string>",
        "averageDuration": 123,
        "executionCount": 123
      }
    ]
  }
}

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 performance data 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.

Response

Performance trend data

success
boolean
data
object