---
title: "Health Distribution"
method: GET
path: "/snapshots/{snapshot_id}/health/distribution"
tags: ["code-health"]
---

# Health Distribution

`GET /snapshots/{snapshot_id}/health/distribution`

NLOC-weighted band distribution (healthy/warning/alert) for the repo.

## Path parameters

- `snapshot_id` string, required

## Query parameters

- `scope` string
- `counts` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-21** `cce15d886f2b` — 1 breaking
  - the response's body type changed from `object` to no type for status `200`
- **2026-09-14** `c3d46dfc6e3d` — 2 info
  - added the new optional `query` request parameter `counts`
  - added the new optional `query` request parameter `scope`

[Change history](https://skmtc.dev/repowise/apis/repowise-hosted-api/changes/snapshots/:snapshot_id/health/distribution/get.md)

---

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