Skip to main content

Garmin

The Garmin Health API gives D4L Collect access to the health and fitness data that participants sync from their Garmin device to Garmin Connect. This is how D4L Collect gets heart, sleep, stress, and activity data from Garmin watches and wearables.

D4L Collect never connects to the Garmin device directly. It only receives what the device has synced to Garmin Connect.

At a glance​

TopicDetails
Source typeCloud API (Garmin Health API), delivered to a D4L server and fetched by the study app
DevicesGarmin watches and wearables that sync with the Garmin Connect app. Which signals a participant's device delivers depends on the model and its settings.
In Research StudioUnder Background recordings, select Garmin account
What participants doPair their Garmin device with the Garmin Connect app and keep it syncing, sign in with their Garmin account in the study app, and allow access to their data
Data rangeFrom the moment participants give their study consent. Data recorded before that is never collected.
CollectionGarmin sends new data to a D4L server whenever the device has synced. The study app fetches it from there periodically in the background.
ExportCSV, one file per signal and day. See Exported files.

Garmin doesn't deliver data in real time. A device syncs to Garmin Connect when an activity ends, when the participant syncs manually, or on a schedule, so data can arrive hours after it was recorded.

Available signals​

SignalUnitSampling typeWhen it's measured
StepsstepsRunning totalAll day
DistancemRunning totalAll day
FloorsfloorsRunning totalAll day
CalorieskcalRunning totalAll day
Activitylevel 0–2, metabolic equivalent (MET), sInterval 15 minAll day
Heart ratebpmSampleAll day, including sleep
Resting heart ratebpmDaily summaryOnce per day, updated with each sync
Heart rate variabilityms (RMSSD)SampleMain sleep
VO2 maxml/kg/min, yearsDaily summaryOnce per day
Sleepstage + sInterval one row per sleep stageSleep sessions
Sleep scorescore 0–100Sample once per sleepMain sleep
Respiratory ratebreaths/minSampleAll day
SpO2%SampleWhen SpO2 tracking is on
Stressscore 0–100SampleAll day
Body batterylevel 0–100SampleAll day
Skin temperature°CDaily summaryMain sleep
Body compositiong, %, BMISample per measurementWhen the participant weighs in
Blood pressuremmHg, bpmSample per measurementWhen the participant measures
Menstrual cycledays, phaseDaily summary entered by the participantWhen logged

Not every participant's device delivers every signal. For which devices support which data, see the Garmin Health API documentation.

Signal reference​

The tables show example rows from the CSV files.

Movement and energy​

Steps​

Steps taken so far today. This is a running total, not a value per interval. Garmin sends the total of the day with each sync, so there are a few rows per day. Use the last row of the day as the daily total. timestamp is the end of the period that the sync covers. For the last sync of a day, it's the last millisecond of the participant's local day.

File: Garmin_dailySteps_dailySteps.csv

timestampdailySteps
2026-10-19T08:10:00Z1210
2026-10-19T13:45:00Z3870
2026-10-19T21:59:59.999Z8420

Distance​

Distance covered so far today, in meters. A running total, with the same timestamps as Steps.

File: Garmin_dailyDistance_dailyDistance.csv

timestampdailyDistance
2026-10-19T08:10:00Z1004
2026-10-19T13:45:00Z3102
2026-10-19T21:59:59.999Z6841

Floors​

Floors climbed so far today. A running total, with the same timestamps as Steps.

File: Garmin_dailyFloors_dailyFloors.csv

timestampdailyFloors
2026-10-19T08:10:00Z3
2026-10-19T13:45:00Z7
2026-10-19T21:59:59.999Z12

Calories​

Total energy burned so far today, in kcal. This is the sum of active calories and resting energy (BMR), the same value that Garmin Connect shows as total calories. A running total, with the same timestamps as Steps.

File: Garmin_dailyCalories_dailyCalories.csv

timestampdailyCalories
2026-10-19T08:10:00Z1018
2026-10-19T13:45:00Z1655
2026-10-19T21:59:59.999Z2405

Activity​

Garmin's activity level per 15-minute window, with the average metabolic equivalent (MET) and the number of seconds the participant was active in the window. timestamp is the start of the window. For the codes, see Coded values.

File: Garmin_activity_activityLevel_averageMetabolicEquivalent_duration.csv

timestampactivityLevelaverageMetabolicEquivalent_METduration_s
2026-10-19T08:00:00Z01.10
2026-10-19T08:15:00Z13.2540
2026-10-19T08:30:00Z26.8780

Heart and fitness signals​

Heart rate​

Heart rate in beats per minute, recorded throughout the day and night. Values come about every 15 seconds.

File: Garmin_heartRate_heartRate.csv

timestampheartRate_bpm
2026-10-19T07:39:00Z68
2026-10-19T07:39:15Z69
2026-10-19T07:39:30Z71

Resting heart rate​

Resting heart rate of the day in beats per minute. Garmin recalculates it during the day and sends the current value with each sync, so there are a few rows per day. Use the last row of the day. The timestamps work like those of Steps.

File: Garmin_restingHeartRate_restingHeartRate.csv

timestamprestingHeartRate_bpm
2026-10-19T08:10:00.000Z58
2026-10-19T13:45:00.000Z57
2026-10-19T21:59:59.999Z57

Heart rate variability​

Root mean square of successive differences (RMSSD) between heartbeats, in milliseconds. Measured in 5-minute intervals during the main sleep. Garmin's average for the whole night isn't exported.

File: Garmin_hrvRmssd_hrvRmssd.csv

timestamphrvRmssd
2026-10-19T01:05:00Z48
2026-10-19T01:10:00Z52
2026-10-19T01:15:00Z45

VO2 max​

VO2 max in ml/kg/min and Garmin's fitness age in years. One row per day, timestamped at noon. A value that Garmin doesn't provide is exported as -1.

File: Garmin_vo2max_vo2max.csv

timestampvo2max_vo2maxvo2max_fitnessAge
2026-10-19T10:00:00Z4432
2026-10-20T10:00:00Z44-1

Sleep and breathing signals​

Sleep​

Sleep stages of each sleep session. There's one row per stage: timestamp is the start of the stage and duration_s is its length in seconds. sleepLevel is exported as text: wake, light, deep, or rem. Garmin's awake stage is exported as wake. A night is assigned to the day on which the sleep session ends.

File: Garmin_sleep_sleepLevel_duration.csv

timestampsleepLevelduration_s
2026-10-18T21:52:00Zlight1800
2026-10-18T22:22:00Zdeep2400
2026-10-18T23:02:00Zrem1500
2026-10-18T23:27:00Zwake300

Sleep score​

Garmin's overall sleep score from 0 to 100. There's one row per sleep, timestamped at the moment the participant woke up. Garmin's rating text, for example "good", isn't exported.

File: Garmin_sleepScore_sleepScore.csv

timestampsleepScore
2026-10-19T04:35:00Z82
2026-10-20T04:50:00Z76

Respiratory rate​

Breaths per minute, about once per minute, throughout the day and night. Garmin delivers one value per measurement, not one per sleep stage. D4L Collect writes this value to all four columns (_full, _rem, _light, _deep), so the stage columns don't hold stage-specific values. Use respiratoryRate_bpm_full.

File: Garmin_respiratoryRate_respiratoryRate.csv

timestamprespiratoryRate_bpm_fullrespiratoryRate_bpm_remrespiratoryRate_bpm_lightrespiratoryRate_bpm_deep
2026-10-19T08:00:00Z14.614.614.614.6
2026-10-19T08:01:00Z14.414.414.414.4

SpO2​

Blood oxygen saturation in percent. Garmin devices only measure it when SpO2 tracking is on, and many devices have it off by default. Participants can turn it on in the device settings, for example for the time during sleep only.

File: Garmin_spo2_spo2.csv

timestampspo2_%
2026-10-19T00:10:00Z96
2026-10-19T00:55:00Z94

Stress and wellbeing signals​

Stress​

Garmin's stress score from 0 (rest) to 100 (high stress), as 3-minute averages throughout the day. Windows without a measurement, for example during intense movement, have no row.

File: Garmin_stress_stress.csv

timestampstress_level
2026-10-19T08:00:00Z18
2026-10-19T08:03:00Z24
2026-10-19T08:06:00Z31

Body battery​

Garmin's Body Battery energy level from 0 to 100, as 3-minute values throughout the day. It comes together with the stress score, and windows without a measurement have no row. Garmin's daily totals of charged and drained energy aren't exported.

File: Garmin_bodyBattery_bodyBattery.csv

timestampbodyBattery
2026-10-19T08:00:00Z55
2026-10-19T08:03:00Z55
2026-10-19T08:06:00Z54

Body measurements​

Skin temperature​

Nightly skin temperature as the difference to the participant's personal baseline, in °C. Only the deviation is recorded, never the absolute temperature. Timestamped at noon.

File: Garmin_skinTemperatureDeviation_skinTemperatureDeviation.csv

timestampskinTemperatureDeviation_˚C
2026-10-18T10:00:00Z-0.3
2026-10-19T10:00:00Z0.2

Body composition​

Measurements from a Garmin smart scale: weight in grams, body mass index, body fat in percent, muscle mass and bone mass in grams, and body water in percent. There's one row per weigh-in, timestamped at the time of the measurement. A value that the scale doesn't provide is exported as -1.

File: Garmin_bodyComposition_bodyComposition.csv

timestampbodyComposition_weightInGramsbodyComposition_bodyMassIndexbodyComposition_bodyFatInPercentbodyComposition_muscleMassInGramsbodyComposition_boneMassInGramsbodyComposition_bodyWaterInPercent
2026-10-19T05:30:00Z7240023.118.531200310056.2

Blood pressure​

Systolic and diastolic blood pressure in mmHg and pulse in bpm, from a compatible Garmin blood pressure monitor. There's one row per measurement, timestamped at the time of the measurement. A value that the monitor doesn't provide is exported as -1.

File: Garmin_bloodPressure_bloodPressure.csv

timestampbloodPressure_systolicbloodPressure_diastolicbloodPressure_pulse
2026-10-19T05:42:10Z1187662

Women's health​

Menstrual cycle​

The state of the participant's current menstrual cycle, as calculated by Garmin. The participant enters the cycle in Garmin Connect. The device doesn't measure it, so there are only rows for the days on which a cycle is logged. There's one row per day, timestamped at noon. The day of a row is the start of the cycle plus the day in the cycle.

Garmin only shares this calculated state. Symptoms, discomfort, flow, and sex drive that the participant logs in Garmin Connect aren't available. Pregnancy isn't exported.

A value that Garmin doesn't provide is exported as -1. For the codes, see Coded values.

File: Garmin_menstrualCycle_menstrualCycle.csv

timestampmenstrualCycle_dayInCyclemenstrualCycle_phasemenstrualCycle_cycleLengthmenstrualCycle_periodLengthmenstrualCycle_daysUntilNextPhasemenstrualCycle_fertileWindowStartmenstrualCycle_isPredictedCycle
2026-10-06T10:00:00Z412874110
2026-10-07T10:00:00Z512873110
Sensitive data

Menstrual cycle data is a sensitive category. Make sure that your study's consent wording covers it before you enable it. Participants must also allow the Women's Health data in Garmin Connect. Participants who connected their account before you enabled this signal have to connect again.

Exported files​

You find Garmin data in the CSV export of your study data. For details, see Downloading study data.

{Subject ID}/csv/Recordings_Signal_Data/{YYYY-MM-DD}/Garmin_{signal}_{columns}.csv
  • Each folder holds the data of one day. The folder name is the UTC date of the last value of that day, so it can differ by one day from the participant's local date.
  • Each signal has its own file. The file name starts with Garmin_, followed by the signal and its value columns, for example Garmin_heartRate_heartRate.csv.
  • All files start with a timestamp column (UTC, ISO 8601). Files from Garmin have no dataSource column.

Know before you analyze​

Data arrives with a delay​

Garmin delivers data after the device has synced to Garmin Connect, which can take hours. Data for the current day is therefore incomplete until the participant's device has synced. D4L Collect only adds values that are newer than the latest value it already stored for a signal on that day. Values that Garmin delivers late with an older timestamp aren't added.

Days are local days​

Garmin assigns data to the participant's local day, not to the UTC day. Group rows by the participant's local day. A night's sleep belongs to the day on which it ends. For the time zone, see Timestamps.

Running totals​

Steps, distance, floors, and calories are running totals for the day. Each row repeats the total of the day so far, so the last row of a day equals the daily total. Don't add the rows up. For more on running totals, see Terms used on these pages.

Resting heart rate works the same way. Garmin updates the value during the day, and the last row is the final one.

Daily summaries are timestamped at noon​

Skin temperature, VO2 max, and the menstrual cycle have one value per day. Their timestamp is 12:00 on that day in the participant's local time zone. The timestamp column shows this in UTC, for example 2026-10-19T10:00:00Z for a participant in Germany during summer time.

Calories include resting energy​

Calories are the total energy burned over the day, including resting energy (BMR). They are higher than active calories alone. Google Health and Apple Watch deliver active calories only, so the values can't be compared directly.

Stress and Body Battery have their own scales​

Garmin calculates stress and Body Battery with its own algorithms. Don't compare them with the stress values of other devices. For more, see Comparing across devices.

Coded values​

Some columns use codes instead of text:

ColumnCodes
sleepLevelExported as text: wake, light, deep, rem
activityLevel0 = sedentary, 1 = active, 2 = highly active
menstrualCycle_phase1 = menstrual, 2 = follicular, 3 = ovulation, 4 = luteal, 5 = pregnancy, -1 = unknown
menstrualCycle_isPredictedCycle1 = predicted by Garmin, 0 = based on the participant's entries