The Google Fit APIs, including the Google Fit REST API, will no longer be available after June 30, 2025. As of May 1, 2024, developers cannot sign up to use these APIs.
Stay organized with collections
Save and categorize content based on your preferences.
Every request your application sends to the Fitness API must include an
authorization token. The token also identifies your application to Google.
Authorization protocol
Your application must use OAuth
2.0 to authorize
requests. No other authorization protocols are supported. If your application
uses Google Sign-In,
some aspects of authorization are handled for you.
All requests to the Fitness API must be authorized by an authenticated user.
The details of the authorization process, or "flow," for OAuth 2.0 will
depend on the kind of app you're writing. This general process applies to all
app types:
When you create your application, register it using the Google API
Console. Google then provides
information you'll need later, such as a client ID and a client secret.
Activate the Fitness API in the Google API Console. (If the API isn't listed
in the API Console, then skip this step.)
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-11-20 UTC."],[[["All requests to the Google Fitness API require an OAuth 2.0 authorization token to identify your application and grant access."],["Applications need to be registered using the Google API Console, activate the Fitness API, and potentially undergo a verification process depending on the requested data types and their sensitivity."],["Access to user data is granted through a user consent screen, providing your application with a short-lived access token upon approval."],["Data type access corresponds to specific scopes, necessitating review of scope requirements for your application's desired functionalities."]]],[]]