- Resource: DataPoint
- Steps
- ObservationTimeInterval
- CivilDateTime
- Date
- TimeOfDay
- Floors
- HeartRate
- ObservationSampleTime
- HeartRate.HeartRateMetadata
- HeartRate.HeartRateMetadata.MotionContext
- HeartRate.HeartRateMetadata.SensorLocation
- Sleep
- SessionTimeInterval
- Sleep.SleepType
- Sleep.SleepStage
- Sleep.SleepStageType
- Sleep.OutOfBedSegment
- Sleep.SleepMetadata
- Sleep.SleepMetadata.StagesState
- Sleep.SleepSummary
- Sleep.SleepSummary.StageSummary
- DailyRestingHeartRate
- DailyRestingHeartRate.DailyRestingHeartRateMetadata
- DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod
- DailyHeartRateVariability
- Exercise
- Exercise.ExerciseType
- Exercise.SplitSummary
- MetricsSummary
- MetricsSummary.TimeInHeartRateZones
- MetricsSummary.MobilityMetrics
- Exercise.SplitSummary.SplitType
- Exercise.ExerciseEvent
- Exercise.ExerciseEvent.ExerciseEventType
- Exercise.ExerciseMetadata
- Weight
- Altitude
- Distance
- BodyFat
- ActiveZoneMinutes
- ActiveZoneMinutes.HeartRateZone
- HeartRateVariability
- DailySleepTemperatureDerivations
- SedentaryPeriod
- RunVO2Max
- OxygenSaturation
- DailyOxygenSaturation
- ActivityLevel
- ActivityLevel.ActivityLevelType
- VO2Max
- VO2Max.MeasurementMethod
- DailyVO2Max
- DailyVO2Max.CardioFitnessLevel
- NutritionLog
- NutrientQuantity
- WeightQuantity
- WeightUnit
- Nutrient
- EnergyQuantity
- EnergyUnit
- MealType
- NutritionLog.Serving
- IrregularRhythmNotification
- IrregularRhythmNotification.AlertWindow
- IrregularRhythmNotification.HeartBeat
- MedicalDeviceInfo
- Electrocardiogram
- Electrocardiogram.ResultClassification
- DailyHeartRateZones
- DailyHeartRateZones.HeartRateZone
- HeartRateZoneType
- HydrationLog
- VolumeQuantity
- VolumeUnit
- Food
- FoodAccessLevel
- Food.FoodServing
- TimeInHeartRateZone
- ActiveMinutes
- ActiveMinutes.ActiveMinutesByActivityLevel
- ActiveMinutes.ActivityLevel
- RespiratoryRateSleepSummary
- RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics
- DailyRespiratoryRate
- SwimLengthsData
- SwimLengthsData.SwimStrokeType
- Height
- CoreBodyTemperature
- CoreBodyTemperature.MeasurementLocation
- ActiveEnergyBurned
- FoodMeasurementUnit
- BloodGlucose
- BloodGlucose.MeasurementSource
- BloodGlucose.MealType
- BloodGlucose.MeasurementTiming
- BloodGlucose.Specimen
- DataSource
- DataSource.RecordingMethod
- DataSource.Device
- DataSource.Device.FormFactor
- DataSource.Application
- DataSource.Platform
- Methods
Resource: DataPoint
A computed or recorded metric.
| JSON representation |
|---|
{ "name": string, "dataSource": { object ( |
| Fields | |
|---|---|
name |
Identifier. Data point name, only supported for the subset of identifiable data types. For the majority of the data types, individual data points do not need to be identified and this field would be empty. Format: Example: The The The |
dataSource |
Optional. Data source information for the metric |
Union field data. Data type component in the name field will always correspond to the data field set. These messages represent the data payload for each data type and are embedded within the DataPoint resource. They are not standalone resources themselves. Unless otherwise noted, data types will exclude data points that are identified as recorded by wearables in intervals when they were not actually worn. data can be only one of the following: |
|
steps |
Optional. Data for points in the |
floors |
Optional. Data for points in the |
heartRate |
Optional. Data for points in the |
sleep |
Optional. Data for points in the |
dailyRestingHeartRate |
Optional. Data for points in the |
dailyHeartRateVariability |
Optional. Data for points in the |
exercise |
Optional. Data for points in the |
weight |
Optional. Data for points in the |
altitude |
Optional. Data for points in the |
distance |
Optional. Data for points in the |
bodyFat |
Optional. Data for points in the |
activeZoneMinutes |
Optional. Data for points in the |
heartRateVariability |
Optional. Data for points in the |
dailySleepTemperatureDerivations |
Optional. Data for points in the |
sedentaryPeriod |
Optional. Data for points in the |
runVo2Max |
Optional. Data for points in the |
oxygenSaturation |
Optional. Data for points in the |
dailyOxygenSaturation |
Optional. Data for points in the |
activityLevel |
Optional. Data for points in the |
vo2Max |
Optional. Data for points in the |
dailyVo2Max |
Optional. Data for points in the |
nutritionLog |
Optional. Data for points in the |
irregularRhythmNotification |
Optional. Data for points in the |
electrocardiogram |
Optional. Data for points in the |
dailyHeartRateZones |
Optional. Data for points in the |
hydrationLog |
Optional. Data for points in the |
food |
Optional. The food details. |
timeInHeartRateZone |
Optional. Data for points in the |
activeMinutes |
Optional. Data for points in the |
respiratoryRateSleepSummary |
Optional. Data for points in the |
dailyRespiratoryRate |
Optional. Data for points in the |
swimLengthsData |
Optional. Data for points in the |
height |
Optional. Data for points in the |
coreBodyTemperature |
Optional. Data for points in the |
activeEnergyBurned |
Optional. Data for points in the |
foodMeasurementUnit |
Optional. The food measurement unit details. |
bloodGlucose |
Optional. Data for points in the |
Steps
Step count over the time interval.
| JSON representation |
|---|
{
"interval": {
object ( |
| Fields | |
|---|---|
interval |
Required. Observed interval. |
count |
Required. Number of steps in the recorded interval. |
ObservationTimeInterval
Represents a time interval of an observed data point.
| JSON representation |
|---|
{ "startTime": string, "startUtcOffset": string, "endTime": string, "endUtcOffset": string, "civilStartTime": { object ( |
| Fields | |
|---|---|
startTime |
Required. Observed interval start time. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
startUtcOffset |
Required. The offset of the user's local time at the start of the observation relative to the Coordinated Universal Time (UTC). A duration in seconds with up to nine fractional digits, ending with ' |
endTime |
Required. Observed interval end time. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endUtcOffset |
Required. The offset of the user's local time at the end of the observation relative to the Coordinated Universal Time (UTC). A duration in seconds with up to nine fractional digits, ending with ' |
civilStartTime |
Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval |
civilEndTime |
Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval |
CivilDateTime
Civil time representation similar to google.type.DateTime, but ensures that neither the timezone nor the UTC offset can be set to avoid confusion between civil and physical time queries.
| JSON representation |
|---|
{ "date": { object ( |
| Fields | |
|---|---|
date |
Required. Calendar date. |
time |
Optional. Time of day. Defaults to the start of the day, at midnight if omitted. |
Date
Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following:
- A full date, with non-zero year, month, and day values.
- A month and day, with a zero year (for example, an anniversary).
- A year on its own, with a zero month and a zero day.
- A year and month, with a zero day (for example, a credit card expiration date).
Related types:
google.type.TimeOfDaygoogle.type.DateTimegoogle.protobuf.Timestamp
| JSON representation |
|---|
{ "year": integer, "month": integer, "day": integer } |
| Fields | |
|---|---|
year |
Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. |
month |
Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. |
day |
Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. |
TimeOfDay
Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and google.protobuf.Timestamp.
| JSON representation |
|---|
{ "hours": integer, "minutes": integer, "seconds": integer, "nanos": integer } |
| Fields | |
|---|---|
hours |
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. |
minutes |
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59. |
seconds |
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds. |
nanos |
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999. |
Floors
Gained elevation measured in floors over the time interval
| JSON representation |
|---|
{
"interval": {
object ( |
| Fields | |
|---|---|
interval |
Required. Observed interval |
count |
Required. Number of floors in the recorded interval |
HeartRate
A heart rate measurement.
| JSON representation |
|---|
{ "sampleTime": { object ( |
| Fields | |
|---|---|
sampleTime |
Required. Observation time |
metadata |
Optional. Metadata about the heart rate sample. |
beatsPerMinute |
Required. The heart rate value in beats per minute. |
ObservationSampleTime
Represents a sample time of an observed data point.
| JSON representation |
|---|
{
"physicalTime": string,
"utcOffset": string,
"civilTime": {
object ( |
| Fields | |
|---|---|
physicalTime |
Required. The time of the observation. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
utcOffset |
Required. The offset of the user's local time during the observation relative to the Coordinated Universal Time (UTC). A duration in seconds with up to nine fractional digits, ending with ' |
civilTime |
Output only. The civil time in the timezone the subject is in at the time of the observation. |
HeartRate.HeartRateMetadata
Heart rate metadata.
| JSON representation |
|---|
{ "motionContext": enum ( |
| Fields | |
|---|---|
motionContext |
Optional. Indicates the user’s level of activity when the heart rate sample was measured |
sensorLocation |
Optional. Indicates the location of the sensor that measured the heart rate. |
HeartRate.HeartRateMetadata.MotionContext
The user’s level of activity when the heart rate sample was measured.
| Enums | |
|---|---|
MOTION_CONTEXT_UNSPECIFIED |
The default value when no data is available. |
ACTIVE |
The user is active. |
SEDENTARY |
The user is inactive. |
HeartRate.HeartRateMetadata.SensorLocation
The location of the sensor that measured the heart rate.
| Enums | |
|---|---|
SENSOR_LOCATION_UNSPECIFIED |
The default value when no data is available. |
CHEST |
Chest sensor. |
WRIST |
Wrist sensor. |
FINGER |
Finger sensor. |
HAND |
Hand sensor. |
EAR_LOBE |
Ear lobe sensor. |
FOOT |
Foot sensor. |
Sleep
A sleep session possibly including stages.
| JSON representation |
|---|
{ "interval": { object ( |
| Fields | |
|---|---|
interval |
Required. Observed sleep interval. |
type |
Optional. SleepType: classic or stages. |
stages[] |
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period. |
outOfBedSegments[] |
Optional. “Out of bed” segments that can overlap with sleep stages. |
metadata |
Optional. Sleep metadata: processing, main, manually edited, stages status. |
summary |
Output only. Sleep summary: metrics and stages summary. |
createTime |
Output only. Creation time of this sleep observation. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. Last update time of this sleep observation. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
SessionTimeInterval
Represents a time interval of session data point, which bundles multiple observed metrics together.
| JSON representation |
|---|
{ "startTime": string, "startUtcOffset": string, "endTime": string, "endUtcOffset": string, "civilStartTime": { object ( |
| Fields | |
|---|---|
startTime |
Required. The start time of the observed session. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
startUtcOffset |
Required. The offset of the user's local time at the start of the session relative to the Coordinated Universal Time (UTC). A duration in seconds with up to nine fractional digits, ending with ' |
endTime |
Required. The end time of the observed session. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endUtcOffset |
Required. The offset of the user's local time at the end of the session relative to the Coordinated Universal Time (UTC). A duration in seconds with up to nine fractional digits, ending with ' |
civilStartTime |
Output only. Session start time in civil time in the timezone the subject is in at the start of the session. |
civilEndTime |
Output only. Session end time in civil time in the timezone the subject is in at the end of the session. |
Sleep.SleepType
Sleep type: classic or stages.
| Enums | |
|---|---|
SLEEP_TYPE_UNSPECIFIED |
Sleep type is unspecified. |
CLASSIC |
Classic sleep is a sleep with 3 stages types: AWAKE, RESTLESS and ASLEEP. |
STAGES |
On top of "classic" sleep stages an additional processing pass can calculate stages more precisely, overwriting the prior stages with AWAKE, LIGHT, REM and DEEP. |
Sleep.SleepStage
Sleep stage segment.
| JSON representation |
|---|
{
"startTime": string,
"startUtcOffset": string,
"endTime": string,
"endUtcOffset": string,
"type": enum ( |
| Fields | |
|---|---|
startTime |
Required. Sleep stage start time. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
startUtcOffset |
Required. The offset of the user's local time at the start of the sleep stage relative to the Coordinated Universal Time (UTC). A duration in seconds with up to nine fractional digits, ending with ' |
endTime |
Required. Sleep stage end time. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endUtcOffset |
Required. The offset of the user's local time at the end of the sleep stage relative to the Coordinated Universal Time (UTC). A duration in seconds with up to nine fractional digits, ending with ' |
type |
Required. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc. |
createTime |
Output only. Creation time of this sleep stages segment. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. Last update time of this sleep stages segment. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Sleep.SleepStageType
Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
| Enums | |
|---|---|
SLEEP_STAGE_TYPE_UNSPECIFIED |
The default unset value. |
AWAKE |
Sleep stage AWAKE. |
LIGHT |
Sleep stage LIGHT. |
DEEP |
Sleep stage DEEP. |
REM |
Sleep stage REM. |
ASLEEP |
Sleep stage ASLEEP. |
RESTLESS |
Sleep stage RESTLESS. |
Sleep.OutOfBedSegment
A time interval to represent an out-of-bed segment.
| JSON representation |
|---|
{ "startTime": string, "startUtcOffset": string, "endTime": string, "endUtcOffset": string } |
| Fields | |
|---|---|
startTime |
Required. Segment tart time. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
startUtcOffset |
Required. The offset of the user's local time at the start of the segment relative to the Coordinated Universal Time (UTC). A duration in seconds with up to nine fractional digits, ending with ' |
endTime |
Required. Segment end time. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endUtcOffset |
Required. The offset of the user's local time at the end of the segment relative to the Coordinated Universal Time (UTC). A duration in seconds with up to nine fractional digits, ending with ' |
Sleep.SleepMetadata
Additional information about how the sleep was processed.
| JSON representation |
|---|
{
"stagesStatus": enum ( |
| Fields | |
|---|---|
stagesStatus |
Output only. Sleep stages algorithm processing status. |
processed |
Output only. Sleep and sleep stages algorithms finished processing. |
nap |
Output only. Naps are sleeps without stages and relatively short durations. |
manuallyEdited |
Output only. Some sleeps autodetected by algorithms can be manually edited by users. |
externalId |
Optional. Sleep identifier relevant in the context of the data source. |
Sleep.SleepMetadata.StagesState
Sleep stages algorithm processing status.
| Enums | |
|---|---|
STAGES_STATE_UNSPECIFIED |
Output only. Sleep stages status is unspecified. |
REJECTED_COVERAGE |
Output only. Sleep stages cannot be computed due to low RR coverage. |
REJECTED_MAX_GAP |
Output only. Sleep stages cannot be computed due to the large middle gap (2h). |
REJECTED_START_GAP |
Output only. Sleep stages cannot be computed due to the large start gap (1h). |
REJECTED_END_GAP |
Output only. Sleep stages cannot be computed due to the large end gap (1h). |
REJECTED_NAP |
Output only. Sleep stages cannot be computed because the sleep log is a nap (has < 3h duration). |
REJECTED_SERVER |
Output only. Sleep stages cannot be computed because input data is not available (PPGV2, wake magnitude, etc). |
TIMEOUT |
Output only. Sleep stages cannot be computed due to server timeout. |
SUCCEEDED |
Output only. Sleep stages successfully computed. |
PROCESSING_INTERNAL_ERROR |
Output only. Sleep stages cannot be computed due to server internal error. |
Sleep.SleepSummary
Sleep summary: metrics and stages summary.
| JSON representation |
|---|
{
"stagesSummary": [
{
object ( |
| Fields | |
|---|---|
stagesSummary[] |
Output only. List of summaries (total duration and segment count) per each sleep stage type. |
minutesInSleepPeriod |
Output only. Delta between wake time and bedtime. It is the sum of all stages. |
minutesAfterWakeUp |
Output only. Minutes after wake up calculated by restlessness algorithm. |
minutesToFallAsleep |
Output only. Minutes to fall asleep calculated by restlessness algorithm. |
minutesAsleep |
Output only. Total number of minutes asleep. For classic sleep it is the sum of ASLEEP stages (excluding AWAKE and RESTLESS). For "stages" sleep it is the sum of LIGHT, REM and DEEP stages (excluding AWAKE). |
minutesAwake |
Output only. Total number of minutes awake. It is a sum of all AWAKE stages. |
Sleep.SleepSummary.StageSummary
Total duration and segment count for a stage.
| JSON representation |
|---|
{
"type": enum ( |
| Fields | |
|---|---|
type |
Output only. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc. |
minutes |
Output only. Total duration in minutes of a sleep stage. |
count |
Output only. Number of sleep stages segments. |
DailyRestingHeartRate
Measures the daily resting heart rate for a user, calculated using the all day heart rate measurements.
| JSON representation |
|---|
{ "date": { object ( |
| Fields | |
|---|---|
date |
Required. Date (in the user's timezone) of the resting heart rate measurement. |
dailyRestingHeartRateMetadata |
Optional. Metadata for the daily resting heart rate. |
beatsPerMinute |
Required. The resting heart rate value in beats per minute. |
DailyRestingHeartRate.DailyRestingHeartRateMetadata
Metadata for the daily resting heart rate.
| JSON representation |
|---|
{
"calculationMethod": enum ( |
| Fields | |
|---|---|
calculationMethod |
Required. The method used to calculate the resting heart rate. |
DailyRestingHeartRate.DailyRestingHeartRateMetadata.CalculationMethod
The method used to calculate the resting heart rate.
| Enums | |
|---|---|
CALCULATION_METHOD_UNSPECIFIED |
The calculation method is unspecified. |
WITH_SLEEP |
The resting heart rate is calculated using the sleep data. |
ONLY_WITH_AWAKE_DATA |
The resting heart rate is calculated using only awake data. |
DailyHeartRateVariability
Represents the daily heart rate variability data type.
At least one of the following fields must be set:
averageHeartRateVariabilityMillisecondsnonRemHeartRateBeatsPerMinuteentropydeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds
| JSON representation |
|---|
{
"date": {
object ( |
| Fields | |
|---|---|
date |
Required. Date (in the user's timezone) of heart rate variability measurement. |
averageHeartRateVariabilityMilliseconds |
Optional. A user's average heart rate variability calculated using the root mean square of successive differences (RMSSD) in times between heartbeats. |
nonRemHeartRateBeatsPerMinute |
Optional. Non-REM heart rate |
entropy |
Optional. The Shanon entropy of heartbeat intervals. Entropy quantifies randomness or disorder in a system. High entropy indicates high HRV. Entropy is measured from the histogram of time interval between successive heart beats values measured during sleep. |
deepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds |
Optional. The root mean square of successive differences (RMSSD) value during deep sleep. |
Exercise
An exercise that stores information about a physical activity.
| JSON representation |
|---|
{ "interval": { object ( |
| Fields | |
|---|---|
interval |
Required. Observed exercise interval |
exerciseType |
Required. The type of activity performed during an exercise. |
splits[] |
Optional. The default split is 1 km or 1 mile. - if the movement distance is less than the default, then there are no splits - if the movement distance is greater than or equal to the default, then we have splits |
exerciseEvents[] |
Optional. Exercise events that happen during an exercise, such as pause & restarts. |
splitSummaries[] |
Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other. |
metricsSummary |
Required. Summary metrics for this exercise ( ) |
exerciseMetadata |
Optional. Additional exercise metadata. |
displayName |
Required. Exercise display name. |
activeDuration |
Optional. Duration excluding pauses. A duration in seconds with up to nine fractional digits, ending with ' |
notes |
Optional. Standard free-form notes captured at manual logging. |
updateTime |
Output only. This is the timestamp of the last update to the exercise. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
createTime |
Output only. Represents the timestamp of the creation of the exercise. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Exercise.ExerciseType
The type of activity performed during an exercise.
| Enums | |
|---|---|
EXERCISE_TYPE_UNSPECIFIED |
Exercise type is unspecified. |
RUNNING |
Running type. |
WALKING |
Walking type. |
BIKING |
Biking type. |
SWIMMING |
Swimming type. |
HIKING |
Hiking type. |
YOGA |
Yoga type. |
PILATES |
Pilates type. |
WORKOUT |
Workout type. |
HIIT |
HIIT type. |
WEIGHTLIFTING |
Weightlifting type. |
STRENGTH_TRAINING |
Strength training type. |
OTHER |
Other type. |
Exercise.SplitSummary
Represents splits or laps recorded within an exercise. Lap events partition a workout into segments based on criteria like distance, time, or calories.
| JSON representation |
|---|
{ "startTime": string, "startUtcOffset": string, "endTime": string, "endUtcOffset": string, "activeDuration": string, "metricsSummary": { object ( |
| Fields | |
|---|---|
startTime |
Required. Lap start time Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
startUtcOffset |
Required. Lap start time offset from UTC A duration in seconds with up to nine fractional digits, ending with ' |
endTime |
Required. Lap end time Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endUtcOffset |
Required. Lap end time offset from UTC A duration in seconds with up to nine fractional digits, ending with ' |
activeDuration |
Output only. Lap time excluding the pauses. A duration in seconds with up to nine fractional digits, ending with ' |
metricsSummary |
Required. Summary metrics for this split. |
splitType |
Required. Method used to split the exercise laps. Users may manually mark the lap as complete even if the tracking is automatic. |
MetricsSummary
Summary metrics for an exercise.
| JSON representation |
|---|
{ "heartRateZoneDurations": { object ( |
| Fields | |
|---|---|
heartRateZoneDurations |
Optional. Time spent in each heart rate zone. |
mobilityMetrics |
Optional. Mobility workouts specific metrics. Only present in the advanced running exercises. |
caloriesKcal |
Optional. Total calories burned by the user during the exercise. |
distanceMillimeters |
Optional. Total distance covered by the user during the exercise. |
steps |
Optional. Total steps taken during the exercise. |
averageSpeedMillimetersPerSecond |
Optional. Average speed in millimeters per second. |
averagePaceSecondsPerMeter |
Optional. Average pace in seconds per meter. |
averageHeartRateBeatsPerMinute |
Optional. Average heart rate during the exercise. |
elevationGainMillimeters |
Optional. Total elevation gain during the exercise. |
activeZoneMinutes |
Optional. Total active zone minutes for the exercise. |
runVo2Max |
Optional. Run VO2 max value for the exercise. Only present in the running exercises at the top level as in the summary of the whole exercise. |
totalSwimLengths |
Optional. Number of full pool lengths completed during the exercise. Only present in the swimming exercises at the top level as in the summary of the whole exercise. |
MetricsSummary.TimeInHeartRateZones
Time spent in each heart rate zone.
| JSON representation |
|---|
{ "lightTime": string, "moderateTime": string, "vigorousTime": string, "peakTime": string } |
| Fields | |
|---|---|
lightTime |
Optional. Time spent in light heart rate zone. A duration in seconds with up to nine fractional digits, ending with ' |
moderateTime |
Optional. Time spent in moderate heart rate zone. A duration in seconds with up to nine fractional digits, ending with ' |
vigorousTime |
Optional. Time spent in vigorous heart rate zone. A duration in seconds with up to nine fractional digits, ending with ' |
peakTime |
Optional. Time spent in peak heart rate zone. A duration in seconds with up to nine fractional digits, ending with ' |
MetricsSummary.MobilityMetrics
Mobility workouts specific metrics
| JSON representation |
|---|
{ "avgGroundContactTimeDuration": string, "avgCadenceStepsPerMinute": number, "avgStrideLengthMillimeters": string, "avgVerticalOscillationMillimeters": string, "avgVerticalRatio": number } |
| Fields | |
|---|---|
avgGroundContactTimeDuration |
Optional. The ground contact time for a particular stride is the amount of time for which the foot was in contact with the ground on that stride A duration in seconds with up to nine fractional digits, ending with ' |
avgCadenceStepsPerMinute |
Optional. Cadence is a measure of the frequency of your foot strikes. Steps / min in real time during workout. |
avgStrideLengthMillimeters |
Optional. Stride length is a measure of the distance covered by a single stride |
avgVerticalOscillationMillimeters |
Optional. Distance off the ground your center of mass moves with each stride while running |
avgVerticalRatio |
Optional. Vertical oscillation/stride length between [5.0, 11.0]. |
Exercise.SplitSummary.SplitType
The type of the split, such as manual, duration, distance, calories.
| Enums | |
|---|---|
SPLIT_TYPE_UNSPECIFIED |
Split type is unspecified. |
MANUAL |
Manual split. |
DURATION |
Split by duration. |
DISTANCE |
Split by distance. |
CALORIES |
Split by calories. |
Exercise.ExerciseEvent
Represents instantaneous events that happen during an exercise, such as start, stop, pause, split.
| JSON representation |
|---|
{
"eventTime": string,
"eventUtcOffset": string,
"exerciseEventType": enum ( |
| Fields | |
|---|---|
eventTime |
Required. Exercise event time Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
eventUtcOffset |
Required. Exercise event time offset from UTC A duration in seconds with up to nine fractional digits, ending with ' |
exerciseEventType |
Required. The type of the event, such as start, stop, pause, resume. |
Exercise.ExerciseEvent.ExerciseEventType
The type of the event, such as start, stop, pause, resume.
| Enums | |
|---|---|
EXERCISE_EVENT_TYPE_UNSPECIFIED |
Exercise event type is unspecified. |
START |
Exercise start event. |
STOP |
Exercise stop event. |
PAUSE |
Exercise pause event. |
RESUME |
Exercise resume event. |
AUTO_PAUSE |
Exercise auto-pause event. |
AUTO_RESUME |
Exercise auto-resume event. |
Exercise.ExerciseMetadata
Additional exercise metadata.
| JSON representation |
|---|
{ "hasGps": boolean, "poolLengthMillimeters": string } |
| Fields | |
|---|---|
hasGps |
Optional. Whether the exercise had GPS tracking. |
poolLengthMillimeters |
Optional. Pool length in millimeters. Only present in the swimming exercises. |
Weight
Body weight measurement.
| JSON representation |
|---|
{
"sampleTime": {
object ( |
| Fields | |
|---|---|
sampleTime |
Required. The time at which the weight was measured |
notes |
Optional. Standard free-form notes captured at manual logging. |
weightGrams |
Required. Weight of a user in grams. |
Altitude
Captures the altitude gain (i.e. deltas), and not level above sea, for a user in millimeters.
| JSON representation |
|---|
{
"interval": {
object ( |
| Fields | |
|---|---|
interval |
Required. Observed interval. |
gainMillimeters |
Required. Altitude gain in millimeters over the observed interval. |
Distance
Distance traveled over an interval of time.
| JSON representation |
|---|
{
"interval": {
object ( |
| Fields | |
|---|---|
interval |
Required. Observed interval. |
millimeters |
Required. Distance in millimeters over the observed interval. |
BodyFat
Body fat measurement.
| JSON representation |
|---|
{
"sampleTime": {
object ( |
| Fields | |
|---|---|
sampleTime |
Required. The time at which body fat was measured. |
percentage |
Required. Body fat percentage, in range [0, 100]. |
ActiveZoneMinutes
Record of active zone minutes in a given time interval.
| JSON representation |
|---|
{ "interval": { object ( |
| Fields | |
|---|---|
interval |
Required. Observed interval. |
heartRateZone |
Required. Heart rate zone in which the active zone minutes have been earned, in the given time interval. |
activeZoneMinutes |
Required. Number of Active Zone Minutes earned in the given time interval. Note: activeZoneMinutes equals to 1 for low intensity (fat burn) zones or 2 for high intensity zones (cardio, peak). |
ActiveZoneMinutes.HeartRateZone
Represents different heart rate zones.
| Enums | |
|---|---|
HEART_RATE_ZONE_UNSPECIFIED |
Unspecified heart rate zone. |
FAT_BURN |
The fat burn heart rate zone. |
CARDIO |
The cardio heart rate zone. |
PEAK |
The peak heart rate zone. |
HeartRateVariability
Captures user's heart rate variability (HRV) as measured by the root mean square of successive differences (RMSSD) between normal heartbeats or by standard deviation of the inter-beat intervals (SDNN).
| JSON representation |
|---|
{
"sampleTime": {
object ( |
| Fields | |
|---|---|
sampleTime |
Required. The time of the heart rate variability measurement. |
rootMeanSquareOfSuccessiveDifferencesMilliseconds |
Optional. The root mean square of successive differences between normal heartbeats. This is a measure of heart rate variability used by Google Health. |
standardDeviationMilliseconds |
Optional. The standard deviation of the heart rate variability measurement. |
DailySleepTemperatureDerivations
Provides derived sleep temperature values, calculated from skin or internal device temperature readings during sleep.
| JSON representation |
|---|
{
"date": {
object ( |
| Fields | |
|---|---|
date |
Required. Date for which the sleep temperature derivations are calculated. |
nightlyTemperatureCelsius |
Required. The user's nightly skin temperature. It is the mean of skin temperature samples taken from the user’s sleep. |
baselineTemperatureCelsius |
Optional. The user's baseline skin temperature. It is the median of the user's nightly skin temperature over the past 30 days. |
relativeNightlyStddev30dCelsius |
Optional. The standard deviation of the user’s relative nightly skin temperature (temperature - baseline) over the past 30 days. |
SedentaryPeriod
SedentaryPeriod
SedentaryPeriod data represents the periods of time that the user was sedentary (i.e. not moving while wearing the device).
| JSON representation |
|---|
{
"interval": {
object ( |
| Fields | |
|---|---|
interval |
Required. Observed interval. |
RunVO2Max
VO2 max value calculated based on the user's running activity. Value stored in ml/kg/min.
| JSON representation |
|---|
{
"sampleTime": {
object ( |
| Fields | |
|---|---|
sampleTime |
Required. The time at which the metric was measured. |
runVo2Max |
Required. Run VO2 max value in ml/kg/min. |
OxygenSaturation
Captures the user's instantaneous oxygen saturation percentage (SpO2).
| JSON representation |
|---|
{
"sampleTime": {
object ( |
| Fields | |
|---|---|
sampleTime |
Required. The time at which oxygen saturation was measured. |
percentage |
Required. The oxygen saturation percentage. Valid values are from 0 to 100. |
DailyOxygenSaturation
A daily oxygen saturation (SpO2) record. Represents the user's daily oxygen saturation summary, typically calculated during sleep.
| JSON representation |
|---|
{
"date": {
object ( |
| Fields | |
|---|---|
date |
Required. Date (in user's timezone) of the daily oxygen saturation record. |
averagePercentage |
Required. The average value of the oxygen saturation samples during the sleep. |
lowerBoundPercentage |
Required. The lower bound of the confidence interval of oxygen saturation samples during sleep. |
upperBoundPercentage |
Required. The upper bound of the confidence interval of oxygen saturation samples during sleep. |
standardDeviationPercentage |
Optional. Standard deviation of the daily oxygen saturation averages from the past 7-30 days. |
ActivityLevel
Internal type to capture activity level during a certain time interval.
| JSON representation |
|---|
{ "interval": { object ( |
| Fields | |
|---|---|
interval |
Required. Observed interval. |
activityLevelType |
Required. Activity level type in the given time interval. |
ActivityLevel.ActivityLevelType
Represents different activity level types.
| Enums | |
|---|---|
ACTIVITY_LEVEL_TYPE_UNSPECIFIED |
Unspecified activity level type. |
SEDENTARY |
Sedentary activity level. |
LIGHTLY_ACTIVE |
Lightly active activity level. |
MODERATELY_ACTIVE |
Moderately active activity level. |
VERY_ACTIVE |
Very active activity level. |
VO2Max
VO2 max measurement.
| JSON representation |
|---|
{ "sampleTime": { object ( |
| Fields | |
|---|---|
sampleTime |
Required. The time at which VO2 max was measured. |
measurementMethod |
Optional. The method used to measure the VO2 max value. |
vo2Max |
Required. VO2 max value measured as in ml consumed oxygen / kg of body weight / min. |
VO2Max.MeasurementMethod
Measurement method used to measure the VO2 max value.
| Enums | |
|---|---|
MEASUREMENT_METHOD_UNSPECIFIED |
Unspecified measurement method. |
FITBIT_RUN |
Fitbit specific, measures VO2 max rate during a run. |
GOOGLE_DEMOGRAPHIC |
Google specific, measures VO2 max rate for a user based on their demographic data. |
COOPER_TEST |
Run as far as possible for 12 minutes. Distance correlated with age and gender translates to a VO2 max value. |
HEART_RATE_RATIO |
Maximum heart rate divided by the resting heart rate, with a multiplier applied. Does not require any exercise. |
METABOLIC_CART |
Measured by a medical device called metabolic cart. |
MULTISTAGE_FITNESS_TEST |
Continuous 20m back-and-forth runs with increasing difficulty, until exhaustion. |
ROCKPORT_FITNESS_TEST |
Measured using walking exercise. |
MAX_EXERCISE |
Healthkit specific, measures VO2 max rate by monitoring exercise to the user’s physical limit. Similar to COOPER_TEST or MULTISTAGE_FITNESS_TEST. |
PREDICTION_SUB_MAX_EXERCISE |
Healthkit specific, estimates VO2 max rate based on low-intensity exercise. Similar to ROCKPORT_FITNESS_TEST. |
PREDICTION_NON_EXERCISE |
Healthkit specific, estimates VO2 max rate without any exercise. Similar to HEART_RATE_RATIO. |
OTHER |
Use when the method is not covered in this enum. |
DailyVO2Max
Contains a daily summary of the user's VO2 max (cardio fitness score), which is the maximum rate of oxygen the body can use during exercise.
| JSON representation |
|---|
{ "date": { object ( |
| Fields | |
|---|---|
date |
Required. The date for which the Daily VO2 max was measured. |
estimated |
Optional. An estimated field is added to indicate when the confidence has decreased sufficiently to consider the value an estimation. |
cardioFitnessLevel |
Optional. Represents the user's cardio fitness level based on their VO2 max. |
vo2Max |
Required. Daily VO2 max value measured as in ml consumed oxygen / kg of body weight / min. |
vo2MaxCovariance |
Optional. The covariance of the VO2 max value. |
DailyVO2Max.CardioFitnessLevel
The cardio fitness level categories.
| Enums | |
|---|---|
CARDIO_FITNESS_LEVEL_UNSPECIFIED |
Unspecified cardio fitness level. |
POOR |
Poor cardio fitness level. |
FAIR |
Fair cardio fitness level. |
AVERAGE |
Average cardio fitness level. |
GOOD |
Good cardio fitness level. |
VERY_GOOD |
Very good cardio fitness level. |
EXCELLENT |
Excellent cardio fitness level. |
NutritionLog
Holds information about a user logged food.
There are two ways of creating a nutrition log based on the food type: 1. Identified food: Using the food field, which is a reference to a Food resource. In this case fields nutrients, energy, energyFromFat, totalCarbohydrate, totalFat, foodDisplayName will be populated based on the referenced food. 2. Anonymous food: Using the foodDisplayName field and setting the nutrients, energy, energyFromFat, totalCarbohydrate, totalFat fields manually.
The identified food is preferred over the anonymous food. Nutrition logs created from anonymous food are not be editable.
| JSON representation |
|---|
{ "interval": { object ( |
| Fields | |
|---|---|
interval |
Required. Observed interval. |
nutrients[] |
Optional. Value representing the nutrients of the nutrition log. |
energy |
Optional. Value representing the energy of the nutrition log. For nutrition logs created from an identified food, this field will be populated based on the referenced food. For anonymous food, this field will be populated manually. |
energyFromFat |
Optional. Value representing the energy from fat of the nutrition log. For nutrition logs created from an identified food, this field will be populated based on the referenced food. For anonymous food, this field will be populated manually. |
totalCarbohydrate |
Optional. Value representing the total carbohydrate of the nutrition log. For nutrition logs created from an identified food, this field will be populated based on the referenced food. For anonymous food, this field will be populated manually. |
totalFat |
Optional. Value representing the total fat of the nutrition log. For nutrition logs created from an identified food, this field will be populated based on the referenced food. For anonymous food, this field will be populated manually. |
mealType |
Optional. Value representing the meal type of the nutrition log. |
serving |
Optional. Value representing the nutrition log serving. |
food |
Required. Represents the food ID. |
foodDisplayName |
Value representing the display name of the food. For nutrition logs created from an identified food, this field will be populated based on the referenced food. For anonymous food, this field will be populated manually. |
NutrientQuantity
Represents the quantity of a nutrient.
| JSON representation |
|---|
{ "quantity": { object ( |
| Fields | |
|---|---|
quantity |
Required. Value representing the quantity of the nutrient. |
nutrient |
Required. Value representing the nutrient. |
WeightQuantity
Represents the weight quantity.
| JSON representation |
|---|
{
"userProvidedUnit": enum ( |
| Fields | |
|---|---|
userProvidedUnit |
Optional. Value representing the user provided unit. |
grams |
Required. Value representing the weight in grams. |
WeightUnit
Enum representing the unit of weight.
| Enums | |
|---|---|
WEIGHT_UNIT_UNSPECIFIED |
Unspecified weight unit. |
GRAM |
Value representing gram. |
KILOGRAM |
Value representing kilogram. |
OUNCE |
Value representing ounce. |
POUND |
Value representing pound. |
STONE |
Value representing stone. |
MILLIGRAM |
Value representing milligram. |
MICROGRAM |
Value representing microgram. |
NANOGRAM |
Value representing nanogram. |
Nutrient
Holds information about a user logged food.
| Enums | |
|---|---|
NUTRIENT_UNSPECIFIED |
Unspecified nutrient. |
BIOTIN |
Value representing biotin nutrient. |
CAFFEINE |
Value representing caffeine nutrient. |
CALCIUM |
Value representing calcium nutrient. |
CHLORIDE |
Value representing chloride nutrient. |
CARBOHYDRATES |
Value representing carbohydrates nutrient. |
CHOLESTEROL |
Value representing cholesterol nutrient. |
CHROMIUM |
Value representing chromium nutrient. |
COPPER |
Value representing copper nutrient. |
DIETARY_FIBER |
Value representing dietary fiber nutrient. |
FOLIC_ACID |
Value representing folic acid nutrient. |
IODINE |
Value representing iodine nutrient. |
IRON |
Value representing iron nutrient. |
MAGNESIUM |
Value representing magnesium nutrient. |
MANGANESE |
Value representing manganese nutrient. |
MOLYBDENUM |
Value representing molybdenum nutrient. |
MONOUNSATURATED_FAT |
Value representing monounsaturated fat nutrient. |
NIACIN |
Value representing niacin nutrient. |
PANTOTHENIC_ACID |
Value representing pantothenic acid nutrient. |
PHOSPHORUS |
Value representing phosphorus nutrient. |
POLYUNSATURATED_FAT |
Value representing polyunsaturated fat nutrient. |
POTASSIUM |
Value representing potassium nutrient. |
PROTEIN |
Value representing protein nutrient. |
RIBOFLAVIN |
Value representing riboflavin nutrient. |
SATURATED_FAT |
Value representing saturated fat nutrient. |
SELENIUM |
Value representing selenium nutrient. |
SODIUM |
Value representing sodium nutrient. |
SUGAR |
Value representing sugar nutrient. |
THIAMIN |
Value representing thiamin nutrient. |
TRANS_FAT |
Value representing trans fat nutrient. |
UNSATURATED_FAT |
Value representing unsaturated fat nutrient. |
VITAMIN_A |
Value representing vitamin A nutrient. |
VITAMIN_B12 |
Value representing vitamin B12 nutrient. |
VITAMIN_B6 |
Value representing vitamin B6 nutrient. |
VITAMIN_C |
Value representing vitamin C nutrient. |
VITAMIN_D |
Value representing vitamin D nutrient. |
VITAMIN_E |
Value representing vitamin E nutrient. |
VITAMIN_K |
Value representing vitamin K nutrient. |
ZINC |
Value representing zinc nutrient. |
FOLATE |
Value representing folate nutrient. |
EnergyQuantity
Represents the energy quantity.
| JSON representation |
|---|
{
"userProvidedUnit": enum ( |
| Fields | |
|---|---|
userProvidedUnit |
Optional. Value representing the user provided unit. |
kcal |
Required. Value representing the energy in kilocalories. |
EnergyUnit
Enum representing the unit of energy.
| Enums | |
|---|---|
ENERGY_UNIT_UNSPECIFIED |
Unspecified energy unit. |
JOULE |
Value representing joule. |
KILOJOULE |
Value representing kilojoule. |
KILOCALORIE |
Value representing kilocalorie. |
SMALL_CALORIE |
Value representing small calorie. |
CALORIE |
Value representing calorie. |
MealType
Enum representing the meal type.
| Enums | |
|---|---|
MEAL_TYPE_UNSPECIFIED |
Unspecified meal type. |
BEFORE_BREAKFAST |
Value representing a meal before breakfast. |
BREAKFAST |
Value representing a breakfast. |
BEFORE_LUNCH |
Value representing a morning snack. |
LUNCH |
Value representing a lunch. |
BEFORE_DINNER |
Value representing an afternoon snack. |
DINNER |
Value representing dinner. |
AFTER_DINNER |
Value representing an evening snack. |
SNACK |
Value representing any meal outside of the usual three meals per day. |
ANYTIME |
Value representing any time (legacy NA). |
NutritionLog.Serving
Represents different properties and information about the serving of a specific food.
| JSON representation |
|---|
{ "foodMeasurementUnit": string, "foodMeasurementUnitDisplayName": string, "amount": number } |
| Fields | |
|---|---|
foodMeasurementUnit |
Required. Food measurement unit |
foodMeasurementUnitDisplayName |
Output only. Legacy measurement unit for serving size in singular form (e.g. "piece", "gram"). |
amount |
Optional. Amount of food consumed, fractional values are supported. |
IrregularRhythmNotification
Represents an Irregular Rhythm Notification alert, indicating a potential sign of atrial fibrillation (AFib). This data type is based on SaMD feature and any changes to it may require additional review.
| JSON representation |
|---|
{ "interval": { object ( |
| Fields | |
|---|---|
interval |
Required. Observed interval. |
alertWindows[] |
Optional. The overlapping analysis windows that were used to evaluate rhythm for potential AFib, containing specific information about the user's heart rhythm. |
medicalDeviceInfo |
Output only. The meta information for the compatible device used to conduct the measurement. Irregular Rhythm Notification measurements typically populate |
IrregularRhythmNotification.AlertWindow
An analysis window evaluated for AFib.
Note: The current version of the algorithm will only produce alerts if all windows are positive. So anything returned from the API will always have the positive bit set to true. Internally, windows can be negative, however. We never save "inconclusive" windows (they aren't produced by the algorithm).
| JSON representation |
|---|
{ "startTime": string, "startUtcOffset": string, "endTime": string, "endUtcOffset": string, "civilStartTime": { object ( |
| Fields | |
|---|---|
startTime |
Required. Observed interval. The start time of the analysis window. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
startUtcOffset |
Required. The UTC offset of the user's timezone when the analysis window started. A duration in seconds with up to nine fractional digits, ending with ' |
endTime |
Required. The end time of the analysis window. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endUtcOffset |
Required. The UTC offset of the user's timezone when the analysis window ended. A duration in seconds with up to nine fractional digits, ending with ' |
civilStartTime |
Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval |
civilEndTime |
Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval |
positive |
Optional. Flag indicating whether the window was positive for AFib or not. A |
heartBeats[] |
Optional. All heart beats in the interval contained in this analysis window. |
IrregularRhythmNotification.HeartBeat
A single heart beat measurement.
| JSON representation |
|---|
{
"physicalTime": string,
"utcOffset": string,
"civilTime": {
object ( |
| Fields | |
|---|---|
physicalTime |
Required. The time of the heart beat measurement. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
utcOffset |
Required. The UTC offset of the user's timezone when the heart beat measurement occurred. A duration in seconds with up to nine fractional digits, ending with ' |
civilTime |
Output only. The civil time in the timezone the subject is in at the time of the observation. |
beatsPerMinute |
Required. The beats-per-minute value extrapolated from the time before the following heart beat. This is calculated as 60000 / rr, where rr is the gap between heart beats in milliseconds (IBI - Interbeat Interval). |
MedicalDeviceInfo
Software as Medical Device (SaMD) metadata. Used to construct the Unique Device Identifier (UDI).
| JSON representation |
|---|
{ "algorithmVersion": string, "serviceVersion": string, "firmwareVersion": string, "featureVersion": string, "deviceModel": string } |
| Fields | |
|---|---|
algorithmVersion |
Output only. The algorithm version used by the feature. |
serviceVersion |
Output only. The service version used by the feature. |
firmwareVersion |
Output only. The firmware version running on the compatible device used to collect the data. |
featureVersion |
Output only. The version of the feature/app running on the device. |
deviceModel |
Output only. The model name or device type of the compatible device used to collect the data. |
Electrocardiogram
Represents an Electrocardiogram (ECG) measurement session. This data type is based on SaMD feature and any changes to it may require additional review.
| JSON representation |
|---|
{ "interval": { object ( |
| Fields | |
|---|---|
interval |
Required. Observed interval. NOTE: Historical ECG data lacks timezone offsets, so NOTE: The |
resultClassification |
Optional. The result classification of the ECG reading. |
waveformSamples[] |
Optional. An array of voltage values representing lead I ECG values. Each sample represents voltage difference in ECG graph. The first value in array corresponds to the start of the reading. |
medicalDeviceInfo |
Output only. The meta information for the compatible device used to conduct the measurement. ECG measurements typically populate |
beatsPerMinuteAvg |
Optional. Average heart rate recorded during ECG reading in beats per minute. |
samplingFrequencyHertz |
Optional. The sampling frequency of waveform samples in hertz. |
millivoltsScalingFactor |
Optional. The factor by which to divide waveform samples to get voltage in millivolts: millivolts = waveform_sample / millivoltsScalingFactor. |
leadNumber |
Optional. The number of leads used for ECG reading. |
Electrocardiogram.ResultClassification
The classification of the ECG reading rhythm.
| Enums | |
|---|---|
RESULT_CLASSIFICATION_UNSPECIFIED |
Unspecified result classification. |
NORMAL_SINUS_RHYTHM |
Heart rhythm appears normal. Corresponds to result "Normal Sinus Rhythm". |
ATRIAL_FIBRILLATION |
Signs of Atrial Fibrillation detected. Corresponds to result "Atrial Fibrillation". |
INCONCLUSIVE |
The reading is inconclusive as it could not be classified. Corresponds to result "Inconclusive". |
INCONCLUSIVE_HIGH_HEART_RATE |
The reading is inconclusive as it could not be classified because heart rate is high (>120bpm). Corresponds to result "Inconclusive: High heart rate". |
INCONCLUSIVE_LOW_HEART_RATE |
The reading is inconclusive as it could not be classified because heart rate is low (<50bpm). Corresponds to result "Inconclusive: Low heart rate". |
UNREADABLE |
The reading is unreadable. |
NOT_ANALYZED |
The reading was not analyzed. |
DailyHeartRateZones
User's heart rate zone thresholds based on the Karvonen algorithm for a specific day.
| JSON representation |
|---|
{ "date": { object ( |
| Fields | |
|---|---|
date |
Required. Date (in user's timezone) of the heart rate zones record. |
heartRateZones[] |
Required. The heart rate zones. |
DailyHeartRateZones.HeartRateZone
The heart rate zone.
| JSON representation |
|---|
{
"heartRateZoneType": enum ( |
| Fields | |
|---|---|
heartRateZoneType |
Required. The heart rate zone type. |
minBeatsPerMinute |
Required. Minimum heart rate for this zone in beats per minute. |
maxBeatsPerMinute |
Required. Maximum heart rate for this zone in beats per minute. |
HeartRateZoneType
The heart rate zone type.
| Enums | |
|---|---|
HEART_RATE_ZONE_TYPE_UNSPECIFIED |
Unspecified heart rate zone. |
LIGHT |
The light heart rate zone. |
MODERATE |
The moderate heart rate zone. |
VIGOROUS |
The vigorous heart rate zone. |
PEAK |
The peak heart rate zone. |
HydrationLog
Holds information about a user logged hydration.
| JSON representation |
|---|
{ "interval": { object ( |
| Fields | |
|---|---|
interval |
Required. Observed interval. |
amountConsumed |
Required. Amount of liquid (ex. water) consumed. |
VolumeQuantity
Represents the volume quantity.
| JSON representation |
|---|
{
"userProvidedUnit": enum ( |
| Fields | |
|---|---|
userProvidedUnit |
Optional. Value representing the user provided unit, used only for user-facing input and display purposes. In the API format, all volume quantities are converted to milliliters. |
milliliters |
Required. Value representing the volume in milliliters. |
VolumeUnit
Enum representing the unit of volume.
| Enums | |
|---|---|
VOLUME_UNIT_UNSPECIFIED |
Unspecified volume unit. |
CUP_IMPERIAL |
Cup (imperial) |
CUP_US |
Cup (US) |
FLUID_OUNCE_IMPERIAL |
Fluid ounce (imperial) |
FLUID_OUNCE_US |
Fluid ounce (US) |
LITER |
Liter |
MILLILITER |
Milliliter |
PINT_IMPERIAL |
Pint (imperial) |
PINT_US |
Pint (US) |
Food
Represents a food item.
| JSON representation |
|---|
{ "displayName": string, "brand": string, "accessLevel": enum ( |
| Fields | |
|---|---|
displayName |
Required. The display name of the food. |
brand |
Optional. The brand of the food. |
accessLevel |
Required. The access level of the food. |
description |
Optional. The description of the food. |
languageCode |
Optional. The language code where the food is available in format xx-XX. Supported values are defined in |
mealType |
Optional. The meal type associated with this food. |
nutrients[] |
Optional. Value representing the nutrients of the food for the default serving. |
energyFromFat |
Optional. Value representing the energy from fat of the food for the default serving. |
totalCarbohydrate |
Optional. Value representing the total carbohydrate of the food for the default serving. |
totalFat |
Optional. Value representing the total fat of the food for the default serving. |
energyMin |
Optional. Value representing the minimum energy of the food for the default serving. |
energyAvg |
Optional. Value representing the average energy of the food for the default serving. |
energyMax |
Optional. Value representing the maximum energy of the food for the default serving. |
defaultServing |
Required. Value representing the default serving of the food. |
servings[] |
Optional. The serving of the food. |
FoodAccessLevel
Enum representing the access level of a food item.
| Enums | |
|---|---|
FOOD_ACCESS_LEVEL_UNSPECIFIED |
Unspecified food access level. |
FOOD_ACCESS_LEVEL_PUBLIC |
Public food access level. |
FOOD_ACCESS_LEVEL_PRIVATE |
Private food access level. |
Food.FoodServing
Represents different properties and information about the serving of a specific food.
| JSON representation |
|---|
{ "foodMeasurementUnit": string, "foodMeasurementUnitDisplayName": string, "foodMeasurementUnitDisplayNamePlural": string, "multiplier": number, "amount": number } |
| Fields | |
|---|---|
foodMeasurementUnit |
Required. Food measurement unit |
foodMeasurementUnitDisplayName |
Output only. Legacy measurement unit for serving size in singular form (e.g. "piece", "gram"). |
foodMeasurementUnitDisplayNamePlural |
Output only. Legacy measurement unit for serving size in plural form (e.g. "pieces", "grams"). |
multiplier |
Optional. Value representing the multiplier used to compute the energy when using this serving instead of the default serving. |
amount |
Optional. Amount of food consumed, fractional values are supported. |
TimeInHeartRateZone
Time in heart rate zone record. It's an interval spent in specific heart rate zone.
| JSON representation |
|---|
{ "interval": { object ( |
| Fields | |
|---|---|
interval |
Required. Observed interval. |
heartRateZoneType |
Required. Heart rate zone type. |
ActiveMinutes
Record of active minutes in a given time interval.
| JSON representation |
|---|
{ "interval": { object ( |
| Fields | |
|---|---|
interval |
Required. Observed interval. |
activeMinutesByActivityLevel[] |
Required. Active minutes by activity level. At most one record per activity level is allowed. |
ActiveMinutes.ActiveMinutesByActivityLevel
Active minutes at a given activity level.
| JSON representation |
|---|
{
"activityLevel": enum ( |
| Fields | |
|---|---|
activityLevel |
Required. The level of activity. |
activeMinutes |
Required. Number of whole minutes spent in activity. |
ActiveMinutes.ActivityLevel
Activity level.
| Enums | |
|---|---|
ACTIVITY_LEVEL_UNSPECIFIED |
Activity level is unspecified. |
LIGHT |
Light activity level. |
MODERATE |
Moderate activity level. |
VIGOROUS |
Vigorous activity level. |
RespiratoryRateSleepSummary
Records respiratory rate details during sleep. Can have multiple per day if the user sleeps multiple times.
| JSON representation |
|---|
{ "sampleTime": { object ( |
| Fields | |
|---|---|
sampleTime |
Required. The time at which respiratory rate was measured. |
deepSleepStats |
Optional. Respiratory rate statistics for deep sleep. |
lightSleepStats |
Optional. Respiratory rate statistics for light sleep. |
remSleepStats |
Optional. Respiratory rate statistics for REM sleep. |
fullSleepStats |
Required. Full respiratory rate statistics. |
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics
Respiratory rate statistics for a given sleep stage.
| JSON representation |
|---|
{ "breathsPerMinute": number, "standardDeviation": number, "signalToNoise": number } |
| Fields | |
|---|---|
breathsPerMinute |
Required. Average breaths per minute. |
standardDeviation |
Optional. Standard deviation of the respiratory rate during sleep. |
signalToNoise |
Optional. How trustworthy the data is for the computation. |
DailyRespiratoryRate
A daily average respiratory rate (breaths per minute) for a day of the year. One data point per day calculated for the main sleep.
| JSON representation |
|---|
{
"date": {
object ( |
| Fields | |
|---|---|
date |
Required. The date on which the respiratory rate was measured. |
breathsPerMinute |
Required. The average number of breaths taken per minute. |
SwimLengthsData
Swim lengths data over the time interval.
| JSON representation |
|---|
{ "interval": { object ( |
| Fields | |
|---|---|
interval |
Required. Observed interval. |
swimStrokeType |
Required. Swim stroke type. |
strokeCount |
Required. Number of strokes in the lap. |
SwimLengthsData.SwimStrokeType
Swim stroke type.
| Enums | |
|---|---|
SWIM_STROKE_TYPE_UNSPECIFIED |
Swim stroke type is unspecified. |
FREESTYLE |
Freestyle swim stroke type. |
BACKSTROKE |
Backstroke swim stroke type. |
BREASTSTROKE |
Breaststroke swim stroke type. |
BUTTERFLY |
Butterfly swim stroke type. |
Height
Body height measurement.
| JSON representation |
|---|
{
"sampleTime": {
object ( |
| Fields | |
|---|---|
sampleTime |
Required. The time at which the height was recorded. |
heightMillimeters |
Required. Height of the user in millimeters. |
CoreBodyTemperature
Core body temperature measurement, distinct from peripheral body temperature, reflects the temperature of the body's internal organs.
| JSON representation |
|---|
{ "sampleTime": { object ( |
| Fields | |
|---|---|
sampleTime |
Required. The time at which core body temperature was measured. |
measurementLocation |
Optional. The location of the core body temperature measurement. |
id |
Optional. The unique identifier of the core body temperature measurement. |
temperatureCelsius |
Required. The core body temperature in Celsius. |
CoreBodyTemperature.MeasurementLocation
Measurement location for core body temperature.
| Enums | |
|---|---|
MEASUREMENT_LOCATION_UNSPECIFIED |
Measurement location is unspecified. |
OTHER |
Other measurement location. |
ARMPIT |
Armpit measurement location. |
BODY |
Body measurement location. |
EAR |
Ear measurement location. |
FINGER |
Finger measurement location. |
GASTRO_INTESTINAL |
Gastro-intestinal measurement location. |
MOUTH |
Mouth measurement location. |
RECTUM |
Rectum measurement location. |
TOE |
Toe measurement location. |
EAR_DRUM |
Ear drum measurement location. |
TEMPORAL_ARTERY |
Temporal artery measurement location. |
FOREHEAD |
Forehead measurement location. |
URINARY_BLADDER |
Urinary bladder measurement location. |
NASAL |
Nasal measurement location. |
NASOPHARYNGEAL |
Nasopharyngeal measurement location. |
WRIST |
Wrist measurement location. |
VAGINA |
Vagina measurement location. |
ActiveEnergyBurned
Energy burned as part of an activity, excluding the basal energy burn.
| JSON representation |
|---|
{
"interval": {
object ( |
| Fields | |
|---|---|
interval |
Required. Observed interval |
kcal |
Required. Energy burned during an activity, measured in kilocalories. |
FoodMeasurementUnit
Represents a food measurement unit.
| JSON representation |
|---|
{ "displayName": string, "pluralDisplayName": string } |
| Fields | |
|---|---|
displayName |
Required. The display name of the food measurement unit (e.g., "gram", "piece"). |
pluralDisplayName |
Optional. The plural display name of the food measurement unit (e.g., "grams", "pieces"). |
BloodGlucose
Represents a blood glucose level measurement. LINT: LEGACY_NAMES
| JSON representation |
|---|
{ "sampleTime": { object ( |
| Fields | |
|---|---|
sampleTime |
Required. The time at which blood glucose was measured. |
measurementSource |
Optional. Source of the measurement. |
mealType |
Optional. Meal type of the measurement. |
measurementTiming |
Optional. Timing of the measurement. |
specimen |
Optional. Type of body fluid used to measure the blood glucose. |
notes |
Optional. Standard free-form notes captured at manual logging. |
bloodGlucoseMilligramsPerDeciliter |
Required. Blood glucose level concentration in mg/dL. |
BloodGlucose.MeasurementSource
The clinical method or tool used to measure the blood glucose level.
| Enums | |
|---|---|
MEASUREMENT_SOURCE_UNSPECIFIED |
Unspecified measurement source. |
SELF_MONITORING_BLOOD_GLUCOSE |
Self-monitoring of blood glucose (Blood glucose meter) |
CONTINUOUS_GLUCOSE_MONITORING |
Continuous glucose monitoring device |
LAB_TEST |
Laboratory test |
BloodGlucose.MealType
Meal type associated with the measurement.
| Enums | |
|---|---|
MEAL_TYPE_UNSPECIFIED |
Unspecified meal type. |
BREAKFAST |
Breakfast. |
LUNCH |
Lunch. |
DINNER |
Dinner. |
SNACK |
Snack. |
BloodGlucose.MeasurementTiming
Timing of the measurement.
| Enums | |
|---|---|
MEASUREMENT_TIMING_UNSPECIFIED |
Unspecified measurement timing. |
AFTER_MEAL |
Measurement taken after meal. |
BEFORE_MEAL |
Measurement taken before meal. |
FASTING |
Measurement taken while fasting. |
GENERAL |
General measurement (not associated with a meal or time of day). |
BEFORE_BED |
Measurement taken before bed. |
OVER_NIGHT |
Measurement taken over night. |
BloodGlucose.Specimen
Type of body fluid used to measure the blood glucose.
| Enums | |
|---|---|
SPECIMEN_UNSPECIFIED |
Unspecified specimen. |
CAPILLARY_BLOOD |
Capillary blood. |
INTERSTITIAL_FLUID |
Interstitial fluid. |
PLASMA |
Plasma. |
SERUM |
Serum. |
TEARS |
Tears. |
WHOLE_BLOOD |
Whole blood. |
DataSource
Data Source definition to track the origin of data.
Each health data point, regardless of the complexity or data model (whether a simple step count or a detailed sleep session) must retain information about its source of origin (e.g. the device or app that collected it).
| JSON representation |
|---|
{ "recordingMethod": enum ( |
| Fields | |
|---|---|
recordingMethod |
Optional. Captures how the data was recorded. |
device |
Optional. Captures metadata for raw data points originating from devices. We expect this data source to be used for data points written on device sync. |
application |
Output only. Captures metadata for the application that provided this data. |
platform |
Output only. Captures the platform that uploaded the data. |
DataSource.RecordingMethod
The method by which the data was recorded.
| Enums | |
|---|---|
RECORDING_METHOD_UNSPECIFIED |
The recording method is unspecified. |
MANUAL |
The data was manually entered by the user. |
PASSIVELY_MEASURED |
The data was passively measured by a device. |
DERIVED |
The data was derived from other data, e.g., by an algorithm in the backend. |
ACTIVELY_MEASURED |
The data was actively measured by a device. |
UNKNOWN |
The recording method is unknown. This is set when the data is uploaded from a third party app that does not provide this information. |
DataSource.Device
Captures metadata about the device that recorded the measurement.
| JSON representation |
|---|
{
"formFactor": enum ( |
| Fields | |
|---|---|
formFactor |
Optional. Captures the form factor of the device. |
manufacturer |
Optional. An optional manufacturer of the device. |
displayName |
Optional. An optional name for the device. |
DataSource.Device.FormFactor
Form factor of the device, e.g. phone, watch, band, etc.
| Enums | |
|---|---|
FORM_FACTOR_UNSPECIFIED |
The form factor is unspecified. |
FITNESS_BAND |
The device is a fitness band. |
WATCH |
The device is a watch. |
PHONE |
The device is a phone. |
RING |
The device is a ring. |
CHEST_STRAP |
The device is a chest strap. |
SCALE |
The device is a scale. |
TABLET |
The device is a tablet. |
HEAD_MOUNTED |
The device is a head mounted device. |
SMART_DISPLAY |
The device is a smart display. |
DataSource.Application
Optional metadata for the application that provided this data.
| JSON representation |
|---|
{ "packageName": string, "webClientId": string, "googleWebClientId": string } |
| Fields | |
|---|---|
packageName |
Output only. A unique identifier for the mobile application that was the source of the data. This is typically the application's package name on Android (e.g., |
webClientId |
Output only. The client ID of the application that recorded the data. This ID is a legacy Fitbit API client ID, which is different from a Google OAuth client ID. Example format: |
googleWebClientId |
Output only. The Google OAuth 2.0 client ID of the web application or service that recorded the data. This is the client ID used during the Google OAuth flow to obtain user credentials. This field is system-populated when the data is uploaded from Google Web API. |
DataSource.Platform
The platform that uploaded the data. Additional values may be added in the future. Clients should be prepared to handle unknown values gracefully.
| Enums | |
|---|---|
PLATFORM_UNSPECIFIED |
The platform is unspecified. |
FITBIT |
The data was uploaded from Fitbit. |
HEALTH_CONNECT |
The data was uploaded from Health Connect. |
HEALTH_KIT |
The data was uploaded from Health Kit. |
FIT |
The data was uploaded from Google Fit. |
FITBIT_WEB_API |
The data was uploaded from Fitbit legacy Web API. |
NEST |
The data was uploaded from Nest devices. |
GOOGLE_WEB_API |
The data was uploaded from Google Health API. |
GOOGLE_PARTNER_INTEGRATION |
The data was uploaded from Google Partner Integrations. |
Methods |
|
|---|---|
|
Delete a batch of identifyable data points. |
|
Creates a single identifiable data point. |
|
Roll up data points over civil time intervals for supported data types. |
|
Exports exercise data in TCX format. |
|
Get a single identifyable data point. |
|
Query user health and fitness data points. |
|
Updates a single identifiable data point. |
|
Reconcile data points from multiple data sources into a single data stream. |
|
Roll up data points over physical time intervals for supported data types. |