---
title: "Get move summary data for all periods"
method: GET
path: "/api/health/move-summary/all"
tags: ["Health"]
---

# Get move summary data for all periods

`GET /api/health/move-summary/all`

## Request

- Base URL: `https://api.hiyd.ai`
- URL: `https://api.hiyd.ai/api/health/move-summary/all`
- Auth: HTTP bearer

Returns move summary charts and totals for day, week, month, 6m, and year.
Every period counts LOCAL calendar days in time_zone. A tracker day's
total comes from its hourly rows in that zone; the UTC-day rollup is
used only on a day the zone sits at UTC+0 all day. A day without
tracker hours has no tracker steps (the Day total is 0 with an empty
chart). Phone (Health) steps win a day whenever they exist.

## Query parameters

- `date` string, date
- `period` 'day' | 'week' | 'month' | '6m' | 'year'
- `time_zone` string
- `window` 'calendar' | 'trailing'

## Response `200`

Move summary data per period. Each summaries.<period> holds:
date; window ('trailing' when a trailing window was applied, else
'calendar'); date_range {start, end} (inclusive, local dates);
steps.total; steps.average_daily_steps, the mean over the days in
the range that have steps, leaving out today (still in progress)
unless it is the only such day; steps.average_days, how many days
that mean covers; steps.chart_data (day: {time, steps} per hour
with steps; week/month: {date, label, steps} for every day of
the range; 6m/year: {period, label, steps} per month).

- object
  - `date` string
  - `summaries` object

## Other responses

- `400`: Malformed date or unknown period

---

[API](https://skmtc.dev/hiyd/apis/hiyd-backend-api.md) - [All operations](https://skmtc.dev/hiyd/apis/hiyd-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hiyd/apis/hiyd-backend-api/revisions/23598d347e1b?raw)
