Google Analytics Accounts API

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

GitHub OpenAPI

Operations 8

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

PATCH /v1beta/accounts/{accountsId} Update an Analytics account (v1beta) · Patch accounts #
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} Look up one Analytics account (v1beta) · Get accounts #
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.
DELETE /v1beta/accounts/{accountsId} Trash an Analytics account (v1beta) · Delete accounts #
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 List accessible Analytics accounts (v1beta) · List accounts #
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/{accountsId}:searchChangeHistoryEvents Search account change history by account ID (v1beta) · Search change history events accounts #
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}.
POST /v1beta/accounts/{accountsId}:runAccessReport Run an account data access report (v1beta) · Run access report accounts #
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:provisionAccountTicket Request an account-creation ticket (v1beta) · Provision account ticket accounts #
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}.
GET /v1beta/accounts/{accountsId}/dataSharingSettings Get an account's data sharing settings (v1beta) · Get data sharing settings accounts #
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.

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
📖
Authentication
https://developers.google.com/analytics/devguides/reporting/data/v1/basics#authentication
📖
GettingStarted
https://developers.google.com/analytics/devguides/reporting/data/v1/quickstart-client-libraries
📖
Authentication
https://developers.google.com/analytics/devguides/config/admin/v1/rest
📖
GettingStarted
https://developers.google.com/analytics/devguides/config/admin/v1/quickstart-client-libraries
📖
RateLimits
https://developers.google.com/analytics/devguides/config/admin/v1/quotas

Specifications

Code Examples

Schemas & Data

Other Resources

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"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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 Admin Accounts API
  version: v1beta
  description: Generated from Google's published Discovery document for Google Analytics Admin API (analyticsadmin v1beta, revision 20261110). 8 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://analyticsadmin.googleapis.com
tags:


# --- truncated at 32 KB (61 KB total) ---
# Full source: https://artifacts.apis.io/google-analytics/openapi/google-analytics-accounts-api-openapi.yml