---
title: "Get Video Request Metrics"
method: GET
path: "/video/{requestId}/metrics"
tags: ["Get Request Metrics"]
---

# Get Video Request Metrics

`GET /video/{requestId}/metrics`

Get metrics for the request

## Response body

| **Property**        | **Type** | **Description**                                     |
|---------------------|----------|-----------------------------------------------------|
| **minutesInState**  | Object   | Minutes spent in various processing states          |
| **minutesInState.pendingSourceUpload** | Number    | - |
| **minutesInState.initializing**        | Number    | - |
| **minutesInState.preprocessing**       | Number    | - |
| **minutesInState.processing**          | Number    | - |
| **minutesInState.postprocessing**      | Number    | - |
| **minutesToEnhance**| Number   | Time to complete enhancement after source upload    |
| **inputFrames**     | Integer  | Number of input frames                              |
| **outputFrames**    | Integer  | Number of output frames                             |
| **inputSize**       | String   | Size of input video                                 |
| **outputSize**      | String   | Size of output video                                |
| **chunks**          | Array    | Refer to **VideoChunkMetrics** below                |

---

#### VideoChunkMetrics

| **Property**        | **Type**   | **Description**                                  |
|---------------------|------------|--------------------------------------------------|
| **chunkIndex**                | Integer   | Index of the chunk                      |
| **tasks**                     | Array     | List of processing tasks for the chunk  |
| **tasks.*.minutesProcessing** | Number    | Duration of processing in minutes       |
| **tasks.*.inputFrames**       | Integer   | Number of input frames                  |
| **tasks.*.outputFrames**      | Integer   | Number of output frames                 |
| **tasks.*.inputSize**         | String    | Size of the input file                  |
| **tasks.*.outputSize**        | String    | Size of the output file                 |

## Path parameters

- `requestId` string, uuid, required

## Response `200`

Successful response

- MetricsResponse
  - `minutesInState` object
    - `pendingSourceUpload` number
    - `initializing` number
    - `preprocessing` number
    - `processing` number
    - `postprocessing` number
  - `minutesToEnhance` number — Time taken for the final enhanced video to become available for download after user finished uploading the source video.
  - `inputFrames` integer
  - `outputFrames` integer
  - `inputSize` string
  - `outputSize` string
  - `chunks` ChunkMetrics[] — Metrics for each chunk
    - `chunkIndex` integer — Index of the chunk starting from 0
    - `tasks` object[] — Multiple enhancement tasks may have been run on a chunk
      - `minutesProcessing` number
      - `inputFrames` integer
      - `outputFrames` integer
      - `inputSize` string
      - `outputSize` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Enhancement request with the provided ID not found
- `500` — Internal server error

---

[API](https://skmtc.net/topazlabs/apis/image-api.md) · [All operations](https://skmtc.net/topazlabs/apis/image-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/topazlabs/image-api/revisions/7610937217a4/schema)
