Google Analytics Accounts API

The accounts API from Google Analytics — 3 operation(s) for accounts.

Operations 26

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1beta/accounts List accessible Analytics accounts (v1beta) · Analyticsadmin accounts list #
Ask an LLM
“Which Google Analytics accounts can I reach through the v1beta Admin API accounts list?”
“Can the v1beta accounts list include accounts I've moved to the trash?”
Tell an agent
List every Analytics account I can access using the v1beta Admin API.
List my Analytics accounts via v1beta, including trashed ones, {pageSize} per page.
POST /v1beta/accounts:provisionAccountTicket Request an account-creation ticket (v1beta) · Analyticsadmin accounts provision account ticket #
Ask an LLM
“What does the v1beta provisionAccountTicket call give me when setting up a new Analytics account?”
“Where does the user land after accepting the Terms of Service on a v1beta account ticket?”
Tell an agent
Request a v1beta ticket to create a new Analytics account that redirects to {redirectUri} after Terms of Service.
Get a v1beta account-creation ticket for an account named in {account}.
POST /v1beta/{account}:searchChangeHistoryEvents Search account change history by resource name · Analyticsadmin accounts search change history events #
Ask an LLM
“Who changed settings in my Analytics account, looked up by its accounts/ resource name?”
“Can I narrow v1beta change history by the email of the person who made the change?”
Tell an agent
Search the change history of account resource {account} made by {actorEmail}.
Show changes to account resource {account} made after {earliestChangeTime}.
DELETE /v1alpha/accounts/{accountsId} Trash an Analytics account (v1alpha) · Marks target Account as soft-deleted (ie: "trashed") and returns it #
Ask an LLM
“Can a trashed Analytics account be restored after I delete it through v1alpha?”
“What happens to properties and streams when I soft-delete an account with the v1alpha API?”
Tell an agent destructive · confirm first
Move Analytics account {accountsId} to the trash using v1alpha.
Soft-delete account {name} (id {accountsId}) with the v1alpha delete call.
GET /v1alpha/accounts/{accountsId} Look up one Analytics account (v1alpha) · Lookup for a single Account #
Ask an LLM
“How do I fetch a single Analytics account's details with the v1alpha Admin API?”
“Can the v1alpha endpoint tell me an account's display name and country of business?”
Tell an agent
Get Analytics account {accountsId} using the v1alpha endpoint.
Look up account {name} via v1alpha, id {accountsId}.
PATCH /v1alpha/accounts/{accountsId} Update an Analytics account (v1alpha) · Updates an account #
Ask an LLM
“Can I rename an Analytics account using the v1alpha Admin API?”
“Which account fields must I list in the update mask for a v1alpha account update?”
Tell an agent
Rename account {accountsId} to {displayName} using v1alpha.
Set the country of business on account {accountsId} to {regionCode} via v1alpha.
GET /v1alpha/accounts/{accountsId}/dataSharingSettings Get an account's data sharing settings (v1alpha) · Get data sharing settings on an account #
Ask an LLM
“What data sharing options are turned on for my Analytics account, per the v1alpha API?”
“Where do I read an account's data sharing settings in the v1alpha Admin API?”
Tell an agent
Show the data sharing settings for account {accountsId} using v1alpha.
Fetch v1alpha data sharing settings {name} for account {accountsId}.
GET /v1alpha/accounts List accessible Analytics accounts (v1alpha) · Returns all accounts accessible by the caller #
Ask an LLM
“Which Analytics accounts does the v1alpha Admin API return for my login?”
“Does the v1alpha account list leave out trashed accounts unless I ask for them?”
Tell an agent
List all Analytics accounts I can access through the v1alpha endpoint.
List my v1alpha Analytics accounts, including soft-deleted ones, {pageSize} at a time.
POST /v1alpha/accounts:provisionAccountTicket Request an account-creation ticket (v1alpha) · Requests a ticket for creating an account #
Ask an LLM
“How do I start creating a new Analytics account through a v1alpha provisioning ticket?”
“Does the v1alpha account ticket need a redirect URI configured in the Cloud Console?”
Tell an agent
Request a v1alpha account-creation ticket that sends the user to {redirectUri} after accepting terms.
Open a v1alpha ticket to create the Analytics account described in {account}.
POST /v1alpha/accounts/{accountsId}:runAccessReport Run an account data access report (v1alpha) · Returns a customized report of data access records #
Ask an LLM
“Who has been reading reporting data in my Analytics account, according to the v1alpha access report?”
“How far back do v1alpha data access records go for an account?”
Tell an agent
Run a v1alpha data access report for account {accountsId} over {dateRanges}.
Show v1alpha access records for {entity} broken down by {dimensions}, limited to {limit} rows.
POST /v1alpha/accounts/{accountsId}:searchChangeHistoryEvents Search account change history (v1alpha) · Searches through all changes to an account or its children given the specified… #
Ask an LLM
“What changes happened in my Analytics account recently, via the v1alpha change history search?”
“Can the v1alpha change history search filter by resource type, like only property changes?”
Tell an agent
Search v1alpha change history for account {accountsId} filtered to actions {action}.
List v1alpha changes to account {accountsId} made before {latestChangeTime}.
POST /v1alpha/accounts/{accountsId}/accessBindings:batchCreate Grant several users access at once · Creates information about multiple access bindings to an account or property #
Ask an LLM
“Can I add many users to an Analytics account in one request?”
“If one of the new access bindings fails, are the others still created?”
Tell an agent
Batch-create these access bindings on account {accountsId}: {requests}.
Grant roles to multiple users under {parent} in a single transaction.
POST /v1alpha/accounts/{accountsId}/accessBindings:batchDelete Remove several users' access at once · Deletes information about multiple users' links to an account or property #
Ask an LLM
“Can I revoke access for a batch of users from an Analytics account together?”
“What's the maximum number of access bindings I can remove in one bulk request?”
Tell an agent destructive · confirm first
Batch-delete these access bindings from account {accountsId}: {requests}.
Remove multiple users' links from {parent} in one call.
GET /v1alpha/accounts/{accountsId}/accessBindings:batchGet Fetch several named access bindings · Gets information about multiple access bindings to an account or property #
Ask an LLM
“Can I look up several specific access bindings by name in one request?”
“What roles do a handful of named user bindings on my account have?”
Tell an agent
Get access bindings {names} on account {accountsId}.
Batch-fetch the named access bindings under {parent}.
POST /v1alpha/accounts/{accountsId}/accessBindings:batchUpdate Change roles for several users at once · Updates information about multiple access bindings to an account or property #
Ask an LLM
“Can I change the roles of many users on an Analytics account in a single request?”
“How many access bindings can one bulk role update touch?”
Tell an agent
Batch-update these access bindings on account {accountsId}: {requests}.
Apply role changes to multiple existing bindings under {parent}.
POST /v1alpha/accounts/{accountsId}/accessBindings Grant one user access to an account · Creates an access binding on an account or property #
Ask an LLM
“How do I give a colleague viewer access to my Analytics account?”
“Which predefined roles can I grant a single user on an account?”
Tell an agent
Give {user} the roles {roles} on account {accountsId}.
Add {user} as a new user on {parent}.
GET /v1alpha/accounts/{accountsId}/accessBindings List who has access to an account · Lists all access bindings on an account or property #
Ask an LLM
“Who currently has access to my Google Analytics account and with which roles?”
“Is there a way to page through every user permission on an account?”
Tell an agent
List all access bindings on account {accountsId}.
List users with access to {parent}, {pageSize} per page.
DELETE /v1alpha/accounts/{accountsId}/accessBindings/{accessBindingsId} Revoke one user's access · Deletes an access binding on an account or property #
Ask an LLM
“How do I remove a single person's access to my Analytics account?”
“Can I delete one access binding without touching the others?”
Tell an agent destructive · confirm first
Delete access binding {accessBindingsId} from account {accountsId}.
Revoke the access granted by binding {name} (id {accessBindingsId}) on account {accountsId}.
GET /v1alpha/accounts/{accountsId}/accessBindings/{accessBindingsId} Get one user's access binding · Gets information about an access binding #
Ask an LLM
“What roles does one particular access binding grant on my account?”
“Can I check a single user's permission record by its binding ID?”
Tell an agent
Show access binding {accessBindingsId} on account {accountsId}.
Get the access binding named {name}, id {accessBindingsId} under account {accountsId}.
PATCH /v1alpha/accounts/{accountsId}/accessBindings/{accessBindingsId} Change one user's roles · Updates an access binding on an account or property #
Ask an LLM
“Can I promote one user from viewer to editor on my Analytics account?”
“What happens to a user's existing roles when I update their single access binding?”
Tell an agent
Set the roles on access binding {accessBindingsId} in account {accountsId} to {roles}.
Update binding {name} (id {accessBindingsId}, account {accountsId}) to grant {roles}.
DELETE /v1beta/accounts/{accountsId} Trash an Analytics account (v1beta) · Marks target Account as soft-deleted (ie: "trashed") and returns it #
Ask an LLM
“Is deleting an account with the v1beta Admin API permanent or can I restore it from the Trash Can?”
“Which child resources are purged if a v1beta-trashed account isn't restored in time?”
Tell an agent destructive · confirm first
Trash Analytics account {accountsId} using the v1beta delete endpoint.
Soft-delete account {name} (id {accountsId}) via v1beta.
GET /v1beta/accounts/{accountsId} Look up one Analytics account (v1beta) · Lookup for a single Account #
Ask an LLM
“Where do I get a single account's details from the v1beta Admin API?”
“Does the v1beta account lookup show whether the account is in the trash?”
Tell an agent
Get Analytics account {accountsId} from the v1beta endpoint.
Look up account {name} (id {accountsId}) with v1beta.
PATCH /v1beta/accounts/{accountsId} Update an Analytics account (v1beta) · Updates an account #
Ask an LLM
“Can I change an account's display name with the v1beta Admin API?”
“Is the update mask required when updating an account through v1beta?”
Tell an agent
Rename account {accountsId} to {displayName} with v1beta.
Update account {accountsId} via v1beta, changing only {updateMask}.
GET /v1beta/accounts/{accountsId}/dataSharingSettings Get an account's data sharing settings (v1beta) · Get data sharing settings on an account #
Ask an LLM
“Is my Analytics account sharing data with Google, per the v1beta data sharing settings?”
“Can I read account-level data sharing settings through the v1beta API?”
Tell an agent
Get the v1beta data sharing settings for account {accountsId}.
Read data sharing settings {name} on account {accountsId} with v1beta.
POST /v1beta/accounts/{accountsId}:runAccessReport Run an account data access report (v1beta) · Returns a customized report of data access records #
Ask an LLM
“Can I audit which users pulled reporting data from my account using the v1beta access report?”
“How many dimensions and metrics can a v1beta data access report request?”
Tell an agent
Run a v1beta access report on account {accountsId} for {dateRanges}.
Pull v1beta data access records for {entity} with metrics {metrics}.
POST /v1beta/accounts/{accountsId}:searchChangeHistoryEvents Search account change history by account ID (v1beta) · Searches through all changes to an account or its children given the specified… #
Ask an LLM
“What was changed in my account last week, searching v1beta change history by numeric account ID?”
“Can I page through v1beta change history events for an account ID?”
Tell an agent
Search v1beta change history for account ID {accountsId} on property {property}.
List v1beta changes for account ID {accountsId} affecting resource types {resourceType}.

Documentation

📖
Documentation
https://developers.google.com/analytics/devguides/reporting/data/v1
📖
APIReference
https://developers.google.com/analytics/devguides/reporting/data/v1/rest
📖
GettingStarted
https://developers.google.com/analytics/devguides/reporting/data/v1/quickstart
📖
Authentication
https://developers.google.com/analytics/devguides/reporting/data/v1/quickstart-client-libraries
📖
RateLimits
https://developers.google.com/analytics/devguides/reporting/data/v1/quotas
📖
Documentation
https://developers.google.com/analytics/devguides/config/admin/v1
📖
APIReference
https://developers.google.com/analytics/devguides/config/admin/v1/rest
📖
GettingStarted
https://developers.google.com/analytics/devguides/config/admin/v1/quickstart
📖
Documentation
https://developers.google.com/analytics/devguides/collection/protocol/ga4
📖
APIReference
https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference
📖
GettingStarted
https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events
📖
Troubleshooting
https://developers.google.com/analytics/devguides/collection/protocol/ga4/troubleshooting
📖
Documentation
https://developers.google.com/analytics/devguides/config/userdeletion/v3
📖
APIReference
https://developers.google.com/analytics/devguides/config/userdeletion/v3/reference
📖
Authentication
https://developers.google.com/analytics/devguides/config/userdeletion/v3/authorization
📖
Documentation
https://developers.google.com/analytics/devguides/reporting/core/v4
📖
GettingStarted
https://developers.google.com/analytics/devguides/migration/api/reporting-ua-to-ga4
📖
Documentation
https://developers.google.com/analytics/devguides/config/mgmt/v3
📖
APIReference
https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference

Specifications

Code Examples

Other Resources

🔗
SDKs
https://pypi.org/project/google-analytics-data/
🔗
SDKs
https://www.npmjs.com/package/@google-analytics/data
🔗
SDKs
https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data
🔗
SDKs
https://www.nuget.org/packages/Google.Analytics.Data.V1Beta
🔗
SDKs
https://packagist.org/packages/google/analytics-data
🔗
SDKs
https://developers.google.com/analytics/devguides/config/admin/v1/client-libraries
🔗
SDKs
https://pypi.org/project/google-analytics-admin/
🔗
SDKs
https://www.npmjs.com/package/@google-analytics/admin
🔗
SDKs
https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin
🔗
SDKs
https://www.nuget.org/packages/Google.Analytics.Admin.V1Beta
🔗
SDKs
https://packagist.org/packages/google/analytics-admin
🔗
APIsJSON
https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/apis.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/arazzo/google-analytics-account-change-history-audit-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/arazzo/google-analytics-audience-export-create-or-reuse-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/arazzo/google-analytics-audit-custom-definitions-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/arazzo/google-analytics-batch-run-reports-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/arazzo/google-analytics-check-compatibility-run-report-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/arazzo/google-analytics-create-custom-dimension-run-report-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/arazzo/google-analytics-create-custom-metric-run-report-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/arazzo/google-analytics-create-property-data-stream-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/arazzo/google-analytics-discover-and-run-report-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/arazzo/google-analytics-inventory-property-data-streams-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/arazzo/google-analytics-list-properties-run-realtime-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/arazzo/google-analytics-query-audience-export-users-workflow.yml

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-analytics:google-analytics-accounts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-analytics-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Analytics Accounts API
  x-refined-note:
  - x-apisguru-categories differs across the merged source definitions and was not carried
  - x-logo differs across the merged source definitions and was not carried
  - x-origin differs across the merged source definitions and was not carried
  - x-preferred differs across the merged source definitions and was not carried
  - x-providerName differs across the merged source definitions and was not carried
  - x-refined-note differs across the merged source definitions and was not carried
  - x-serviceName differs across the merged source definitions and was not carried
  version: '1.0'
  description: 'Operations tagged accounts across 2 of this provider''s published API definitions: google-analytics-admin-api.yaml, google-analytics-accounts-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://analyticsadmin.googleapis.com/
- url: https://analyticsadmin.googleapis.com
  description: Google Analytics Admin API
tags:


# --- truncated at 32 KB (239 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/openapi/google-analytics-accounts-api-openapi.yml