Lists the Business Profile accounts the connected Google account owns or manages (personal account, location groups, organizations), with its role in each.
curl -X POST "https://api.primaryapi.com/v1/run/google-business.accounts" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'{
"output": {
"found": true,
"data": {
"nextCursor": null,
"accounts": [
{
"name": "accounts/1234567890",
"accountName": "Ada Lovelace",
"type": "PERSONAL",
"role": null, …
}, …
]
}
},
"credits": 1
}Input and output
3 fields
9 fields
Good to know
Runs as your connected Google account. Needs the Google Business Profile capability.
Your personal account comes first. Businesses are often held in a location group or organization account, so pass each accountId to google-business.locations.
Up to 20 accounts per page.
Google grants Business Profile API access per Cloud project, on request. Until it has granted PrimaryAPI’s, calls are refused (as a permission error, never charged).
One page per call. Send nextCursor back as cursor to read the next page.
The same key and credits work for every API.