OverviewPlatformsAPI ReferenceResources
Connect

List Google Business Profile locations

GEThttps://zernio.com/api/v1/accounts/{accountId}/gmb-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.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

accountIdstringRequired

Query parameters

Optional
searchstring

Free-text search on the business name, applied server-side by Google. Use for accounts with many locations.

filterstring

Raw Google Business Information API filter expression (advanced; takes precedence over search), e.g. storeCode="LH279411".

limitintegerDefault 100

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.

Responses

Success· the request worked

Errors· the request failed

GET/v1/accounts/{accountId}/gmb-locations
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}
OpenAPI specification
Was this page helpful?