Google Analytics Admin API Overview

Summary: This document provides a high level overview of the Google Analytics Admin API Version 1.0.


The Google Analytics Admin API allows for programmatic access to the Google Analytics 4 (GA4) configuration data and is only compatible with GA4 properties. Learn more about GA4 properties.

You can use the Google Analytics Admin API to:

Available methods

Account provisioning

  • accounts.provisionAccountTicket

    This method returns the accountTicketId field that should be included in the Terms of Service (TOS) URL: Once a user visits the TOS URL and accepts the Terms of Service, creation of a Google Analytics account will be complete (Account provisioning sample).

Account management

Account summaries

User permissions management

Account data sharing settings management

User permission audit

GA4 properties management

Firebase project linking

GA4 data streams management

Global Site Tag generation

Enhanced measurement settings management

Enable the API

Click this button to automatically enable the Google Analytics Admin API:

Enable the Google Analytics Admin API

Quick start guide

Quick start using client libraries

API discovery document

You can query the Google Analytics Admin API discovery document by using the following URL:$discovery/rest?version=v1alpha

Client libraries

See the Quick start guide for examples of using the client libraries.


  • 2020-08-15 Client libraries have been updated. Please refer to the quickstart samples and reference documentation for the corresponding libraries. Client library artifacts are now published to external repositories.

  • 2020-08-15 Google Analytics Management App + Web API has been renamed to the Google Analytics Admin API. As a result, the API endpoint has changed to Existing code written against the previous version of the API endpoint url and client libraries needs to be updated accordingly.

  • 2020-10-13 App + Web properties have been renamed to Google Analytics 4 (GA4).

  • 2020-10-20 Added support for account summaries.

  • 2021-01-28 Breaking changes:

    • update_mask field is required for all Update operations.

    • country_code field renamed to region_code in Account.

    • url_query_parameter field renamed to uri_query_parameter in EnhancedMeasurementSettings.

    • parent field removed from GoogleAdsLink.

  • 2021-01-28 Pagination support added for ListFirebaseLinks operation.