List media
Lists media items (photos) for a Google Business Profile location. Returns photo URLs, descriptions, categories, and metadata.
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. Use GET /gmb-locations to list valid IDs.
Number of items to return (max 100)
100value <= 100Pagination token from previous response
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.listGoogleBusinessMedia({ path: { accountId: 'account_abc123', },});console.log(data);{
"success": true,
"accountId": "string",
"locationId": "string",
"mediaItems": [
{
"name": "string",
"mediaFormat": "PHOTO",
"sourceUrl": "string",
"googleUrl": "string",
"thumbnailUrl": "string",
"description": "string",
"createTime": "2019-08-24T14:15:22Z",
"locationAssociation": {
"category": "string"
}
}
],
"nextPageToken": "string",
"totalMediaItemsCount": 0
}{
"error": "string",
"details": {}
}{
"error": "string",
"details": {}
}Complete a verification POST
Completes a PENDING verification by submitting the PIN/code Google sent the business (postcard code, SMS PIN, etc.). On success the verification moves to COMPLETED.
Upload photo POST
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.