Delete photo
Deletes a photo or media item from a GBP location.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Query Parameters
Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
The media item ID to delete
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.gmbmedia.deleteGoogleBusinessMedia({ path: { accountId: 'account_abc123', }, query: { mediaId: 'media_abc123', },});console.log(data);{
"success": true,
"deleted": true,
"mediaId": "string"
}{
"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": {}
}Upload photo POST
Creates a media item (photo) for a location from a publicly accessible URL. Categories determine where the photo appears: CATEGORY_UNSPECIFIED, COVER, PROFILE, LOGO, EXTERIOR, INTERIOR, PRODUCT, FOOD_AND_DRINK, MENU, COMMON_AREA, ROOMS, TEAMS, AT_WORK, ADDITIONAL.
Get attributes GET
Returns GBP location attributes (amenities, services, accessibility, payment types). Available attributes vary by business category.