Note that these accounts might not currently have GA properties. Soft-deleted (ie: "trashed") accounts are excluded by default. Returns an empty list if no relevant accounts are found.
HTTP request
GET https://analyticsadmin.googleapis.com/v1alpha/accounts
The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)
pageToken
string
A page token, received from a previous accounts.list call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to accounts.list must match the call that provided the page token.
showDeleted
boolean
Whether to include soft-deleted (ie: "trashed") Accounts in the results. Accounts can be inspected to determine whether they are deleted or not.
Request body
The request body must be empty.
Response body
Request message for accounts.list RPC.
If successful, the response body contains data with the following structure:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-14 UTC."],[[["Retrieves and lists all Google Analytics 4 accounts accessible by the caller, excluding soft-deleted accounts by default."],["Allows for pagination to handle large result sets using `pageSize` and `pageToken` parameters."],["Optionally includes soft-deleted accounts using the `showDeleted` parameter."],["Requires authorization with specific scopes for data access."]]],["This document details how to retrieve a list of accessible accounts using a `GET` request to `https://analyticsadmin.googleapis.com/v1alpha/accounts`. The request body must be empty. Optional query parameters `pageSize` (max 200) and `pageToken` support pagination, and `showDeleted` includes trashed accounts. The response includes an array of \"accounts\" and `nextPageToken` for pagination. Authorization requires either `analytics.readonly` or `analytics.edit` OAuth scopes.\n"]]