The following table contains the full list of data types, with several columns to help you understand the representation of each type in the Google Health API, as well as the scope each is available under.
Data typedataType
filter parameter |
Record type |
Available operations |
Scope | Webhook support |
True zeros support |
|---|---|---|---|---|---|
Active Energy Burned
active-energy-burnedactive_energy_burnedCalories and energy guide |
Interval | list, reconcile, rollup, dailyRollup | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
Active Minutes
active-minutesactive_minutesCompatible devices
|
Interval | list, reconcile, rollup, dailyRollup | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
Active Zone Minutes
active-zone-minutesactive_zone_minutesCompatible devices
|
Interval | list, reconcile, rollup, dailyRollup | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
Activity Level
activity-levelactivity_level |
Interval | list, reconcile | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
Altitude
altitudealtitude |
Interval | list, reconcile, rollup, dailyRollup | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
Blood Glucose
blood-glucoseblood_glucoseVitals guide |
Sample | list, get, reconcile, rollup, dailyRollup | .health_metrics_and_measurements.readonly.health_metrics_and_measurements.writeonly |
||
Body Fat
body-fatbody_fatCompatible devices
|
Sample | list, get, reconcile, rollup, dailyRollup, create, update, batchDelete | .health_metrics_and_measurements.readonly.health_metrics_and_measurements.writeonly |
||
Calories In Heart Rate Zone
calories-in-heart-rate-zonecalories_in_heart_rate_zone |
Interval | rollup, dailyRollup | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
Core Body Temperature
core-body-temperaturecore_body_temperatureVitals guide |
Sample | list, get, reconcile, rollup, dailyRollup | .health_metrics_and_measurements.readonly.health_metrics_and_measurements.writeonly |
||
Daily Heart Rate Variability
daily-heart-rate-variabilitydaily_heart_rate_variabilityVitals guide Sleep guide Compatible devices
|
Daily | list, reconcile | .health_metrics_and_measurements.readonly.health_metrics_and_measurements.writeonly |
||
Daily Heart Rate Zones
daily-heart-rate-zonesdaily_heart_rate_zonesVitals guide |
Daily | list, reconcile | .health_metrics_and_measurements.readonly.health_metrics_and_measurements.writeonly |
||
Daily Oxygen Saturation
daily-oxygen-saturationdaily_oxygen_saturationVitals guide Sleep guide Compatible devices
|
Daily | list, reconcile | .health_metrics_and_measurements.readonly.health_metrics_and_measurements.writeonly |
||
Daily Respiratory Rate
daily-respiratory-ratedaily_respiratory_rateVitals guide Sleep guide Compatible devices
|
Daily | list, reconcile | .health_metrics_and_measurements.readonly.health_metrics_and_measurements.writeonly |
||
Daily Resting Heart Rate
daily-resting-heart-ratedaily_resting_heart_rateVitals guide Compatible devices
|
Daily | list, reconcile | .health_metrics_and_measurements.readonly.health_metrics_and_measurements.writeonly |
||
Daily Sleep Temperature Derivations
daily-sleep-temperature-derivationsdaily_sleep_temperature_derivationsVitals guide Sleep guide Compatible devices
|
Daily | list, reconcile | .health_metrics_and_measurements.readonly.health_metrics_and_measurements.writeonly |
||
Daily VO2 Max
daily-vo2-maxdaily_vo2_maxCompatible devices
|
Daily | list, reconcile | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
Distance
distancedistanceCompatible devices
|
Interval | list, reconcile, rollup, dailyRollup | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
Electrocardiogram (ECG)
electrocardiogramelectrocardiogramVitals guide Compatible devices
|
Session | list | .ecg.readonly |
||
Exercise
exerciseexerciseWorkouts guide Compatible devices
|
Session | list, get, reconcile, create, update, batchDelete | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
Floors
floorsfloors |
Interval | reconcile, rollup, dailyRollup | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
Food
foodfoodNutrition guide |
Food | list, get | .nutrition.readonly.nutrition.writeonly |
||
Food Measurement Unit
food-measurement-unitfood_measurement_unitNutrition guide Compatible devices
|
Food | list, get | .nutrition.readonly.nutrition.writeonly |
||
Heart Rate
heart-rateheart_rateVitals guide Compatible devices
|
Sample | list, reconcile, rollup, dailyRollup | .health_metrics_and_measurements.readonly.health_metrics_and_measurements.writeonly |
||
Heart Rate Variability
heart-rate-variabilityheart_rate_variabilityVitals guide Sleep guide Compatible devices
|
Sample | list, reconcile | .health_metrics_and_measurements.readonly.health_metrics_and_measurements.writeonly |
||
Height
heightheight |
Sample | list, get, reconcile, create, update, batchDelete | .health_metrics_and_measurements.readonly.health_metrics_and_measurements.writeonly |
||
Hydration Log
hydration-loghydration_log |
Session | list, get, reconcile, rollup, dailyRollup, create, update, batchDelete | .nutrition.readonly.nutrition.writeonly |
||
Irregular Rhythm Notification
irregular-rhythm-notificationirregular_rhythm_notificationVitals guide |
Session | list | .irn.readonly |
||
Menstrual Period
menstrual-periodmenstrual_period |
Interval | create, update, batchDelete | .reproductive_health.writeonly |
||
Moods
moodsmoods |
Sample | create, update, batchDelete | .mindfulness.writeonly |
||
Nutrition Log
nutrition-lognutrition_logNutrition guide Compatible devices
|
Sample | list, get, reconcile, rollup, dailyRollup, create, update, batchDelete | .nutrition.readonly.nutrition.writeonly |
||
Ovulation Test
ovulation-testovulation_test |
Sample | create, update, batchDelete | .reproductive_health.writeonly |
||
Oxygen Saturation
oxygen-saturationoxygen_saturationVitals guide Sleep guide Compatible devices
|
Sample | list, reconcile | .health_metrics_and_measurements.readonly.health_metrics_and_measurements.writeonly |
||
Respiratory Rate Sleep Summary
respiratory-rate-sleep-summaryrespiratory_rate_sleep_summaryVitals guide Sleep guide Compatible devices
|
Sample | list, reconcile | .health_metrics_and_measurements.readonly.health_metrics_and_measurements.writeonly |
||
Run VO2 Max
run-vo2-maxrun_vo2_maxCompatible devices
|
Sample | list, reconcile, rollup, dailyRollup | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
Sedentary Period
sedentary-periodsedentary_periodCompatible devices
|
Interval | list, reconcile, rollup, dailyRollup | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
Sleep
sleepsleepSleep guide Compatible devices
|
Session | list, get, reconcile, create, update, batchDelete | .sleep.readonly.sleep.writeonly |
||
Steps
stepsstepsSteps guide Compatible devices
|
Interval | list, reconcile, rollup, dailyRollup | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
Swim Lengths Data
swim-lengths-dataswim_lengths_dataCompatible devices
|
Interval | list, reconcile, rollup, dailyRollup | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
Symptoms
symptomssymptoms |
Sample | create, update, batchDelete | .logged_symptoms.writeonly |
||
Time in Heart Rate Zone
time-in-heart-rate-zonetime_in_heart_rate_zone |
Interval | list, reconcile, rollup, dailyRollup | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
Total Calories
total-caloriestotal_caloriesCalories and energy guide Compatible devices
|
Interval | rollup, dailyRollup | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
VO2 Max
vo2-maxvo2_maxCompatible devices
|
Sample | list, reconcile | .activity_and_fitness.readonly.activity_and_fitness.writeonly |
||
Weight
weightweightCompatible devices
|
Sample | list, get, reconcile, rollup, dailyRollup, create, update, batchDelete | .health_metrics_and_measurements.readonly.health_metrics_and_measurements.writeonly |
Query constraints
When querying data points, rollups, or daily rollups from the API, keep the following constraints in mind:
- Filter requirements: Some read-only derived data types, such as
total-calories, require a filter specifying an interval start time (using physical or civil time). - Query range limits: Rollup and daily rollup aggregation endpoints
enforce maximum query range limits based on the data type:
- A maximum query range of 14 days for
calories-in-heart-rate-zone,heart-rate,active-minutes, andtotal-calories. - A maximum query range of 90 days for all other data types.
- A maximum query range of 14 days for
Data availability
Updates to the user's data is only available after they sync their activity tracker or manually enter new data into the Fitbit mobile or web app. The Fitbit device and Fitbit mobile app can automatically sync every 15 minutes when the Fitbit app is open on the mobile device and the two have an active data connection and are within Bluetooth range. If the user is tracking activity using MobileTrack, MobileTrack syncs every hour as long as the app is open.
Querying historical data
One of the core benefits of the Google Health API is the ability to track a user's performance and monitor their health vitals over long periods of time. You can query a user's data as far back as it has been recorded; the API imposes no limitations or restrictions on the amount of historical data your application can consume.
However, querying historical data is still governed by standard rate limits. To manage system stability and prevent excessive payloads, the Google Health API uses automatic pagination with endpoint-specific page sizes. Note the following boundaries and behavior:
- Automatic pagination: If you query a long span of data, the
API will only return the first page of results up to the page size cap for that
endpoint, along with a
nextPageToken. You must use thenextPageTokento request subsequent pages. - Variable page sizes: Capping limits depend on the endpoint
and data type. For most data types, page sizes are capped at a maximum of 10,000.
However, for certain data types like
exerciseandsleep, the default and maximum page size is capped at 25. For example, if a client requests all sleep data for the past 10 years, the API will still return only 25 sleep sessions on the first page. - Rollup date range restrictions: For data rollup and aggregation endpoints
(such as
rollUpanddailyRollUp), query date ranges are restricted based on the data type:- A maximum range of 14 days for
calories-in-heart-rate-zone,heart-rate,active-minutes, andtotal-calories. - A maximum range of 90 days for all other rollup data types.
- A maximum range of 14 days for
Depending on the volume of historical data your application needs, retrieving the entire dataset will require paginating through the pages sequentially. Keep this in mind when designing your application's data synchronization process.
To ensure optimal performance and avoid API errors, follow these guidelines when querying historical data:
Phased data sync (hot versus cold load)
- Initial "hot" load: Fetch and render only the most recent 7–14 days of data during the primary load sequence. This ensures that users see data immediately without waiting for long-running queries.
- Background "cold" load: Delegate older historical data retrieval to an asynchronous, lower-priority queue or background process after the primary UI is rendered.
Query chunking for aggregation
- Because rollup and daily rollup endpoints enforce a maximum date range limit (14 or 90 days depending on the data type), you must break down large historical aggregation queries into smaller, sequential intervals within these limits.
- Batch or sequence these sub-queries safely to respect concurrency limits and maintain steady UI progress indicators.
Leverage pre-aggregated roll-ups
Restructure overview dashboards and trend charts to use pre-aggregated,
summary endpoints (such as DailyRollUpDataPoints). This will
drastically reduce compute overhead on the backend and network transfer time to
the client.
Resilient error handling (smart retries)
- Implement strict exponential backoff handling when encountering rate
limits (
429 Too Many Requests) and server gateway timeouts (504 Gateway Timeout). Never retry large, failed payloads immediately. Instant retries multiply backend congestion and compound system degradation.
Third-party access
Fitbit devices can't communicate directly with third-party applications or services. These devices are designed to communicate and synchronize exclusively with the Fitbit mobile app.
The device syncs data automatically throughout the day, whenever the Fitbit app is open, or every 15 minutes if Bluetooth is active and the app is running in the background. Once this synchronization process is complete, the data is then available for third-party services through the Google Health API.
Distance standards
Exercise distances, such as elevationGainMillimeters, are measured in
millimeters as the standard unit for the following reasons:
- Maintaining Data Precision: The most important reason for using millimeters is to ensure we don't lose any precision in the data we read and provide. Using a fine-grained unit like millimeters allows us to represent measurements with high accuracy.
- Standardization: Millimeters are the designed standardized unit across our services. This consistency helps ensure a uniform experience for developers interacting with different parts of the API.
- Broad Measurement System Support: Using a base unit like millimeters makes it straightforward for developers to convert to any other chosen unit, regardless of whether they are working with metric, imperial, or other measurement systems.
Variable day lengths
Time handling by the Health API prioritize the user's time to account for variable day lengths caused by Daylight Savings Time or travel. Every data point is stored with both a physical UTC timestamp and the UTC offset active at the time of the event. This allows the system to:
- Map the event to a precise physical instant.
- Correct the time to the user's local context for aggregation.
Daylight Savings Time
When Daylight Savings Time happens, a "fall back" results in a 25-hour civil day, and the rollup for that date will contain 25 hours of data. A "spring forward" results in a 23-hour civil day where the time moves back to Standard Time.
Travel
Travel across time zones can cause even more significant variations in the physical duration of a single civil day.
Use the dailyRollUp endpoint to reconcile time zone differences. It
automatically attributes data to the calendar day on which it was recorded
according to the user's local time, effectively "stitching" the day together
despite time zone shifts.