---
title: "Retrieve test results"
method: GET
path: "/{service}/{owner_username}/repos/{repo_name}/test-results/{id}/"
tags: ["Test Results"]
---

# Retrieve test results

`GET /{service}/{owner_username}/repos/{repo_name}/test-results/{id}/`

## Request

- Base URL: `https://api.codecov.io/api/v2`
- URL: `https://api.codecov.io/api/v2/{service}/{owner_username}/repos/{repo_name}/test-results/{id}/`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/codecov/apis/codecov-api/docs/:service/:owner_username/repos/:repo_name/test-results/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required
- `owner_username` string, required
- `repo_name` string, required
- `service` string, required

## Query parameters

- `branch` string
- `commit_id` string
- `duration_max` integer
- `duration_min` integer
- `outcome` string

## Response `200`

- Testrun
  - `test_id` string, required
  - `name` string, nullable, required
  - `classname` string, nullable, required
  - `testsuite` string, nullable, required
  - `computed_name` string, nullable, required
  - `outcome` string, required
  - `duration_seconds` number, double, nullable, required
  - `failure_message` string, nullable, required
  - `framework` string, nullable, required
  - `filename` string, nullable, required
  - `repo_id` integer, required
  - `commit_sha` string, nullable, required
  - `branch` string, nullable, required
  - `flags` string[], nullable, required
  - `upload_id` integer, nullable, required
  - `properties` unknown, required
  - `timestamp` string, date-time, required

---

[API](https://skmtc.dev/codecov/apis/codecov-api.md) - [All operations](https://skmtc.dev/codecov/apis/codecov-api/llms.txt) - [OpenAPI document](https://skmtc.dev/codecov/apis/codecov-api/revisions/aedc46e83ec6?raw)
