版本说明
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页中包含与 Google Fit REST API 版本相关的信息。更新日志会按日期列出版本,并包含所有新功能、bug 修复或重大性能改进。
2021 年 8 月 2 日
写入运行状况数据类型的功能现已面向开发者正式推出。访问 Health 数据类型的授权与所有其他数据类型一致。如需了解更多详情,请参阅此处。
2021 年 4 月 27 日
我们于 2020 年 10 月 10 日宣布的授权变更的执行存在一小段延迟。授权变更现将于 2021 年 5 月 4 日起强制执行。
Google 健身开发者和用户数据政策也将于 2021 年 5 月 4 日生效。为执行 Google 健身开发者政策,我们将准时开始应用验证。
2020 年 10 月 19 日
我们一直在努力为开发者和用户增强 Google 健身的安全性和隐私保护,为此我们对 Google 健身政策和 API 做出了一些更改:
- 我们推出了新的 Google 健身开发者和用户数据政策。
请查看该政策,并根据需要对您的应用和服务进行适当更改。
- 写入访问现在仅允许我们的应用读取其已写入的数据。如需继续从 Google 健身平台读取其他应用写入的数据,请更新您的代码以请求相关数据类型的读取权限范围。
- 心率数据有自己的范围。
- 睡眠数据有自己的范围和新的数据类型。
这些对 API 的变更将于 2020 年 10 月 19 日起供开发者使用,并将于 2021 年 4 月 27 日生效。
如需了解有关这些更改的更多详细信息和说明,请参阅此处。
2019 年 12 月 10 日
由于此功能的使用率较低,从 2020 年 2 月开始,Google Fit REST API 将停止发出或处理 ETag HTTP 标头。
2019 年 3 月 21 日
Google 健身应用现在会显示写入 REST API 的睡眠时段。
详细了解如何写入和读取睡眠数据。
2019 年 3 月 18 日
我们对 Google Fit REST API 进行了以下更改:
- 现在,对于 2019 年 3 月之后创建的所有新 Google Cloud 项目,对受限数据类型的读取和写入权限要求您的应用经过 Google 验证。了解详情。
2019 年 3 月 15 日
我们对 Google Fit REST API 进行了以下更改:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eThe Google Fit REST API changelog lists releases by date with details on new features, bug fixes, and performance improvements.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Fit API introduced changes to authorization scopes, data access, and security policies, including a new developer policy effective May 4, 2021.\u003c/p\u003e\n"],["\u003cp\u003eHeart rate and sleep data now have dedicated scopes for improved data privacy and control.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Fit REST API no longer processes ETag HTTP headers due to low usage.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Fit app displays sleep sessions written to the REST API, and access to restricted data types for new Google Cloud projects requires app verification.\u003c/p\u003e\n"]]],[],null,["# Release Notes\n\nThis page contains information about Google Fit REST API releases.\nThe changelog lists releases by date and includes any new\nfeatures, bug fixes or significant performance improvements.\n\nAugust 2, 2021\n--------------\n\nWriting to [Health data types](/fit/datatypes/health) is now generally available\nto developers. Authorization to access Health data types is consistent with all\nother data types. More details [here](/fit/datatypes#authorization_scopes).\n\nApril 27, 2021\n--------------\n\nThere has been a small delay to enforcement of the [authorization changes](/fit/improvements#what_are_the_authorization_changes)\nannounced on October 10, 2020. The authorization changes will now be enforced\nfrom May 4, 2021.\n\nThe [Google Fit Developer and User Data Policy](/fit/policy) will also become\nenforceable on May 4, 2021. [App verification](/fit/improvements#strengthening_the_review_system_for_apps_using_google_fit)\n, as part of enforcement of the Fit developer policy, will start start in due\ncourse.\n\nOctober 19, 2020\n----------------\n\nAs part of our ongoing efforts to enhance the security and privacy of Google Fit\nfor developers and users, we've made some changes to the Google Fit policies and\nAPIs:\n\n- There is a new [Google Fit Developer and User Data Policy](/fit/policy). Please review the policy, and if relevant, make appropriate changes to your apps and services.\n- Write-access will now only let our app read data it has written. To continue reading data written by other apps from the Google Fit platform, update your code to request read-access scopes for the relevant data types.\n- Heart rate data has its own scopes.\n- Sleep data has its own scopes and a new data type.\n\nThese changes to the API will be available for developers to use from 19 October\n2020 and become enforceable on 27 April 2021.\n\nSee [here](/fit/improvements) for more details and instructions on these\nchanges.\n\nDecember 10, 2019\n-----------------\n\nDue to low usage of this feature, the Google Fit REST API will stop issuing\nor processing ETag HTTP headers from February 2020 onwards.\n\nMarch 21, 2019\n--------------\n\nThe Google Fit app now displays sleep sessions written to the REST API.\nLearn more about [writing](/fit/scenarios/write-sleep-data) and [reading](/fit/scenarios/read-sleep-data) sleep data.\n\nMarch 18, 2019\n--------------\n\nThe following changes have been made to the Google Fit REST API:\n\n- For all new Google Cloud projects created from March 2019, read and write access to restricted data types now require your app to be verified by Google. [Learn more](/fit/rest/v1/data-types#restricted_data_types).\n\nMarch 15, 2019\n--------------\n\nThe following changes have been made to the Google Fit REST API:\n\n- If none of start time, end time and pageToken are specified in a [User.sessions: list request](https://developers.google.com/fit/rest/v1/reference/users/sessions/list), sessions modified in the last 30 days are now returned. (Previously, only sessions modified in the last 7 days were returned)."]]