Garmin training analysis
Two Python programs fetch my Garmin data and save it locally as JSON: version 1 through an unofficial library (activities only), version 2 through Garmin's official Personal API (activities, sleep, heart rate, HRV, weight). Below: both analyses as charts, using randomly generated sample data.
Data sheet
| Identification no. | JS-2026-03 |
|---|---|
| Period | 06/2026 (version 1) · 10/2026 (version 2) |
| Role | Idea and implementation with AI assistance |
| Tools | Python · python-garminconnect · Garmin Connect Personal API · requests · JSON · TypeScript · SVG |
| Key result | Version 1: analysis of a training year (203 sessions, 633 running km, sample data) · version 2: health and training values via the official Garmin API, data stays local |
| Status | Interactive analysis · version 2 with the official API |
1Result
Zone BSample data: half a year of health and training values, randomly generated – not real data.
- Avg steps
- 8,431
- Avg sleep
- 7.2 h
- Avg resting HR
- 54 bpm
- Weight
- 75.8 kg
Steps per day
dashed: daily goal
Table
| Date | Steps |
|---|---|
| 25/10/2026 | 11,164 |
| 24/10/2026 | 7,153 |
| 23/10/2026 | 4,557 |
| 22/10/2026 | 8,976 |
| 21/10/2026 | 6,355 |
| 20/10/2026 | 10,180 |
| 19/10/2026 | 8,285 |
| 18/10/2026 | 8,438 |
| 17/10/2026 | 6,647 |
| 16/10/2026 | 4,627 |
| 15/10/2026 | 6,974 |
| 14/10/2026 | 6,294 |
| 13/10/2026 | 8,348 |
| 12/10/2026 | 7,350 |
| 11/10/2026 | 4,599 |
| 10/10/2026 | 9,526 |
| 09/10/2026 | 6,305 |
| 08/10/2026 | 7,522 |
| 07/10/2026 | 8,252 |
| 06/10/2026 | 6,183 |
| 05/10/2026 | 10,771 |
| 04/10/2026 | 7,019 |
| 03/10/2026 | 4,119 |
| 02/10/2026 | 5,408 |
| 01/10/2026 | 2,420 |
| 30/09/2026 | 6,773 |
| 29/09/2026 | 7,445 |
| 28/09/2026 | 7,219 |
| 27/09/2026 | 7,381 |
| 26/09/2026 | 7,240 |
| 25/09/2026 | 5,001 |
| 24/09/2026 | 9,516 |
| 23/09/2026 | 10,038 |
| 22/09/2026 | 10,623 |
| 21/09/2026 | 9,438 |
| 20/09/2026 | 10,445 |
| 19/09/2026 | 9,791 |
| 18/09/2026 | 4,227 |
| 17/09/2026 | 11,273 |
| 16/09/2026 | 11,683 |
| 15/09/2026 | 9,579 |
| 14/09/2026 | 9,550 |
| 13/09/2026 | 10,818 |
| 12/09/2026 | 12,709 |
| 11/09/2026 | 3,801 |
| 10/09/2026 | 9,840 |
| 09/09/2026 | 7,614 |
| 08/09/2026 | 8,010 |
| 07/09/2026 | 6,701 |
| 06/09/2026 | 11,439 |
| 05/09/2026 | 5,398 |
| 04/09/2026 | 8,196 |
| 03/09/2026 | 6,074 |
| 02/09/2026 | 9,735 |
| 01/09/2026 | 11,759 |
| 31/08/2026 | 5,993 |
| 30/08/2026 | 9,833 |
| 29/08/2026 | 10,218 |
| 28/08/2026 | 9,313 |
| 27/08/2026 | 12,899 |
| 26/08/2026 | 7,170 |
| 25/08/2026 | 7,939 |
| 24/08/2026 | 4,867 |
| 23/08/2026 | 10,925 |
| 22/08/2026 | 7,397 |
| 21/08/2026 | 9,870 |
| 20/08/2026 | 7,087 |
| 19/08/2026 | 15,082 |
| 18/08/2026 | 9,156 |
| 17/08/2026 | 7,928 |
| 16/08/2026 | 11,801 |
| 15/08/2026 | 7,765 |
| 14/08/2026 | 5,765 |
| 13/08/2026 | 10,855 |
| 12/08/2026 | 8,720 |
| 11/08/2026 | 10,952 |
| 10/08/2026 | 10,714 |
| 09/08/2026 | 11,567 |
| 08/08/2026 | 9,720 |
| 07/08/2026 | 11,208 |
| 06/08/2026 | 10,298 |
| 05/08/2026 | 10,509 |
| 04/08/2026 | 3,698 |
| 03/08/2026 | 12,165 |
| 02/08/2026 | 6,752 |
| 01/08/2026 | 8,852 |
| 31/07/2026 | 9,980 |
| 30/07/2026 | 9,088 |
| 29/07/2026 | 7,060 |
| 28/07/2026 | 8,852 |
Sleep stages (hours)
Deep Light REM Awake
Table
| Date | Deep | Light | REM | Awake |
|---|---|---|---|---|
| 25/10/2026 | 1.2 | 4.0 | 1.8 | 0.5 |
| 24/10/2026 | 1.1 | 4.1 | 1.5 | 0.2 |
| 23/10/2026 | 1.0 | 3.6 | 1.2 | 0.3 |
| 22/10/2026 | 1.6 | 4.6 | 1.8 | 0.3 |
| 21/10/2026 | 1.0 | 4.3 | 1.4 | 0.3 |
| 20/10/2026 | 1.3 | 4.0 | 1.7 | 0.3 |
| 19/10/2026 | 1.2 | 4.5 | 1.5 | 0.5 |
| 18/10/2026 | 1.1 | 3.4 | 1.6 | 0.3 |
| 17/10/2026 | 1.1 | 4.6 | 1.5 | 0.5 |
| 16/10/2026 | 1.2 | 4.2 | 1.7 | 0.3 |
| 15/10/2026 | 1.5 | 4.4 | 1.5 | 0.4 |
| 14/10/2026 | 1.4 | 4.7 | 2.0 | 0.4 |
| 13/10/2026 | 1.2 | 4.0 | 1.8 | 0.5 |
| 12/10/2026 | 1.3 | 3.9 | 1.5 | 0.4 |
| 11/10/2026 | 1.2 | 4.3 | 1.5 | 0.3 |
| 10/10/2026 | 1.2 | 4.3 | 1.6 | 0.3 |
| 09/10/2026 | 1.1 | 4.5 | 1.6 | 0.3 |
| 08/10/2026 | 1.5 | 4.3 | 1.5 | 0.5 |
| 07/10/2026 | 1.3 | 3.8 | 1.4 | 0.3 |
| 06/10/2026 | 1.1 | 4.1 | 1.3 | 0.4 |
| 05/10/2026 | 1.1 | 4.3 | 1.6 | 0.3 |
| 04/10/2026 | 1.2 | 3.6 | 1.3 | 0.4 |
| 03/10/2026 | 1.4 | 3.5 | 1.7 | 0.5 |
| 02/10/2026 | 1.3 | 3.9 | 1.6 | 0.4 |
| 01/10/2026 | 1.0 | 4.2 | 1.6 | 0.4 |
| 30/09/2026 | 1.0 | 4.2 | 1.4 | 0.4 |
| 29/09/2026 | 1.3 | 3.7 | 1.6 | 0.3 |
| 28/09/2026 | 1.3 | 4.6 | 1.5 | 0.5 |
| 27/09/2026 | 1.3 | 4.3 | 1.3 | 0.3 |
| 26/09/2026 | 0.9 | 3.8 | 1.3 | 0.3 |
| 25/09/2026 | 1.1 | 3.2 | 1.2 | 0.4 |
| 24/09/2026 | 1.5 | 4.3 | 1.4 | 0.4 |
| 23/09/2026 | 1.3 | 3.7 | 1.5 | 0.2 |
| 22/09/2026 | 1.3 | 4.2 | 1.5 | 0.5 |
| 21/09/2026 | 1.1 | 3.1 | 1.1 | 0.2 |
| 20/09/2026 | 1.2 | 4.6 | 1.4 | 0.2 |
| 19/09/2026 | 1.1 | 3.5 | 1.5 | 0.3 |
| 18/09/2026 | 1.2 | 3.5 | 1.6 | 0.4 |
| 17/09/2026 | 1.3 | 4.1 | 1.5 | 0.2 |
| 16/09/2026 | 1.3 | 4.3 | 1.6 | 0.4 |
| 15/09/2026 | 1.5 | 4.7 | 1.5 | 0.2 |
| 14/09/2026 | 1.5 | 3.9 | 1.8 | 0.4 |
| 13/09/2026 | 1.5 | 4.1 | 2.0 | 0.4 |
| 12/09/2026 | 1.5 | 4.5 | 1.5 | 0.3 |
| 11/09/2026 | 1.3 | 3.7 | 1.7 | 0.4 |
| 10/09/2026 | 1.2 | 4.7 | 1.4 | 0.3 |
| 09/09/2026 | 1.3 | 4.1 | 1.6 | 0.5 |
| 08/09/2026 | 1.1 | 4.2 | 1.3 | 0.3 |
| 07/09/2026 | 1.0 | 3.5 | 1.2 | 0.4 |
| 06/09/2026 | 1.2 | 3.3 | 1.3 | 0.4 |
| 05/09/2026 | 0.9 | 3.2 | 1.5 | 0.4 |
| 04/09/2026 | 1.3 | 3.7 | 1.3 | 0.4 |
| 03/09/2026 | 1.5 | 4.4 | 1.8 | 0.5 |
| 02/09/2026 | 1.6 | 4.8 | 1.6 | 0.3 |
| 01/09/2026 | 0.9 | 3.8 | 1.2 | 0.2 |
| 31/08/2026 | 1.6 | 5.6 | 2.1 | 0.3 |
| 30/08/2026 | 1.2 | 4.6 | 1.7 | 0.3 |
| 29/08/2026 | 1.2 | 4.9 | 1.6 | 0.5 |
| 28/08/2026 | 1.2 | 4.5 | 1.4 | 0.5 |
| 27/08/2026 | 1.3 | 4.3 | 1.7 | 0.3 |
| 26/08/2026 | 1.0 | 4.3 | 1.3 | 0.5 |
| 25/08/2026 | 1.4 | 4.2 | 1.7 | 0.5 |
| 24/08/2026 | 1.4 | 4.3 | 1.8 | 0.3 |
| 23/08/2026 | 1.2 | 3.7 | 1.4 | 0.2 |
| 22/08/2026 | 1.3 | 3.7 | 1.5 | 0.3 |
| 21/08/2026 | 1.4 | 4.5 | 2.0 | 0.5 |
| 20/08/2026 | 1.1 | 3.7 | 1.5 | 0.2 |
| 19/08/2026 | 1.2 | 3.9 | 1.6 | 0.3 |
| 18/08/2026 | 1.3 | 4.0 | 1.4 | 0.4 |
| 17/08/2026 | 1.1 | 4.0 | 1.5 | 0.3 |
| 16/08/2026 | 1.2 | 4.6 | 1.7 | 0.4 |
| 15/08/2026 | 1.0 | 3.9 | 1.3 | 0.3 |
| 14/08/2026 | 1.0 | 4.5 | 1.4 | 0.4 |
| 13/08/2026 | 1.1 | 4.3 | 1.7 | 0.3 |
| 12/08/2026 | 1.2 | 4.4 | 1.8 | 0.5 |
| 11/08/2026 | 1.1 | 4.5 | 1.4 | 0.4 |
| 10/08/2026 | 1.3 | 3.6 | 1.7 | 0.4 |
| 09/08/2026 | 1.4 | 4.1 | 1.3 | 0.3 |
| 08/08/2026 | 1.5 | 4.3 | 1.5 | 0.4 |
| 07/08/2026 | 1.1 | 3.4 | 1.2 | 0.4 |
| 06/08/2026 | 1.3 | 3.6 | 1.6 | 0.4 |
| 05/08/2026 | 1.4 | 4.1 | 1.5 | 0.3 |
| 04/08/2026 | 1.4 | 3.9 | 1.5 | 0.5 |
| 03/08/2026 | 1.1 | 4.2 | 1.9 | 0.5 |
| 02/08/2026 | 1.3 | 4.6 | 1.5 | 0.4 |
| 01/08/2026 | 1.5 | 4.3 | 1.7 | 0.2 |
| 31/07/2026 | 1.2 | 4.1 | 1.5 | 0.3 |
| 30/07/2026 | 1.1 | 4.2 | 1.4 | 0.5 |
| 29/07/2026 | 1.4 | 4.2 | 1.8 | 0.5 |
| 28/07/2026 | 1.3 | 4.0 | 1.3 | 0.4 |
Resting heart rate (bpm)
Table
| Date | Resting HR |
|---|---|
| 25/10/2026 | 51 |
| 24/10/2026 | 54 |
| 23/10/2026 | 54 |
| 22/10/2026 | 53 |
| 21/10/2026 | 51 |
| 20/10/2026 | 55 |
| 19/10/2026 | 50 |
| 18/10/2026 | 54 |
| 17/10/2026 | 54 |
| 16/10/2026 | 53 |
| 15/10/2026 | 52 |
| 14/10/2026 | 51 |
| 13/10/2026 | 53 |
| 12/10/2026 | 53 |
| 11/10/2026 | 53 |
| 10/10/2026 | 54 |
| 09/10/2026 | 51 |
| 08/10/2026 | 54 |
| 07/10/2026 | 55 |
| 06/10/2026 | 53 |
| 05/10/2026 | 55 |
| 04/10/2026 | 53 |
| 03/10/2026 | 53 |
| 02/10/2026 | 53 |
| 01/10/2026 | 56 |
| 30/09/2026 | 54 |
| 29/09/2026 | 54 |
| 28/09/2026 | 54 |
| 27/09/2026 | 55 |
| 26/09/2026 | 52 |
| 25/09/2026 | 52 |
| 24/09/2026 | 58 |
| 23/09/2026 | 52 |
| 22/09/2026 | 53 |
| 21/09/2026 | 54 |
| 20/09/2026 | 55 |
| 19/09/2026 | 55 |
| 18/09/2026 | 54 |
| 17/09/2026 | 56 |
| 16/09/2026 | 53 |
| 15/09/2026 | 52 |
| 14/09/2026 | 55 |
| 13/09/2026 | 53 |
| 12/09/2026 | 53 |
| 11/09/2026 | 54 |
| 10/09/2026 | 53 |
| 09/09/2026 | 53 |
| 08/09/2026 | 55 |
| 07/09/2026 | 52 |
| 06/09/2026 | 54 |
| 05/09/2026 | 52 |
| 04/09/2026 | 52 |
| 03/09/2026 | 55 |
| 02/09/2026 | 47 |
| 01/09/2026 | 55 |
| 31/08/2026 | 52 |
| 30/08/2026 | 53 |
| 29/08/2026 | 53 |
| 28/08/2026 | 53 |
| 27/08/2026 | 55 |
| 26/08/2026 | 53 |
| 25/08/2026 | 56 |
| 24/08/2026 | 52 |
| 23/08/2026 | 56 |
| 22/08/2026 | 54 |
| 21/08/2026 | 52 |
| 20/08/2026 | 56 |
| 19/08/2026 | 54 |
| 18/08/2026 | 56 |
| 17/08/2026 | 50 |
| 16/08/2026 | 51 |
| 15/08/2026 | 58 |
| 14/08/2026 | 53 |
| 13/08/2026 | 54 |
| 12/08/2026 | 52 |
| 11/08/2026 | 53 |
| 10/08/2026 | 55 |
| 09/08/2026 | 54 |
| 08/08/2026 | 54 |
| 07/08/2026 | 57 |
| 06/08/2026 | 54 |
| 05/08/2026 | 56 |
| 04/08/2026 | 56 |
| 03/08/2026 | 53 |
| 02/08/2026 | 53 |
| 01/08/2026 | 55 |
| 31/07/2026 | 52 |
| 30/07/2026 | 54 |
| 29/07/2026 | 53 |
| 28/07/2026 | 53 |
Overnight HRV (ms)
Last night 7-day average
Table
| Date | Last night | 7-day average |
|---|---|---|
| 25/10/2026 | 59 | 57 |
| 24/10/2026 | 49 | 54 |
| 23/10/2026 | 51 | 54 |
| 22/10/2026 | 62 | 58 |
| 21/10/2026 | 60 | 57 |
| 20/10/2026 | 66 | 59 |
| 19/10/2026 | 65 | 59 |
| 18/10/2026 | 56 | 56 |
| 17/10/2026 | 52 | 55 |
| 16/10/2026 | 51 | 54 |
| 15/10/2026 | 59 | 57 |
| 14/10/2026 | 51 | 54 |
| 13/10/2026 | 50 | 54 |
| 12/10/2026 | 51 | 54 |
| 11/10/2026 | 41 | 51 |
| 10/10/2026 | 70 | 60 |
| 09/10/2026 | 64 | 58 |
| 08/10/2026 | 63 | 58 |
| 07/10/2026 | 71 | 60 |
| 06/10/2026 | 56 | 56 |
| 05/10/2026 | 64 | 58 |
| 04/10/2026 | 54 | 55 |
| 03/10/2026 | 75 | 62 |
| 02/10/2026 | 53 | 55 |
| 01/10/2026 | 58 | 57 |
| 30/09/2026 | 66 | 59 |
| 29/09/2026 | 62 | 58 |
| 28/09/2026 | 48 | 54 |
| 27/09/2026 | 44 | 52 |
| 26/09/2026 | 67 | 59 |
| 25/09/2026 | 64 | 58 |
| 24/09/2026 | 61 | 58 |
| 23/09/2026 | 62 | 58 |
| 22/09/2026 | 60 | 57 |
| 21/09/2026 | 42 | 52 |
| 20/09/2026 | 54 | 55 |
| 19/09/2026 | 59 | 57 |
| 18/09/2026 | 65 | 59 |
| 17/09/2026 | 57 | 56 |
| 16/09/2026 | 52 | 55 |
| 15/09/2026 | 61 | 58 |
| 14/09/2026 | 60 | 57 |
| 13/09/2026 | 61 | 58 |
| 12/09/2026 | 69 | 60 |
| 11/09/2026 | 65 | 59 |
| 10/09/2026 | 63 | 58 |
| 09/09/2026 | 67 | 59 |
| 08/09/2026 | 55 | 56 |
| 07/09/2026 | 63 | 58 |
| 06/09/2026 | 55 | 56 |
| 05/09/2026 | 57 | 56 |
| 04/09/2026 | 50 | 54 |
| 03/09/2026 | 64 | 58 |
| 02/09/2026 | 58 | 57 |
| 01/09/2026 | 65 | 59 |
| 31/08/2026 | 59 | 57 |
| 30/08/2026 | 68 | 60 |
| 29/08/2026 | 64 | 58 |
| 28/08/2026 | 56 | 56 |
| 27/08/2026 | 74 | 61 |
| 26/08/2026 | 61 | 58 |
| 25/08/2026 | 58 | 57 |
| 24/08/2026 | 57 | 56 |
| 23/08/2026 | 54 | 55 |
| 22/08/2026 | 71 | 60 |
| 21/08/2026 | 53 | 55 |
| 20/08/2026 | 56 | 56 |
| 19/08/2026 | 54 | 55 |
| 18/08/2026 | 53 | 55 |
| 17/08/2026 | 64 | 58 |
| 16/08/2026 | 61 | 58 |
| 15/08/2026 | 40 | 51 |
| 14/08/2026 | 67 | 59 |
| 13/08/2026 | 68 | 60 |
| 12/08/2026 | 53 | 55 |
| 11/08/2026 | 49 | 54 |
| 10/08/2026 | 47 | 53 |
| 09/08/2026 | 60 | 57 |
| 08/08/2026 | 50 | 54 |
| 07/08/2026 | 67 | 59 |
| 06/08/2026 | 58 | 57 |
| 05/08/2026 | 57 | 56 |
| 04/08/2026 | 45 | 53 |
| 03/08/2026 | 49 | 54 |
| 02/08/2026 | 58 | 57 |
| 01/08/2026 | 52 | 55 |
| 31/07/2026 | 50 | 54 |
| 30/07/2026 | 62 | 58 |
| 29/07/2026 | 64 | 58 |
| 28/07/2026 | 51 | 54 |
Weight (kg)
Table
| Date | Weight |
|---|---|
| 23/10/2026 | 75.8 |
| 20/10/2026 | 76.0 |
| 17/10/2026 | 76.1 |
| 14/10/2026 | 76.3 |
| 11/10/2026 | 76.4 |
| 08/10/2026 | 76.3 |
| 05/10/2026 | 76.3 |
| 02/10/2026 | 76.2 |
| 29/09/2026 | 76.3 |
| 26/09/2026 | 76.2 |
| 23/09/2026 | 76.4 |
| 20/09/2026 | 76.5 |
| 17/09/2026 | 76.6 |
| 14/09/2026 | 76.6 |
| 11/09/2026 | 76.9 |
| 08/09/2026 | 77.0 |
| 05/09/2026 | 77.2 |
| 02/09/2026 | 77.4 |
| 30/08/2026 | 77.5 |
| 27/08/2026 | 77.5 |
| 24/08/2026 | 77.4 |
| 21/08/2026 | 77.5 |
| 18/08/2026 | 77.6 |
| 15/08/2026 | 77.7 |
| 12/08/2026 | 77.6 |
| 09/08/2026 | 77.6 |
| 06/08/2026 | 77.6 |
| 03/08/2026 | 77.4 |
| 31/07/2026 | 77.6 |
| 28/07/2026 | 77.6 |
Body Battery, daily peak
Table
| Date | Body Battery |
|---|---|
| 25/10/2026 | 98 |
| 24/10/2026 | 86 |
| 23/10/2026 | 77 |
| 22/10/2026 | 86 |
| 21/10/2026 | 88 |
| 20/10/2026 | 97 |
| 19/10/2026 | 77 |
| 18/10/2026 | 93 |
| 17/10/2026 | 91 |
| 16/10/2026 | 92 |
| 15/10/2026 | 89 |
| 14/10/2026 | 92 |
| 13/10/2026 | 84 |
| 12/10/2026 | 88 |
| 11/10/2026 | 85 |
| 10/10/2026 | 71 |
| 09/10/2026 | 75 |
| 08/10/2026 | 76 |
| 07/10/2026 | 76 |
| 06/10/2026 | 83 |
| 05/10/2026 | 90 |
| 04/10/2026 | 81 |
| 03/10/2026 | 77 |
| 02/10/2026 | 87 |
| 01/10/2026 | 88 |
| 30/09/2026 | 76 |
| 29/09/2026 | 86 |
| 28/09/2026 | 99 |
| 27/09/2026 | 80 |
| 26/09/2026 | 89 |
| 25/09/2026 | 77 |
| 24/09/2026 | 76 |
| 23/09/2026 | 87 |
| 22/09/2026 | 77 |
| 21/09/2026 | 70 |
| 20/09/2026 | 71 |
| 19/09/2026 | 74 |
| 18/09/2026 | 75 |
| 17/09/2026 | 82 |
| 16/09/2026 | 90 |
| 15/09/2026 | 94 |
| 14/09/2026 | 73 |
| 13/09/2026 | 99 |
| 12/09/2026 | 91 |
| 11/09/2026 | 86 |
| 10/09/2026 | 85 |
| 09/09/2026 | 77 |
| 08/09/2026 | 84 |
| 07/09/2026 | 76 |
| 06/09/2026 | 90 |
| 05/09/2026 | 88 |
| 04/09/2026 | 90 |
| 03/09/2026 | 92 |
| 02/09/2026 | 90 |
| 01/09/2026 | 80 |
| 31/08/2026 | 83 |
| 30/08/2026 | 81 |
| 29/08/2026 | 76 |
| 28/08/2026 | 90 |
| 27/08/2026 | 70 |
| 26/08/2026 | 74 |
| 25/08/2026 | 90 |
| 24/08/2026 | 89 |
| 23/08/2026 | 68 |
| 22/08/2026 | 88 |
| 21/08/2026 | 77 |
| 20/08/2026 | 77 |
| 19/08/2026 | 78 |
| 18/08/2026 | 82 |
| 17/08/2026 | 74 |
| 16/08/2026 | 90 |
| 15/08/2026 | 91 |
| 14/08/2026 | 79 |
| 13/08/2026 | 69 |
| 12/08/2026 | 72 |
| 11/08/2026 | 87 |
| 10/08/2026 | 73 |
| 09/08/2026 | 83 |
| 08/08/2026 | 96 |
| 07/08/2026 | 80 |
| 06/08/2026 | 84 |
| 05/08/2026 | 96 |
| 04/08/2026 | 84 |
| 03/08/2026 | 74 |
| 02/08/2026 | 99 |
| 01/08/2026 | 81 |
| 31/07/2026 | 73 |
| 30/07/2026 | 70 |
| 29/07/2026 | 92 |
| 28/07/2026 | 98 |
Training per week (hours)
Table
| Date | Hours |
|---|---|
| 19/10/2026 | 4.9 |
| 12/10/2026 | 5.9 |
| 05/10/2026 | 3.8 |
| 28/09/2026 | 2.8 |
| 21/09/2026 | 3.6 |
| 14/09/2026 | 2.7 |
| 07/09/2026 | 2.2 |
| 31/08/2026 | 1.9 |
| 24/08/2026 | 4.5 |
| 17/08/2026 | 5.9 |
| 10/08/2026 | 2.6 |
| 03/08/2026 | 5.4 |
| 27/07/2026 | 1.7 |
Time in heart-rate zones (hours per week)
Zone 1 Zone 2 Zone 3 Zone 4 Zone 5
Table
| Date | Zone 1 | Zone 2 | Zone 3 | Zone 4 | Zone 5 |
|---|---|---|---|---|---|
| 19/10/2026 | 1.3 | 0.9 | 0.6 | 1.6 | 0.5 |
| 12/10/2026 | 1.1 | 0.7 | 1.1 | 1.6 | 1.4 |
| 05/10/2026 | 0.3 | 0.8 | 1.0 | 1.6 | 0.2 |
| 28/09/2026 | 0.6 | 0.2 | 0.6 | 0.9 | 0.5 |
| 21/09/2026 | 1.0 | 0.3 | 0.8 | 0.6 | 1.0 |
| 14/09/2026 | 0.2 | 0.6 | 0.7 | 0.5 | 0.7 |
| 07/09/2026 | 0.4 | 0.6 | 0.4 | 0.3 | 0.6 |
| 31/08/2026 | 0.4 | 0.3 | 0.4 | 0.4 | 0.4 |
| 24/08/2026 | 1.1 | 0.9 | 0.5 | 1.2 | 0.8 |
| 17/08/2026 | 2.1 | 1.0 | 1.4 | 0.4 | 1.0 |
| 10/08/2026 | 0.6 | 0.6 | 0.4 | 0.7 | 0.2 |
| 03/08/2026 | 0.5 | 2.1 | 1.5 | 1.0 | 0.5 |
| 27/07/2026 | 0.3 | 0.0 | 0.6 | 0.3 | 0.4 |
2Problem and motivation
Zone CThe Garmin app shows single values, but no overview across weeks and months that can be analysed in a targeted way. Version 1 relies on an unofficial interface that Garmin can change or block at any time. Version 2 replaces it with the official Personal API, which is meant for read access to your own data.
3Set-up
Zone D- 01Access: sign-in (v1) or Personal API key (v2)
- 02Fetch: activities, in v2 also daily values
- 03Storage: local JSON files
- 04Preparation: one file for the analysis
- 05Analysis in the browser: weeks, pace, heart rate, sleep
Version 1 uses the Python library python-garminconnect (github.com/cyberjunky/python-garminconnect), an unofficial interface to Garmin Connect. The script asks for e-mail and password and signs in like the Garmin app; with the access token it fetches the activity list in blocks of 20 and six data sets per activity (summary, detailed time series, splits, weather, gear, heart-rate zones), with a one-second pause per request. Each activity is saved as its own JSON file in the folder of its sport. Version 2 needs no password: in Garmin Connect you create a Personal API key with a chosen expiry (30, 90, 180 days or one year), exchange it for an access token that is valid for 24 hours, and use it to call read-only endpoints only. The program requests daily summaries, sleep, HRV, weight and activities in the date spans the Swagger specifies, saves the raw responses per endpoint and writes a unified dashboard.json from them; an endpoint that fails does not abort the run. In both versions the fetch stays a local program on my own computer: credentials should not pass through someone else's server, so this page has no Garmin sign-in. According to Garmin, the Personal API is meant for your own data only, not for applications that serve other users.
4Verification
Zone EVersion 2 was built against Garmin's published API description (Swagger); paths, parameters, units and response shapes come from there. The conversion of the responses into dashboard.json was tested with invented data, and the charts above run on the same kind of sample data – no real health values appear anywhere on this page. Your own data can be opened locally above; it is read in the browser only.
What went wrong
The plan was for visitors to enter their own API key right here on the page and load their data in the browser. A check of Garmin's servers (29 Oct 2026) showed that they answer the request with which a browser asks for permission for other sites (CORS preflight) with 403 and no approval – for every origin tested, including Garmin's own sites. Direct calls from the browser are therefore not possible. Instead of sending the key through an intermediary server of my own, the fetch stays local and this page only reads the finished JSON file. The first run with real data also crashed in the preparation step because an entry without a date arrived; it now skips such entries and reports which endpoint they came from.
5Insight and next iteration
Zone F- An official interface is not automatically the easier one: it is more stable and permitted, but more narrowly drawn – own data only, read-only, with an expiry date on the key.
- Read units and shapes from the specification instead of guessing: my assumption that weight arrives in grams was wrong; per the Swagger it is kilograms.
- Real responses deviate from the description. Preparation that reports missing fields instead of crashing saves the search afterwards.
Possible next iteration
Test with longer periods how far back the Personal API's history reaches (Garmin states nothing on this) and watch for rate limits, which are also not documented anywhere.