Get services
Gets the services offered by a Google Business Profile location. Returns an array of service items (structured or free-form with optional price).
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Query Parameters
Override which location to query. If omitted, uses the account's selected location.
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.gmbservices.getGoogleBusinessServices({ path: { accountId: 'account_abc123', },});console.log(data);{
"success": true,
"accountId": "string",
"locationId": "string",
"services": [
{
"structuredServiceItem": {
"serviceTypeId": "string",
"description": "string"
},
"freeFormServiceItem": {
"category": "string",
"label": {
"displayName": "string",
"description": "string"
}
},
"price": {
"currencyCode": "USD",
"units": "50",
"nanos": 0
}
}
]
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}Update location details PUT
Updates GBP location details. The updateMask field is required and specifies which fields to update. This endpoint proxies Google's Business Information API locations.patch, so any valid updateMask field is supported. Common fields: regularHours, specialHours, profile.description, websiteUri, phoneNumbers, categories, serviceItems.
Replace services PUT
Replaces the entire service list for a location. Google's API requires full replacement; individual item updates are not supported. Each service can be structured (using a predefined serviceTypeId) or free-form (custom label).