Try it free in the sandbox · first FHIR call in 5 minutesFree · 30 synthetic patients · no card
Fitbit Web API 停用(2026 年 10 月)
Google 将于 2026 年 10 月 30 日关闭 Fitbit Web API:日期,Google Health API 和 Health Connect 路径,以及迁移清单。
Google 将于 2026 年 10 月 30 日停用旧版 Fitbit Web API;支持已于 2026 年 9 月 30 日结束,仍在使用该 API 的应用将在停用后停止接收 Fitbit 数据。 其后继者是 Google Health API,它使用 Google OAuth 2.0,并涵盖 Fitbit 设备和 Google Pixel 手表;其所有范围都受到限制,因此访问需要 Google 的隐私和安全审查。本文档概述了相关日期、两条迁移路径以及如何一旦数据到达后将其保持为标准格式。
日期,来自 Google
- Until 30 Sep 2026Fitbit Web API supported
- 30 Sep 2026Support ends: no fixes, no help
- 30 Oct 2026API turned off: no data, no sync
- Google Health APIThe successor: Google OAuth 2.0, restricted scopes
- Or the phoneFitbit data through Health Connect, read by your app
来源:Google 的 关于 Google Health API 页面,2026 年 10 月。
保持 Fitbit 数据流动的两种方式
| Google Health API (云端) | Health Connect (手机端) | |
|---|---|---|
| 数据来源 | Google 服务器 | 用户 Android 手机,Fitbit 应用写入 |
| 访问方式 | Google OAuth 2.0,受限的 scopes,隐私和安全审查 | 用户在您的应用中授予的 Health Connect 权限 |
| 设备 | Fitbit 设备和 Google Pixel 手表 | 任何应用写入 Health Connect 的设备(Fitbit、Pixel Watch、Garmin、Oura、Withings…) |
| iPhone 用户 | 是,通过云端 | 否 — 在 iPhone 上,请改用 Apple HealthKit |
| 用户是否需要重新连接 | 是:旧的 Fitbit 令牌将迁移到 Google OAuth | 无需云端账户关联 |
| 最适合 | 服务器到服务器同步,Web 应用 | 已请求 Health Connect 权限的移动应用 |
无论哪种方式,请将读数一次性存储为供应商中立的格式,这样下一次 API 更改就不会影响到您的数据库:将步数、心率、睡眠和 SpO₂ 编码为使用 LOINC 的 FHIR Observations。 Health tracker API 显示了代码和请求。
迁移清单
- 列出您今天读取的数据: 数据类型、日内或每日数据,以及哪些用户。
- 尽早申请 Google Health API 访问权限: 受限范围需要审核,且截止日期固定。
- 规划重新授权: 每位用户都必须使用 Google OAuth 重新授权。
- 将数据类型映射到新 API,并预期当手机和手表都计算步数时会出现重叠记录。
- 如果云集成不是必需的,请为 Android 用户考虑 Health Connect。
- 维护一个供应商中立的存储库,以便仪表板、分析和 AI 功能不依赖于某个供应商的 API。
常见问题解答
Fitbit Web API 何时关闭?
根据其 Google Health API 文档,Google 将于 2026 年 9 月 30 日结束支持,并于 2026 年 10 月 30 日关闭 API。
什么将取代 Fitbit Web API?
Google Health API,配合 Google OAuth 2.0。它涵盖所有 Fitbit 设备和 Google Pixel 手表;所有范围都受到限制,需要进行隐私和安全审查。
我还能在没有 Google Health API 的情况下获取 Fitbit 数据吗?
在 Android 上可以:Fitbit 应用可以写入 Health Connect,您的应用在获得用户许可后可以在那里读取数据。
Anpheros 是否连接到 Fitbit?
没有直接连接。您的应用从 Health Connect 或 Google Health API 读取 Fitbit 数据,并将其作为 FHIR Observations 写入 Anpheros,在那里数据将根据用户同意、来源和历史记录进行存储。
相关资源
- 可穿戴设备 API:Fitbit、Garmin、Oura 和 Withings
- 健康追踪器 API
- Health Connect 与 FHIR
- FHIR 中的可穿戴设备数据(Apple Health、Health Connect)
Try it free in the sandbox · first FHIR call in 5 minutesFree · 30 synthetic patients · no card