Take our developer survey. We want your feedback so we can learn how to improve Google Analytics, and make it an even better tool for you.

Google Analytics Admin API

Service: analyticsadmin.googleapis.com

To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

  • https://analyticsadmin.googleapis.com

REST Resource: v1alpha.accountSummaries

Methods
list GET /v1alpha/accountSummaries
Returns summaries of all accounts accessible by the caller.

REST Resource: v1alpha.accounts

Methods
delete DELETE /v1alpha/{name=accounts/*}
Marks target Account as soft-deleted (ie: "trashed") and returns it.
get GET /v1alpha/{name=accounts/*}
Lookup for a single Account.
getDataSharingSettings GET /v1alpha/{name=accounts/*/dataSharingSettings}
Get data sharing settings on an account.
list GET /v1alpha/accounts
Returns all accounts accessible by the caller.
patch PATCH /v1alpha/{account.name=accounts/*}
Updates an account.
provisionAccountTicket POST /v1alpha/accounts:provisionAccountTicket
Requests a ticket for creating an account.

REST Resource: v1alpha.properties

Methods
create POST /v1alpha/properties
Creates an "GA4" property with the specified location and attributes.
delete DELETE /v1alpha/{name=properties/*}
Marks target Property as soft-deleted (ie: "trashed") and returns it.
get GET /v1alpha/{name=properties/*}
Lookup for a single "GA4" Property.
list GET /v1alpha/properties
Returns child Properties under the specified parent Account.
patch PATCH /v1alpha/{property.name=properties/*}
Updates a property.

REST Resource: v1alpha.properties.androidAppDataStreams

Methods
create POST /v1alpha/{parent=properties/*}/androidAppDataStreams
Creates an android app stream with the specified location and attributes.
delete DELETE /v1alpha/{name=properties/*/androidAppDataStreams/*}
Deletes an android app stream on a property.
get GET /v1alpha/{name=properties/*/androidAppDataStreams/*}

Lookup for a single AndroidAppDataStream

Throws "Target not found" if no such android app data stream found, or if the caller does not have permissions to access it.

list GET /v1alpha/{parent=properties/*}/androidAppDataStreams
Returns child android app streams under the specified parent property.
patch PATCH /v1alpha/{androidAppDataStream.name=properties/*/androidAppDataStreams/*}
Updates an android app stream on a property.

REST Resource: v1alpha.properties.iosAppDataStreams

Methods
create POST /v1alpha/{parent=properties/*}/iosAppDataStreams
Creates an iOS app data stream with the specified location and attributes.
delete DELETE /v1alpha/{name=properties/*/iosAppDataStreams/*}
Deletes an iOS app stream on a property.
get GET /v1alpha/{name=properties/*/iosAppDataStreams/*}

Lookup for a single IosAppDataStream

Throws "Target not found" if no such iOS app data stream found, or if the caller does not have permissions to access it.

list GET /v1alpha/{parent=properties/*}/iosAppDataStreams
Returns child iOS app data streams under the specified parent property.
patch PATCH /v1alpha/{iosAppDataStream.name=properties/*/iosAppDataStreams/*}
Updates an iOS app stream on a property.

REST Resource: v1alpha.properties.webDataStreams

Methods
create POST /v1alpha/{parent=properties/*}/webDataStreams
Creates a web stream with the specified location and attributes.
delete DELETE /v1alpha/{name=properties/*/webDataStreams/*}
Deletes a web stream on a property.
get GET /v1alpha/{name=properties/*/webDataStreams/*}

Lookup for a single WebDataStream

Throws "Target not found" if no such web data stream found, or if the caller does not have permissions to access it.

getEnhancedMeasurementSettings GET /v1alpha/{name=properties/*/webDataStreams/*/enhancedMeasurementSettings}
Returns the singleton enhanced measurement settings for this web stream.
getGlobalSiteTag GET /v1alpha/{name=properties/*/webDataStreams/*/globalSiteTag}
Returns the Site Tag for the specified web stream.
list GET /v1alpha/{parent=properties/*}/webDataStreams
Returns child web data streams under the specified parent property.
patch PATCH /v1alpha/{webDataStream.name=properties/*/webDataStreams/*}
Updates a web stream on a property.
updateEnhancedMeasurementSettings PATCH /v1alpha/{enhancedMeasurementSettings.name=properties/*/webDataStreams/*/enhancedMeasurementSettings}
Updates the singleton enhanced measurement settings for this web stream.