Guides · analytics · Popular APIs

Google Analytics Data API (GA4)

Enable the Google Analytics Data API v1 in a Google Cloud project and grant a user or service account access to a GA4 property; public multi-user apps need an OAuth client and may need verification.

Researched · not yet run liveLast researched 25 October 2026 · Google · provider site

Researched, not yet run live. Built from the provider’s official pages (linked below). A person hasn’t walked this flow end to end yet, so check each step against the source.

Who owns what

A Google Cloud project calls the API; the GA4 property (in a Google Analytics account) grants read access to a user or service account.

  • Google Cloud project project
  • Google Analytics account and GA4 property organisationThe caller's email (user or service account) needs access to the property.

Have ready

  • A Google Cloud project you own
  • A GA4 property you administer
  • google/oauth-verification: Only for public apps that let other people connect their Analytics via OAuth, if the console marks analytics.readonly as sensitive [to verify tier].

Steps

Steps marked “human step” are ones only you can do: verapli never signs in, submits, pays or accepts terms for you.

  1. Enable the Google Analytics Data API

    In your project's API Library, enable "Google Analytics Data API".

    • verapli co-pilot
    • Human step: You press submit

    Where: https://console.cloud.google.com/apis/library/analyticsdata.googleapis.com

  2. Create credentials

    For your own property, create a service account (or use Application Default Credentials). For a multi-user app, configure the consent screen and create an OAuth client requesting analytics.readonly.

    • verapli co-pilot
    • Human step: You press submit
    • After: Enable the Google Analytics Data API

    Where: https://console.cloud.google.com/iam-admin/serviceaccounts

  3. Grant access in Google Analytics

    In GA4 Admin > Property access management, add the user or service account email with a Viewer role [to verify role name].

    • verapli co-pilot
    • Human step: You press submit
    • After: Create credentials

    Where: https://analytics.google.com/analytics/web/

  4. Note the property ID

    Copy the numeric GA4 property ID from Admin > Property settings; requests use properties/{id}.

    • Guided by hand
    • After: Grant access in Google Analytics
  5. Verify the OAuth app (public multi-user apps only)optional

    If the console lists your scopes as sensitive and the app is External and in production, submit for verification.

    • Guided by hand
    • Human step: The provider reviews it
    • After: Create credentials
    The provider says
    Sensitive scope verification typically takes 3-5 business days. [3]

    Where: https://console.cloud.google.com/auth/verification

Terms and gotchas

Plain-English summary, not legal advice. Each card links its source.

Worth knowingThe rules say

Quota is per property in tokens (200,000/day, 40,000/hour on standard properties); heavy reports can exhaust it quickly. [2]

What you end up with

Env varSecretFormatWhat it is
GA4_PROPERTY_IDnot secret123456789Numeric GA4 property ID
GOOGLE_APPLICATION_CREDENTIALSsecret./service-account.jsonPath to the service account JSON key file (if a key is used rather than ADC or OAuth)

Pricing

  • Free tier: Quotas are per property (standard 200,000 tokens/day; Analytics 360 2,000,000).
  • The quota page does not state a price; no charge for the API was found [to verify].

Source [2]

For agents

The same entry as JSON: /api/v1/entries/google/analytics-data-api · requirements /api/v1/requirements/google/analytics-data-api · terms /api/v1/terms/google/analytics-data-api.

Remote MCP (read-only, no auth)
claude mcp add --transport http verapli https://verapli.com/mcp

> "What do I need for Google Analytics Data API (GA4), and how long will it take?"
  → tools/call requirements { "provider_id": "google/analytics-data-api" }

Sources

  1. Google Analytics API quickstart Setup: enable Google Analytics Data API v1 in a Cloud project, grant the account access to a GA4 property in the Analytics UI, scopes cloud-platform and analytics.readonly, runReport sample; service account option. · accessed 25 October 2026 · official
  2. Data API limits and quotas | Google Analytics Standard properties 200,000 tokens/day and 40,000 tokens/hour per property, 14,000 per project per property per hour, 10 concurrent requests; Analytics 360 is ten times higher; daily reset midnight Pacific. · accessed 25 October 2026 · official
  3. Sensitive scope verification Public apps requesting sensitive scopes need verification; exemptions for personal use, Testing, service-owned data and Internal apps; typically 3-5 business days. · accessed 25 October 2026 · official
  4. Configure the OAuth consent screen and choose scopes Consent screen configuration steps. · accessed 25 October 2026 · official

Provider rules change. This page is generated from verapli registry version 2026.1025.316; spotted something out of date? Tell us. Google is not affiliated with verapli.