Google Health API 数据类型

下表包含完整的数据类型列表,其中有多个列可帮助您了解每种类型在 Google Health API 中的表示形式,以及每种类型可用的范围。

表格:Google Health API 数据类型
数据类型
  端点 ID
  过滤参数
记录
类型
可用的
操作
范围 网络钩子
支持
活动分钟数
  active-minutes
  active_minutes
间隔 对账、汇总、dailyRollup activity_and_fitness
活跃区间分钟数
  active-zone-minutes
  active_zone_minutes
间隔 list、reconcile、rollup、dailyRollup activity_and_fitness
活动级别
  activity-level
  activity_level
间隔 list、reconcile activity_and_fitness
海拔
  altitude
  altitude
间隔 list、reconcile、rollup、dailyRollup activity_and_fitness
体脂率
  body-fat
  body_fat
示例 list、get、reconcile、rollup、dailyRollup、create、update、batchDelete health_metrics_and_measurements
心率区间的卡路里消耗量
  calories-in-heart-rate-zone
  calories_in_heart_rate_zone
间隔 汇总,dailyRollup activity_and_fitness
每日心率变异性
  daily-heart-rate-variability
  daily_heart_rate_variability
每天 list、reconcile health_metrics_and_measurements
每日心率区间
  daily-heart-rate-zones
  daily_heart_rate_zones
每天 reconcile health_metrics_and_measurements
每日血氧饱和度
  daily-oxygen-saturation
  daily_oxygen_saturation
每天 list、reconcile health_metrics_and_measurements
每日呼吸频率
  daily-respiratory-rate
  daily_respiratory_rate
每天 list、reconcile health_metrics_and_measurements
每日静息心率
  daily-resting-heart-rate
  daily_resting_heart_rate
每天 list、reconcile health_metrics_and_measurements
每日睡眠温度推导
  daily-sleep-temperature-derivations
  daily_sleep_temperature_derivations
每天 list、reconcile health_metrics_and_measurements
每日最大摄氧量
  daily-vo2-max
  daily_vo2_max
每天 list、reconcile activity_and_fitness
距离
  distance
  distance
间隔 list、reconcile、rollup、dailyRollup activity_and_fitness
锻炼
  exercise
  exercise
会话 list、get、reconcile、create、update、batchDelete activity_and_fitness
爬楼层数
  floors
  floors
间隔 对账、汇总、dailyRollup activity_and_fitness
心率
  heart-rate
  heart_rate
示例 list、reconcile、rollup、dailyRollup health_metrics_and_measurements
心率变异性
  heart-rate-variability
  heart_rate_variability
示例 list、reconcile health_metrics_and_measurements
饮水记录
  hydration-log
  hydration_log
会话 list、get、reconcile、rollup、dailyRollup、create、update、batchDelete 营养
血氧饱和度
  oxygen-saturation
  oxygen_saturation
示例 list、reconcile health_metrics_and_measurements
呼吸频率睡眠摘要
  respiratory-rate-sleep-summary
  respiratory_rate_sleep_summary
示例 list、reconcile health_metrics_and_measurements
跑步最大摄氧量
  run-vo2-max
  run_vo2_max
示例 list、reconcile、rollup、dailyRollup activity_and_fitness
久坐不动时段
  sedentary-period
  sedentary_period
间隔 list、reconcile、rollup、dailyRollup activity_and_fitness
睡眠
  sleep
  sleep
会话 list、get、reconcile、create、update、batchDelete sleep
步骤
  steps
  steps
间隔 list、reconcile、rollup、dailyRollup activity_and_fitness
各心率区间的时长
  time-in-heart-rate-zone
  time_in_heart_rate_zone
间隔 对账、汇总、dailyRollup activity_and_fitness
总卡路里数
  total-calories
  total_calories
间隔 汇总,dailyRollup activity_and_fitness
最大摄氧量
  vo2-max
  vo2_max
示例 list、reconcile activity_and_fitness
权重
  weight
  weight
示例 list、get、reconcile、rollup、dailyRollup、create、update、batchDelete health_metrics_and_measurements

数据可用性

只有在用户同步其活动跟踪器或手动将新数据输入到 Fitbit 移动应用或 Web 应用后,才能更新用户的数据。当 Fitbit 应用在移动设备上处于打开状态,并且 Fitbit 设备和移动设备之间的数据连接处于有效状态且在蓝牙范围内时,Fitbit 设备和 Fitbit 移动应用可以每 15 分钟自动同步一次。如果用户使用 MobileTrack 追踪活动,只要应用处于打开状态,MobileTrack 就会每小时同步一次。

距离标准

锻炼距离(例如 elevationGainMillimeters)以毫米为标准单位进行测量,原因如下:

  1. 保持数据精度:使用毫米的最重要原因是确保我们在读取和提供数据时不会丢失任何精度。使用毫米等精细单位可以让我们以高精度表示测量值。
  2. 标准化:毫米是我们各项服务中设计的标准化单位。这种一致性有助于确保与 API 的不同部分互动的开发者获得统一的体验。
  3. 广泛的测量系统支持:使用毫米等基本单位可让开发者轻松转换为任何其他所选单位,无论他们使用的是公制、英制还是其他测量系统。