google business profile
Upload photo
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.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
accountIdstring
Query Parameters
locationId?string
Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
sourceUrlstring
Publicly accessible image URL
Format
urimediaFormat?string
Default
"PHOTO"Value in
"PHOTO" | "VIDEO"description?string
Photo description
Length
1 <= lengthcategory?string
Where the photo appears on the listing
Value in
"CATEGORY_UNSPECIFIED" | "COVER" | "PROFILE" | "LOGO" | "EXTERIOR" | "INTERIOR" | "PRODUCT" | "FOOD_AND_DRINK" | "MENU" | "COMMON_AREA" | "ROOMS" | "TEAMS" | "AT_WORK" | "ADDITIONAL"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.createGoogleBusinessMedia({ path: { accountId: 'account_abc123', }, body: { sourceUrl: 'https://example.com', },});console.log(data);{
"success": true,
"name": "string",
"mediaFormat": "string",
"googleUrl": "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": {}
}