---
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`

## Request

- Base URL: `https://api.mergify.com/v1`
- URL: `https://api.mergify.com/v1/repos/{owner}/{repository}/stats/time_to_merge`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

> **Deprecated.**

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

## Path parameters

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

## Query parameters

- `at` string, date-time, nullable: Retrieve the time to merge at this timestamp: an ISO 8601 datetime with a UTC offset (e.g. `2024-01-01T00:00:00Z`); a Unix timestamp or a datetime without an offset is refused.
- `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

## Changes

- **2026-08-28** `b3864dcc206a`: 1 info
  - the endpoint scheme security `MergifyTokenBearerAuth` was added to the API
- **2026-08-13** `29857c6146cf`: 2 info
  - the endpoint scheme security `AdminApplicationKey` was added to the API
  - the endpoint scheme security `ApplicationAuth` was removed from the API

[Operation history](https://skmtc.dev/mergify/apis/mergify-api/changes/repos/:owner/:repository/stats/time_to_merge/get.md)

---

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