G

Google Analytics Data API

REST discovered

Details
URL
https://analyticsdata.googleapis.com/
Docs
https://developers.google.com/analytics/devguides/reporting/data/v1/rest
Authentication
Google OAuth 2.0 client / access token for Google Analytics Data API oauth2 discovered Set up OAuth ↗
Authorization: Bearer <credential>

In Google Cloud Console Credentials, create an OAuth 2.0 Client ID for your project, then use Google's OAuth flow to obtain an access token with either the https://www.googleapis.com/auth/analytics.readonly or https://www.googleapis.com/auth/analytics scope for a user who has access to the target Google Analytics property. The Data API quickstart for user credentials shows this setup path.

Google service account access token for Google Analytics Data API jwt discovered Get key ↗
Authorization: Bearer <credential>

In Google Cloud Console Service Accounts, create a service account, then grant that service account access to the Google Analytics property. Use the service account credentials to mint a Google OAuth access token with the https://www.googleapis.com/auth/analytics.readonly or https://www.googleapis.com/auth/analytics scope. The Data API quickstart for service accounts documents this path.