---
title: "Stats of a branch"
method: GET
path: "/branches/{branch_id}/stats"
tags: ["Management"]
---

# Stats of a branch

`GET /branches/{branch_id}/stats`

## Path parameters

- `branch_id` integer, required

## Response `200`

Branch stats

- BranchStats
  - `id` integer
  - `ci` BranchStatsByKind
    - `flows_total` integer
    - `flows_last_week` integer
    - `flows_last_month` integer
    - `avg_duration_last_month` integer
    - `avg_duration_last_week` integer
    - `durations` object[]
      - `flow_label` string
      - `duration` integer
  - `dev` BranchStatsByKind
    - `flows_total` integer
    - `flows_last_week` integer
    - `flows_last_month` integer
    - `avg_duration_last_month` integer
    - `avg_duration_last_week` integer
    - `durations` object[]
      - `flow_label` string
      - `duration` integer

## Other responses

- `default` — unexpected error

---

[API](https://skmtc.net/kraken-ci/apis/server-api.md) · [All operations](https://skmtc.net/kraken-ci/apis/server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kraken-ci/server-api/versions/1f2ae877f985/schema)
