Garmin Connect Personal API
v1.1.1Read-only Garmin Connect data on Garmin's official Personal API: training, sleep, HRV, recovery.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
garmin_get_day Get a Garmin day
One day at a glance, for readiness and recovery questions: resting heart rate, Body Battery (with the sleep and activity events behind it), stress and minutes per stress level, intensity minutes, steps, calories (burned, and eaten if food is logged), logged hydration, heart-rate alerts, the previous night's sleep (keyed by this wake-up date) and HRV summary, and a compact list of that day's activities. For "should I train hard today?", call it for today and yesterday. For detail, use garmin_get_sleep, garmin_get_hrv and garmin_get_activity.
| Parameter | Type | Description |
|---|---|---|
date | string | Calendar date, YYYY-MM-DD. Default: today in the user's time zone. |
garmin_search_activities Search Garmin activities
List Garmin activities in a date range, newest first: ID, type, local start time, distance, duration, pace (or speed), average / max heart rate, elevation gain, training effect, training load and fastest splits (1 km … marathon, when long enough). Defaults to the last 7 days. Use the returned id with garmin_get_activity for heart-rate zones, running dynamics, intervals and RPE. With group_by "week", returns totals per week instead (count, distance, time, elevation, training load, minutes per HR zone, longest activity; `summary` covers full weeks only), for volume over a training block. Weekl…
| Parameter | Type | Description |
|---|---|---|
activity_type | string | Garmin activity type key, e.g. running, trail_running, treadmill_running, cycling, road_biking, walking, hiking, strength_training, lap_swimming. |
end_date | string | Last day (inclusive), YYYY-MM-DD. Default: today in the user's time zone. |
group_by | string | Return weekly totals instead of activities. Weeks start on the user's first day of the week; limit and offset don't apply. |
limit | integer | Maximum activities to return (default 20). |
offset | integer | Skip this many activities, for paging with next_offset. |
start_date | string | First day, YYYY-MM-DD in the user's time zone. Default: 6 days before end_date. |
garmin_get_activity Get a Garmin activity
Full summary of one Garmin activity: pace and grade-adjusted pace, heart rate and time in HR zones, running dynamics (cadence, ground contact time, vertical oscillation, stride), power, training effect and load, RPE and feel, Body Battery change, stamina, temperature, estimated sweat loss, and interval totals by type (warm-up / active / recovery / cool-down) plus run / walk totals. Strength activities add sets, reps and weight per exercise category. For per-lap rows, use garmin_get_activity_laps. Find the id with garmin_search_activities or garmin_get_day.
| Parameter | Type | Description |
|---|---|---|
activity_id * | integer | Garmin activity ID. |
garmin_get_sleep Get Garmin sleep
One night of sleep from Garmin: start and end time, total sleep, stages (deep / light / REM / awake), sleep score with each component's optimal range, sleep need with the reasons Garmin adjusted it (training, sleep history, HRV, naps), the next night's sleep need, naps that day, average heart rate, respiration, SpO2, sleep stress and breathing disruptions. Nights are keyed by the wake-up date: "last night" is today's date.
| Parameter | Type | Description |
|---|---|---|
date | string | Wake-up date (the morning the night ended), YYYY-MM-DD. Default: today in the user's time zone. |
garmin_get_hrv Get Garmin HRV
One night's heart-rate variability from Garmin: last-night average, 5-minute high, 7-day average, personal baseline range, HRV status (e.g. BALANCED, UNBALANCED, LOW) and overnight readings averaged per 30 minutes. Keyed by the wake-up date, like sleep. HRV is in milliseconds (RMSSD).
| Parameter | Type | Description |
|---|---|---|
date | string | Wake-up date, YYYY-MM-DD. Default: today in the user's time zone. |
garmin_get_profile Get Garmin profile and HR zones
The user's Garmin settings and heart-rate zones: time zone used for dates, first day of the week, training and long-run days set in Garmin Connect, and per-sport HR zones with max, resting and lactate-threshold heart rate. Use it to interpret heart-rate data from the other tools.
garmin_get_days Get Garmin days
garmin_get_day over a date range, one compact row per day, for "am I absorbing this training?" and other recovery-vs-load questions: resting heart rate, HRV and its status, sleep duration and score, Body Battery, stress, intensity minutes, steps, and that day's activity count, duration, distance and training load. `summary` has average / min / max per field. Defaults to the last 7 days; at most 31 days per call. For one field in more detail use garmin_get_daily_summaries, garmin_get_sleep_summaries, garmin_get_hrv_summaries or garmin_search_activities.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Last day (inclusive), YYYY-MM-DD. Default: today, or 6 days after start_date (not past today). |
start_date | string | First day, YYYY-MM-DD in the user's time zone. Default: 6 days before end_date. At most 31 days per call. |
garmin_get_daily_summaries Get Garmin daily summaries
All-day wellness per day over a date range, for trends: resting / min / max heart rate, Body Battery (max, min, charged, drained), average and max stress, intensity minutes, steps, calories burned (total / active) and respiration, plus average / min / max of each field in `summary`. Defaults to the last 7 days; at most 92 days per call. Today's row is partial. For sleep and HRV over a range use garmin_get_sleep_summaries and garmin_get_hrv_summaries, or garmin_get_days for everything per day.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Last day (inclusive), YYYY-MM-DD. Default: today, or 6 days after start_date (not past today). |
start_date | string | First day, YYYY-MM-DD in the user's time zone. Default: 6 days before end_date. At most 92 days per call. |
garmin_get_sleep_summaries Get Garmin sleep summaries
Sleep per night over a date range, for trends: bedtime and wake time, duration, sleep score, deep / light / REM / awake minutes, nap minutes, average heart rate, respiration, SpO2, sleep stress, breathing disruptions and Garmin's sleep need, plus average / min / max in `summary`. Nights are keyed by the wake-up date. Defaults to the last 7 nights; at most 31 nights per call (Garmin's limit). For one night in full detail use garmin_get_sleep.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Last day (inclusive), YYYY-MM-DD. Default: today, or 6 days after start_date (not past today). |
start_date | string | First day, YYYY-MM-DD in the user's time zone. Default: 6 days before end_date. At most 31 days per call. |
garmin_get_hrv_summaries Get Garmin HRV summaries
Overnight heart-rate variability per night over a date range, for trends: last-night average, 5-minute high, 7-day average, personal baseline range and HRV status (BALANCED, UNBALANCED, LOW, POOR), plus average / min / max in `summary`. Keyed by the wake-up date; HRV in milliseconds (RMSSD). Defaults to the last 7 nights; at most 92 nights per call. For one night with overnight readings use garmin_get_hrv.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Last day (inclusive), YYYY-MM-DD. Default: today, or 6 days after start_date (not past today). |
start_date | string | First day, YYYY-MM-DD in the user's time zone. Default: 6 days before end_date. At most 92 days per call. |
garmin_get_weight Get Garmin weight
Weigh-ins over a date range, one row per day with a weigh-in: weight and, from smart scales, BMI, body fat, body water, muscle and bone mass (kg / %). `summary` has average / min / max weight and the change from the first to the last weigh-in; `previous_weigh_in` is the last one before the range. Defaults to the last 7 days; at most 366 days per call.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Last day (inclusive), YYYY-MM-DD. Default: today, or 6 days after start_date (not past today). |
start_date | string | First day, YYYY-MM-DD in the user's time zone. Default: 6 days before end_date. At most 366 days per call. |
garmin_get_body_battery Get Garmin Body Battery
Body Battery per day over a date range: how much it charged and drained, and the events behind it — sleep, each activity, rest and stress periods — with start time, duration, impact on Body Battery and Garmin's feedback. Set include_samples for the level through the day (averaged per 30 min). For daily max / min Body Battery use garmin_get_daily_summaries. Defaults to the last 7 days; at most 31 days per call.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Last day (inclusive), YYYY-MM-DD. Default: today, or 6 days after start_date (not past today). |
include_samples | boolean | Include levels averaged per 30 minutes. Default false. |
start_date | string | First day, YYYY-MM-DD in the user's time zone. Default: 6 days before end_date. At most 31 days per call. |
garmin_get_stress Get Garmin stress
All-day stress per day over a date range: average stress level (0–100) and minutes at rest (0–25), low (26–50), medium (51–75) and high (76–100) stress. Today's row is partial. Defaults to the last 7 days; at most 28 days per call.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Last day (inclusive), YYYY-MM-DD. Default: today, or 6 days after start_date (not past today). |
start_date | string | First day, YYYY-MM-DD in the user's time zone. Default: 6 days before end_date. At most 28 days per call. |
garmin_get_steps Get Garmin steps
Steps per day over a date range, with the daily step goal and walking / running distance (km). Today's row is partial. Defaults to the last 7 days; at most 28 days per call.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Last day (inclusive), YYYY-MM-DD. Default: today, or 6 days after start_date (not past today). |
start_date | string | First day, YYYY-MM-DD in the user's time zone. Default: 6 days before end_date. At most 28 days per call. |
garmin_get_heart_rate Get Garmin heart rate
One day's all-day heart rate: resting, min and max, Garmin's 7-day resting average, and high / low heart-rate alerts (with the alert thresholds) if any fired. Set include_samples for heart rate through the day (averaged per 15 min), e.g. to see when it settled after a hard session. For resting HR over a range use garmin_get_daily_summaries.
| Parameter | Type | Description |
|---|---|---|
date | string | Calendar date, YYYY-MM-DD. Default: today in the user's time zone. |
include_samples | boolean | Include heart rate averaged per 15 minutes. Default false. |
garmin_get_spo2 Get Garmin SpO2
One day's blood oxygen (Pulse Ox): average, lowest and latest SpO2 (%), the average during sleep and Garmin's 7-day average. Set include_samples for hourly averages with altitude (m), e.g. for altitude acclimation. SpO2 is only recorded when Pulse Ox is on in the watch settings.
| Parameter | Type | Description |
|---|---|---|
date | string | Calendar date, YYYY-MM-DD. Default: today in the user's time zone. |
include_samples | boolean | Include hourly SpO2 and altitude. Default false. |
garmin_get_fitness_age Get Garmin fitness age
Garmin's fitness age on a date, compared with chronological age and the achievable fitness age, and the components it is based on: resting heart rate, BMI, and vigorous days and minutes per week. Components marked stale have no recent data. Garmin does not use VO2max here.
| Parameter | Type | Description |
|---|---|---|
date | string | Calendar date, YYYY-MM-DD. Default: today in the user's time zone. |
garmin_get_heart_rate_zones Get Garmin heart-rate zones
The user's heart-rate zones per sport (bpm ranges for zones 1–5), with the max, resting and lactate-threshold heart rate and the method they are based on. garmin_get_profile returns the same zones together with profile settings.
garmin_get_weight_goals Get Garmin weight goals
Weight goals in effect during a date range: target weight (kg) and start / end date. For weigh-ins use garmin_get_weight. Defaults to the last 7 days; at most 366 days per call.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Last day (inclusive), YYYY-MM-DD. Default: today, or 6 days after start_date (not past today). |
start_date | string | First day, YYYY-MM-DD in the user's time zone. Default: 6 days before end_date. At most 366 days per call. |
garmin_get_hydration Get Garmin hydration
Hydration per day over a date range, as logged in Garmin Connect: intake, goal, estimated sweat loss and intake during activities (ml). Only has data if the user logs hydration. Defaults to the last 7 days; at most 31 days per call.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Last day (inclusive), YYYY-MM-DD. Default: today, or 6 days after start_date (not past today). |
start_date | string | First day, YYYY-MM-DD in the user's time zone. Default: 6 days before end_date. At most 31 days per call. |
garmin_get_wellness_activities Get Garmin wellness activities
Wellness activities over a date range — sessions such as breathwork or Health Snapshot recorded on the watch, separate from regular activities (garmin_search_activities) — with start / end time, and average / min / max heart rate, stress, respiration, SpO2 and HRV (RMSSD / SDRR, ms) when recorded, plus time in zones. Defaults to the last 7 days; at most 92 days per call.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Last day (inclusive), YYYY-MM-DD. Default: today, or 6 days after start_date (not past today). |
start_date | string | First day, YYYY-MM-DD in the user's time zone. Default: 6 days before end_date. At most 92 days per call. |
garmin_get_food_log Get Garmin food log
One day's food log from Garmin Connect: calories, carbs, protein and fat eaten against the daily goals (adjusted goals include active calories), then each meal with its logged foods. Food totals are per serving × servings. Only has meals if the user logs food in Garmin Connect.
| Parameter | Type | Description |
|---|---|---|
date | string | Calendar date, YYYY-MM-DD. Default: today in the user's time zone. |
garmin_get_menstrual_cycle Get Garmin menstrual cycle
Menstrual cycle around a date, from cycle tracking in Garmin Connect: day in cycle, phase, period length, fertile window, predicted cycle length and ovulation date, and Garmin's cycle analysis (median length, variability). Useful for relating training, HRV and resting heart rate to the cycle. Only has data if the user tracks their cycle in Garmin Connect.
| Parameter | Type | Description |
|---|---|---|
date | string | Calendar date, YYYY-MM-DD. Default: today in the user's time zone. |
garmin_get_menstrual_day Get Garmin menstrual cycle day
One day of menstrual cycle tracking: what was logged (flow, symptoms, moods, ovulation day, notes) and that day's cycle summary (same fields as garmin_get_menstrual_cycle). During pregnancy tracking it adds the weekly weight-gain range. Only has data if the user tracks their cycle in Garmin Connect.
| Parameter | Type | Description |
|---|---|---|
date | string | Calendar date, YYYY-MM-DD. Default: today in the user's time zone. |
garmin_get_activity_workouts Get Garmin activity workout
The structured workout an activity was started from, step by step: warm-up / active / rest, how each step ends (time, distance in m, reps, heart rate or lap button), its target (HR zone or bpm / % of max HR range, pace range, power, cadence) and repeat groups (`back_to_step`, `times`). Compare with garmin_get_activity for planned vs. actual. Empty for activities not started from a workout created in Garmin Connect. Get the activity id from garmin_search_activities.
| Parameter | Type | Description |
|---|---|---|
activity_id * | integer | Garmin activity ID. |
garmin_get_activity_streams Get Garmin activity streams
Time series for one activity, downsampled by Garmin to about `points` rows, for questions like "did my HR drift in the last 10 km?" or "where did my pace fade?". Returns `columns` and `rows`; each row starts with distance (km) and elapsed time (s). Default channels: hr, pace, grade_adjusted_pace, cadence, power, elevation; channels the activity didn't record are left out. Use speed instead of pace for cycling. Location is never returned. Get the activity id from garmin_search_activities.
| Parameter | Type | Description |
|---|---|---|
activity_id * | integer | Garmin activity ID. |
channels | array | Channels to include. Default: hr, pace, grade_adjusted_pace, cadence, power, elevation. |
points | integer | Approximate number of rows (default 100, max 300). |
garmin_get_activity_laps Get Garmin activity laps
One row per lap of an activity, plus one row per interval rep when it was an interval session: distance, time, pace and grade-adjusted pace, heart rate, power, cadence, running dynamics, elevation, calories, temperature and respiration. For questions like "how did each rep go?" or "which kilometres were slowest?". Location is never returned. Get the activity id from garmin_search_activities. On the Cloudflare free plan a long activity can fail with a connector error (CPU limit): say so rather than retrying.
| Parameter | Type | Description |
|---|---|---|
activity_id * | integer | Garmin activity ID. |