---
title: "Time to merge statistics for every queue"
method: GET
path: "/repos/{owner}/{repository}/stats/time_to_merge"
tags: ["statistics"]
deprecated: true
---

# Time to merge statistics for every queue

`GET /repos/{owner}/{repository}/stats/time_to_merge`

> **Deprecated.**

Get the average time to merge statistics, in seconds, for all the queues in the repository

## Path parameters

- `owner` string, required — The owner of the repository
- `repository` string, required — The name of the repository

## Query parameters

- `at` string, date-time, nullable — Retrieve the time to merge at this timestamp (ISO 8601 with timezone, e.g. 2024-01-01T00:00:00Z)
- `branch` string, nullable — The name of the branch

## Response `200`

Successful Response

- TimeToMergePerPartition[]
  - `queues` TimeToMergePerQueue[], required — The time to merge data for each queue
    - `queue_name` string, required — The name of the queue
    - `time_to_merge` TimeToMergeResponse, required
      - `mean` number, nullable, required
      - `median` number, nullable, required

## Other responses

- `403` — Forbidden
- `404` — Not found
- `409` — Conflict
- `422` — Unprocessable entity

---

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