List GBP locations
Returns Google Business Profile locations the connected account can access, plus the currently selected location. The list is bounded (see hasMore); for accounts that own many locations, use the search or filter query params to find a specific one instead of loading them all, or raise limit to enumerate an account with more than 100 locations.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Query Parameters
Free-text search on the business name, applied server-side by Google. Use for accounts with many locations.
Raw Google Business Information API filter expression (advanced; takes precedence over search), e.g. storeCode="LH279411".
Max locations to return (default 100, max 500). Raise it to enumerate an account with more than 100 locations; for accounts with thousands, use search/filter instead.
1001 <= value <= 500Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.connect.getGmbLocations({ path: { accountId: 'account_abc123', },});console.log(data);{
"locations": [
{
"id": "12345678901234567890",
"name": "My Business Location",
"accountId": "accounts/123456789",
"accountName": "My Business Account",
"address": "123 Main St, San Francisco, CA",
"category": "Restaurant",
"websiteUrl": "https://mybusiness.com"
}
],
"selectedLocationId": "12345678901234567890",
"cached": true
}{
"error": "Unauthorized"
}Assign GBP location to another profile POST
Connect a Google Business location onto a DIFFERENT profile by reusing the OAuth grant from an already-connected GBP account — no browser, no re-authorization. Built for agencies whose single Google account has manager access to many client locations and who run one profile per client: connect one location the normal way (browser OAuth), then bulk-assign the rest onto each client's profile via this endpoint. The path `accountId` is a SOURCE connected GBP account (the token holder); the body `profileId` is the TARGET profile. Returns 409 if the target profile already has a Google Business connection (switch its location with PUT gmb-locations instead).
Update GBP location PUT
Switch which GBP location is active for a connected account.