Google Health
The Google Health API gives D4L Collect access to the health and fitness data that participants sync from their wearable to their Google account. This is how D4L Collect gets data from Fitbit trackers and smartwatches and from the Google Pixel Watch. Some data, such as steps, can also come from the participant's phone.
D4L Collect never connects to the wearable directly. It only receives what the wearable has synced to Google. For the data that the companion app records directly on the Google Pixel Watch, see Google Pixel Watch.
At a glance
| Topic | Details |
|---|---|
| Source type | Cloud API (Google Health API v4) |
| Devices | Fitbit trackers and smartwatches, Google Pixel Watch, phones |
| In Research Studio | Under Background recordings, select Google Health account |
| What participants do | Make sure their wearable syncs to their Google account, sign in with Google in the study app, and allow access to their data |
| Data range | From the moment participants give their study consent. Data recorded before that is never collected. |
| Collection | The study app fetches new data periodically in the background. |
| Export | CSV, one file per signal and day. See Exported files. |
Some data types require Google's approval for the study app release. Research Studio marks these data types with **. Before you enable them, check with your engineering team which data types have been approved.
Available signals
| Signal (Research Studio label) | Unit | Sampling type | When it's measured |
|---|---|---|---|
| Calories | kcal | Interval | All day |
| Steps | steps | Interval | All day |
| Distance | m | Interval | All day |
| Floors | floors | Interval | All day |
| Elevation gain | m | Interval | All day |
| Active Zone Minutes | Active Zone Minutes (weighted minutes) | Interval | All day |
| Activity | level 0–3 | Interval | All day |
| Heart rate | bpm | Sample | All day, including sleep |
| Resting heart rate | bpm | Daily summary | Once per day |
| VO2 max | ml/kg/min | Daily summary | Once per day |
| Heart rate variability | ms (RMSSD) | Sample | Main sleep, compatible wearable only |
| Breathing rate | breaths/min | Sample once per night | Main sleep, compatible wearable only |
| SpO2 | % | Sample | Main sleep, compatible wearable only |
| Variation in skin temperature | °C | Daily summary | Main sleep, compatible wearable only |
| Sleep | stage + s | Interval one row per sleep stage | Sleep sessions |
For which devices support which data, see Google's list of data types. Not every participant's device delivers every signal.
Signal reference
The tables show example rows from the CSV files.
Activity signals
Calories
Active energy burned per interval, in kcal. Google Health only provides active calories, not the energy burned at rest, so daily totals are lower than the total energy expenditure shown in the Fitbit app. Expect many rows with 0 while the participant is sedentary.
File: Google Health_activeCalories_activeCalories_duration_dataSource.csv
| timestamp | activeCalories_kcal | duration_s | dataSource |
|---|---|---|---|
| 2026-05-31T07:37:00Z | 0 | 60 | charge-6 |
| 2026-05-31T07:38:00Z | 3.88866 | 60 | charge-6 |
Steps
Steps per interval. Only intervals with steps are exported, so there are no rows with 0.
File: Google Health_steps_steps_duration_dataSource.csv
| timestamp | steps | duration_s | dataSource |
|---|---|---|---|
| 2026-05-31T07:35:00Z | 49 | 60 | charge-6 |
| 2026-05-31T07:38:00Z | 52 | 60 | charge-6 |
Distance
Distance covered per interval, in meters.
File: Google Health_distance_distance_duration_dataSource.csv
| timestamp | distance_m | duration_s | dataSource |
|---|---|---|---|
| 2026-09-15T08:00:00Z | 30 | 60 | pixel-watch-4 |
| 2026-09-15T08:01:00Z | 12 | 60 | pixel-watch-4 |
Floors
Floors climbed per interval. Google provides floors only merged across all sources, so dataSource is always reconciled and there's at most one row per interval.
File: Google Health_floors_floors_duration_dataSource.csv
| timestamp | floors | duration_s | dataSource |
|---|---|---|---|
| 2026-09-15T08:00:00Z | 2 | 900 | reconciled |
| 2026-09-15T08:15:00Z | 3 | 900 | reconciled |
Elevation gain
Altitude gained per interval, in meters. This isn't the height above sea level.
File: Google Health_elevationGain_elevationGain_duration_dataSource.csv
| timestamp | elevationGain_m | duration_s | dataSource |
|---|---|---|---|
| 2026-09-15T08:00:00Z | 6 | 900 | pixel-watch-4 |
| 2026-09-15T08:15:00Z | 9 | 900 | pixel-watch-4 |
Active Zone Minutes
Active Zone Minutes earned per interval and heart rate zone. There's one row per interval and zone, so several rows can share a timestamp. For the zone codes, see Coded values.
Active Zone Minutes aren't the same as the time spent in a zone. Google weights each minute by the intensity of its zone:
| Zone | Intensity | Active Zone Minutes per minute in the zone |
|---|---|---|
1 = fat burn | Moderate | 1 |
2 = cardio | High | 2 |
3 = peak | High | 2 |
For example, 10 minutes in the cardio zone earn 20 Active Zone Minutes. To get the time spent in a zone, use duration_s instead of activeZoneMinutes_min.
File: Google Health_activeZoneMinutes_heartRateZone_activeZoneMinutes_duration_dataSource.csv
| timestamp | heartRateZone | activeZoneMinutes_min | duration_s | dataSource |
|---|---|---|---|---|
| 2026-09-15T08:00:00Z | 1 | 1 | 60 | pixel-watch-4 |
| 2026-09-15T08:01:00Z | 2 | 2 | 60 | pixel-watch-4 |
| 2026-09-15T08:02:00Z | 3 | 2 | 60 | pixel-watch-4 |
Activity
Activity level per interval on Google's 4-level scale. For the codes, see Coded values.
File: Google Health_activity_activityLevel_duration_dataSource.csv
| timestamp | activityLevel | duration_s | dataSource |
|---|---|---|---|
| 2026-09-15T08:00:00Z | 2 | 300 | pixel-watch-4 |
| 2026-09-15T08:05:00Z | 0 | 600 | pixel-watch-4 |
Heart and fitness signals
Heart rate
Heart rate in beats per minute, recorded throughout the day and night. Values usually come about once per minute or more often.
File: Google Health_heartRate_heartRate_dataSource.csv
| timestamp | heartRate_bpm | dataSource |
|---|---|---|
| 2026-05-31T08:20:00Z | 72.8 | charge-6 |
| 2026-05-31T08:21:00Z | 73.2 | charge-6 |
Resting heart rate
Resting heart rate per day in beats per minute, rounded to whole beats. Timestamped at noon.
File: Google Health_restingHeartRate_restingHeartRate_dataSource.csv
| timestamp | restingHeartRate_bpm | dataSource |
|---|---|---|
| 2026-09-15T10:00:00Z | 58 | pixel-watch-4 |
| 2026-09-16T10:00:00Z | 57 | pixel-watch-4 |
VO2 max
Daily VO2 max in ml/kg/min, called Cardio Fitness Score in the Fitbit app. Includes the cardio fitness level and whether Google estimated the value. Timestamped at noon. For the codes, see Coded values.
File: Google Health_vo2max_vo2max_dataSource.csv
| timestamp | vo2max_vo2max | vo2max_cardioFitnessLevel | vo2max_isEstimated | dataSource |
|---|---|---|---|---|
| 2026-09-15T10:00:00Z | 41.3 | 4 | 0 | pixel-watch-4 |
| 2026-09-16T10:00:00Z | 40.9 | no_data | no_data | pixel-watch-4 |
Heart rate variability
Root mean square of successive differences (RMSSD) between heartbeats, in milliseconds. Measured in about 5-minute intervals during the main sleep.
File: Google Health_hrvRmssd_hrvRmssd_dataSource.csv
| timestamp | hrvRmssd | dataSource |
|---|---|---|
| 2026-05-31T06:10:00Z | 79.1 | charge-6 |
| 2026-05-31T06:15:00Z | 37 | charge-6 |
Sleep 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. A night is assigned to the day on which the sleep session ends.
File: Google Health_sleep_sleepLevel_duration_dataSource.csv
| timestamp | sleepLevel | duration_s | dataSource |
|---|---|---|---|
| 2026-05-30T23:48:00Z | wake | 240 | charge-6 |
| 2026-05-30T23:52:00Z | light | 900 | charge-6 |
| 2026-05-31T00:07:00Z | deep | 2280 | charge-6 |
| 2026-05-31T01:20:30Z | rem | 330 | charge-6 |
Breathing rate
Average breaths per minute during the main sleep, overall and per sleep stage. There's one row per night. The _full column is Google's value for the whole night. A stage without data is exported as 0.
File: Google Health_respiratoryRate_respiratoryRate_dataSource.csv
| timestamp | respiratoryRate_bpm_full | respiratoryRate_bpm_rem | respiratoryRate_bpm_light | respiratoryRate_bpm_deep | dataSource |
|---|---|---|---|---|---|
| 2026-05-31T06:22:00Z | 17.8 | 18.2 | 17.2 | 17.8 | charge-6 |
SpO2
Blood oxygen saturation in percent during the main sleep, as about 5-minute moving averages.
Some devices, for example the Fitbit Charge 6, report 50 when they can't get a clean reading. Apply a validated, device-specific artifact rule before excluding values; a low SpO2 reading alone does not establish that it is an artifact.
File: Google Health_spo2_spo2_dataSource.csv
| timestamp | spo2_% | dataSource |
|---|---|---|
| 2026-05-31T06:50:33Z | 95.5 | charge-6 |
| 2026-05-31T06:55:33Z | 50 | charge-6 |
Variation in skin temperature
Nightly skin temperature during the main sleep, as the difference to the participant's personal baseline, in °C. Timestamped at noon. Only the deviation is recorded, never the absolute temperature. Google only provides a value after at least 3 hours of sleep, so expect gaps.
File: Google Health_skinTemperatureDeviation_skinTemperatureDeviation_dataSource.csv
| timestamp | skinTemperatureDeviation_˚C | dataSource |
|---|---|---|
| 2026-05-30T10:00:00Z | -0.21 | charge-6 |
| 2026-05-31T10:00:00Z | 0.16 | charge-6 |
Exported files
You find Google Health data in the CSV export of your study data. For details, see Downloading study data.
{Subject ID}/csv/Recordings_Signal_Data/{YYYY-MM-DD}/Google Health_{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
Google Health_, followed by the signal and its value columns, for exampleGoogle Health_heartRate_heartRate_dataSource.csv. - All files start with a
timestampcolumn (UTC, ISO 8601) and end with adataSourcecolumn.
Know before you analyze
One row per data source
A participant can track the same activity with several devices, for example a watch and their phone. Google Health keeps the data of each device separate, and so does D4L Collect. The dataSource column tells you which device a row came from.
Google offers two methods to read data, and they handle multiple sources differently:
listreturns the data of each source separately. D4L Collect uses it for all signals except floors.reconcilemerges all sources into one stream and drops the source information. Google provides floors only this way.
This is what the same minute looks like when a watch and a phone both record it:
- list (all signals except floors)
- reconcile (floors)
Two rows for the same minute, one per source:
| timestamp | distance_m | duration_s | dataSource |
|---|---|---|---|
| 2026-09-15T08:01:00Z | 12 | 60 | pixel-watch-4 |
| 2026-09-15T08:01:00Z | 12.5 | 60 | phone |
One merged row, with reconciled as the source:
| timestamp | floors | duration_s | dataSource |
|---|---|---|---|
| 2026-09-15T08:00:00Z | 2 | 900 | reconciled |
If you add up all rows of a day, you count activity twice when two devices recorded it. Filter by dataSource first, for example by keeping only the wearable.
Values in the dataSource column:
| Value | Meaning |
|---|---|
Device name, for example pixel-watch-4, charge-6 | The device name from Google, in lowercase with hyphens instead of spaces, cut off after 16 characters |
phone | Tracked by the phone without a wearable |
reconciled | Merged from all sources (floors only) |
unknown | Google didn't name the source |
Aggregating interval signals
For interval signals, each row covers only its own interval: timestamp is the start of the interval, and duration_s is its length in seconds. Intervals aren't always the same length, for example 1 minute or 15 minutes. For additive quantities such as steps, calories, and distance, get a daily total by summing the values of one source for that day. For Activity and Sleep, sum duration_s from one source by activityLevel or sleepLevel instead of summing the category values.
Daily summaries are timestamped at noon
Resting heart rate, VO2 max, and skin temperature have one value per day. Their timestamp is 12:00 on that day, in the time zone the participant's phone was set to when the data was fetched. The timestamp column shows this in UTC, for example 2026-09-15T10:00:00Z for a participant in Germany during summer time.
Sleep-based signals need a worn device
Heart rate variability, breathing rate, SpO2, and skin temperature are measured only during the participant's main sleep, and only on compatible wearables. Expect gaps on nights when participants didn't wear their device, slept only briefly, or took a nap instead.
Coded values
Some columns use codes instead of text:
| Column | Codes |
|---|---|
sleepLevel | Exported as text: wake, light, deep, rem |
heartRateZone | 0 = unspecified, 1 = fat burn, 2 = cardio, 3 = peak |
activityLevel | 0 = sedentary, 1 = lightly active, 2 = moderately active, 3 = very active |
vo2max_cardioFitnessLevel | 1 = poor, 2 = fair, 3 = average, 4 = good, 5 = very good, 6 = excellent, no_data = Google didn't provide the value |
vo2max_isEstimated | 1 = estimated by Google, 0 = not estimated, no_data = Google didn't provide the value |