gmb_info_accounts_locations_list
Lists Google Business Profile locations for a specified account, with support for filtering, sorting, pagination, and field selection to retrieve only the data you need.
Instructions
GET v1/{+parent}/locations. Lists the locations for the specified account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Selector specifying which fields to include in a partial response. | |
| filter | No | Optional. A filter constraining the locations to return. The response includes only entries that match the filter. If `filter` is empty, then constraints are applied and all locations (paginated) are retrieved for the requested account. For more information about valid fields and example usage, see [Work with Location Data Guide](https://developers.google.com/my-business/content/location-data#filter_results_when_you_list_locations). | |
| parent | Yes | Required. The name of the account to fetch locations from. * **Specific Account ID**: If the account is of type `AccountType.PERSONAL`, the response returns only locations directly owned by that account. For all other types (e.g., `AccountType.LOCATION_GROUP`), it returns all accessible locations. * **Wildcard (`-`)**: Using `accounts/-` identifies the authenticated user. This scope defaults to `AccountType.PERSONAL` but includes both directly and indirectly owned locations (e.g., those accessible via member groups). | |
| $.xgafv | No | V1 error format. | |
| orderBy | No | Optional. Sorting order for the request. Multiple fields should be comma-separated, following SQL syntax. The default sorting order is ascending. To specify descending order, a suffix " desc" should be added. Valid fields to order_by are title and store_code. For example: "title, store_code desc" or "title" or "store_code desc" | |
| pageSize | No | Optional. How many locations to fetch per page. Default value is 10 if not set. Minimum is 1, and maximum page size is 100. | |
| readMask | No | Required. Read mask to specify what fields will be returned in the response. | |
| pageToken | No | Optional. If specified, it fetches the next `page` of locations. The page token is returned by previous calls to `ListLocations` when there were more locations than could fit in the requested page size. | |
| quotaUser | No | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. | |
| prettyPrint | No | Returns response with indentations and line breaks. |