---
title: "Get batch bisection statistics"
method: GET
path: "/repos/{owner}/{repository}/stats/batch_bisection"
tags: ["statistics"]
---

# Get batch bisection statistics

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

Statistics about bisection events in the merge queue

## Path parameters

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

## Query parameters

- `base_ref` string[], nullable — Base reference(s) of the pull requests
- `queue_name` string[], nullable — Merge queue rule name(s) of the pull requests
- `priority_rule_name` string[], nullable — Name of the priority rule(s) of the pull requests
- `start_at` string, date-time, nullable — Get the stats until this date, default 1 day before end_at
- `end_at` string, date-time, nullable — Get the stats from this date, default now

## Response `200`

Successful Response

- BisectionResponse
  - `started` BisectionStartGroupResponse[], required
    - `base_ref` string, required
    - `queue_name` string, required
    - `priority_rule_name` string, nullable, required
    - `stats` BisectionStartInInterval[], required
      - `start` string, date-time, required
      - `end` string, date-time, required
      - `bisection_count` integer, required
      - `avg_depth` number, required
      - `max_depth` integer, required
      - `avg_batch_size_before_split` number, required
  - `completed` BisectionEndGroupResponse[], required
    - `base_ref` string, required
    - `queue_name` string, required
    - `priority_rule_name` string, nullable, required
    - `stats` BisectionEndInInterval[], required
      - `start` string, date-time, required
      - `end` string, date-time, required
      - `bisection_completed_count` integer, required
      - `culprit_found_count` integer, required
      - `max_failure_reached_count` integer, 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)
