> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Health

> Integrate your application with the Google Health API

## Quickstart

Connect to Google Health with Nango and see data flow in 2 minutes.

**1. Create the integration**

In Nango, open **Integrations** and configure a new **Google Health** integration.

> [!NOTE]
>
> Google Health requires your own Google Cloud OAuth client. Follow the setup guide linked below, then add the OAuth client ID, client secret, and Google Health scopes in the integration settings in Nango.

**2. Authorize Google Health**

Open **Connections**, add a test connection, and authorize with a Google account that has granted your app the Google Health scopes you configured.

For a first test, include at least one read scope such as `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly`.

**3. Call the Google Health API**

Make your first request to get the Google Health identity for the authorized user. Replace the placeholders below with your Nango API key, integration ID, and connection ID:

> [tab] cURL
>
> ```bash theme={null}
> curl "https://api.nango.dev/proxy/v4/users/me/identity" \
>   -H "Authorization: Bearer <NANGO-API-KEY>" \
>   -H "Provider-Config-Key: <INTEGRATION-ID>" \
>   -H "Connection-Id: <CONNECTION-ID>"
> ```

> [tab] Node
>
> Install Nango's backend SDK with `npm i @nangohq/node`. Then run:
>
> ```typescript theme={null}
> import { Nango } from '@nangohq/node';
>
> const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });
>
> const res = await nango.get({
>     endpoint: '/v4/users/me/identity',
>     providerConfigKey: '<INTEGRATION-ID>',
>     connectionId: '<CONNECTION-ID>'
> });
>
> console.log(res.data);
> ```

Or fetch credentials with the [Node SDK](https://nango.dev/docs/reference/backend/backend-sdk/node.md#get-a-connection-with-credentials) or [API](https://nango.dev/docs/reference/backend/http-api/connections/get.md).

Check the **Logs** tab in Nango to inspect requests.

**4. Implement Nango in your app**

Follow our [Auth implementation guide](https://nango.dev/docs/guides/primitives/auth.md) to integrate Nango in your app.

To obtain your own credentials, follow the setup guide linked below.

> [!NOTE]
>
> Migrating from Fitbit Web API requires user re-consent. Legacy Fitbit access tokens and refresh tokens cannot be reused with Google Health, so keep the old Fitbit connection until the Google Health connection is verified.

## Google Health integration guides

Nango maintained guides for common use cases.

* [How to register your own Google Health OAuth app](https://nango.dev/docs/api-integrations/google-health/how-to-register-your-own-google-health-api-oauth-app)
  Register an OAuth app with Google and obtain credentials to connect it to Nango

* [Google app and security review](https://nango.dev/docs/api-integrations/google-shared/google-security-review)
  Pass Google's OAuth app verification to go to production

Official docs:

* [Google Health API docs](https://developers.google.com/health)
* [Google Health API scopes](https://developers.google.com/health/scopes)
* [Google Health API data types](https://developers.google.com/health/data-types)
* [Google Health API endpoints](https://developers.google.com/health/endpoints)

## Pre-built syncs and tools for Google Health

Explore Nango-provided tools in your dashboard. Extend and customize them to fit your needs.

*No pre-built syncs or tools available yet.*

> [!TIP]
>
> Not seeing the integration you need? [Build your own](https://nango.dev/docs/guides/functions/functions-guide.md) independently.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.