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

# Health Trend

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

## Path parameters

- `snapshot_id` string, required

## Query parameters

- `limit` integer
- `scope` string
- `counts` string

## Response `200`

Successful Response

- HealthTrendResponse
  - `points` HealthTrendPoint[]
    - `taken_at` string, nullable
    - `hotspot_health` number, nullable
    - `average_health` number, required
    - `worst_performer_path` string, nullable
    - `worst_performer_score` number, nullable
    - `structure_average` number, nullable
    - `history_average` number, nullable
    - `maintainability_average` number, nullable
    - `code_shape_average` number, nullable
    - `production_code_shape_average` number, nullable
  - `history` HealthTrendPoint[]
    - `taken_at` string, nullable
    - `hotspot_health` number, nullable
    - `average_health` number, required
    - `worst_performer_path` string, nullable
    - `worst_performer_score` number, nullable
    - `structure_average` number, nullable
    - `history_average` number, nullable
    - `maintainability_average` number, nullable
    - `code_shape_average` number, nullable
    - `production_code_shape_average` number, nullable
  - `summary` HealthTrendSummary
    - `current_hotspot_health` number, nullable
    - `current_average_health` number
    - `previous_hotspot_health` number, nullable
    - `previous_average_health` number, nullable
    - `hotspot_delta` number, nullable
    - `average_delta` number, nullable
    - `current_structure_deduction` number, nullable
    - `current_history_deduction` number, nullable
  - `alerts` HealthTrendAlert[]
    - `kind` string, required
    - `metric` string, required
    - `current` number, required
    - `baseline` number, nullable
    - `delta` number, required
    - `message` string, required
    - `driver` string, nullable
    - `structure_delta` number, nullable
    - `history_delta` number, nullable
  - `file_deltas` object[]
  - `file_deltas_total` integer
  - `snapshot_count` integer
  - `scope` string
  - `counts` string
  - `unscored_snapshots` integer
  - `history_drag` boolean
  - `declining` boolean
  - `predicted_decline` boolean
  - `state` string
  - `reason` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-14** `c3d46dfc6e3d` — 4 breaking, 18 info
  - the response property `points/items/hotspot_health` became optional for the status `200`
  - the response property `points/items/taken_at` became optional for the status `200`
  - response property `points/items/hotspot_health` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - response property `points/items/taken_at` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - …18 more

[Change history](https://skmtc.dev/repowise/apis/repowise-hosted-api/changes/snapshots/:snapshot_id/health/trend/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)
