Lists the locations for the specified account.
HTTP request
GET https://mybusinessbusinessinformation.googleapis.com/v1/{parent=accounts/*}/locations
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The name of the account to fetch locations from. If the parent [Account] [google.mybusiness.accountmanagement.v1.Account] is of [AccountType] [google.mybusiness.accountmanagement.v1.Account.AccountType] PERSONAL, only Locations that are directly owned by the Account are returned, otherwise it will return all accessible locations from the Account, either directly or indirectly. |
Query parameters
Parameters | |
---|---|
pageSize |
Optional. How many locations to fetch per page. Default value is 10 if not set. Minimum is 1, and maximum page size is 100. |
pageToken |
Optional. If specified, it fetches the next |
filter |
Optional. A filter constraining the locations to return. The response includes only entries that match the filter. If For more information about valid fields and example usage, see Work with Location Data Guide. |
orderBy |
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 orderBy are title and storeCode. For example: "title, storeCode desc" or "title" or "storeCode desc" |
readMask |
Required. Read mask to specify what fields will be returned in the response. This is a comma-separated list of fully qualified names of fields. Example: |
Request body
The request body must be empty.
Response body
Response message for Locations.ListLocations.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"locations": [
{
object ( |
Fields | |
---|---|
locations[] |
The locations. |
nextPageToken |
If the number of locations exceeded the requested page size, this field is populated with a token to fetch the next page of locations on a subsequent call to |
totalSize |
The approximate number of Locations in the list irrespective of pagination. This field will only be returned if |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/business.manage
For more information, see the OAuth 2.0 Overview.