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

- object

## Other responses

- `422` — Validation Error

## Changes

- **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/6bb9d0da77e3?raw)
