google business profile
Upload photo
Creates a media item (photo) for a location from a publicly accessible URL. Categories determine where the photo appears: COVER, PROFILE, LOGO, EXTERIOR, INTERIOR, FOOD_AND_DRINK, MENU, PRODUCT, TEAMS, 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
mediaFormat?string
Default
"PHOTO"Value in
"PHOTO" | "VIDEO"description?string
Photo description
category?string
Where the photo appears on the listing
Value in
"COVER" | "PROFILE" | "LOGO" | "EXTERIOR" | "INTERIOR" | "FOOD_AND_DRINK" | "MENU" | "PRODUCT" | "TEAMS" | "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",
"details": {}
}{
"error": "string",
"details": {}
}