Log inStart Free Trial
easyCoexistence Official APIs

How to add photos to a Google Business Profile through the API

Google Business Profile photos are added with a POST to https://mybusiness.googleapis.com/v4/accounts/{accountId}/locations/{locationId}/media carrying mediaFormat PHOTO, a category such as EXTERIOR and a public sourceUrl, or a dataRef for uploaded bytes. Except for cover and profile photos, each needs at least 250 px on the short edge and 10,240 bytes, and Google reviews it first. With easyCoexistence, ChatGPT or Claude adds a photo from a public link once the owner approves.

250 px

Minimum short edge, with at least 10,240 bytes, for API photos outside the PROFILE and COVER categories.

10 KB to 5 MB

The file size range Google's Help Center gives for Business Profile photos, in JPG or PNG.

720 x 720 px

Google's recommended photo resolution; the minimum is 250 x 250 px.

24 to 48 hours

How long photos and videos can take to show on the Business Profile after upload.

Own project

Google requires agencies and end clients to use their own Business Profile project for any automatic or programmatic use.

No appeal

Google may remove low-quality media, and removals for quality cannot be appealed.

How do you add a photo from a URL?

From your own Google Cloud project, which Google's API policies require for programmatic use, it takes one media.create call on the location. mediaFormat is PHOTO, locationAssociation names the category, and sourceUrl is a publicly accessible address Google retrieves the file from. The source URL cannot be changed later, and Google returns it when you read the media item.

Adding an exterior photo from a URL
POST https://mybusiness.googleapis.com/v4/accounts/{accountId}/locations/{locationId}/media
Authorization: Bearer <ACCESS_TOKEN>
Content-Type: application/json

{
  "mediaFormat": "PHOTO",
  "locationAssociation": { "category": "EXTERIOR" },
  "sourceUrl": "https://example.com/storefront.jpg"
}

How do you upload a photo from your own files?

In three calls, because the bytes go to an upload endpoint before the media item exists. Google's upload guide supports this route only for location media; a photo for a post still has to come from a URL.

1StartPOST .../media:startUpload returns a resourceName
2Send the bytesPOST the file to /upload/v1/media/{resourceName}
3CreatePOST .../media with mediaFormat, the category and dataRef.resourceName

Which categories can a photo have?

Each location photo takes one category in locationAssociation.category, or points at a price list item through priceListItemId instead. Photos attached to posts take neither. LOGO is deprecated: Google maps LOGO uploads to PROFILE, so use PROFILE.

COVERThe cover photo; a location has one
PROFILEThe profile photo; a location has one
EXTERIOROutside the business
INTERIORInside the business
PRODUCTProducts
AT_WORKThe business at work
FOOD_AND_DRINKFood and drink
MENUThe menu
COMMON_AREACommon areas
ROOMSRooms
TEAMSThe team
ADDITIONALAnything uncategorized

What size and format should a photo be?

Google's API reference sets a hard floor and the Help Center gives the guidelines:

  • Format: JPG or PNG.
  • File size: 10 KB to 5 MB; the API needs at least 10,240 bytes for photos other than PROFILE and COVER.
  • Resolution: 720 x 720 px recommended and 250 x 250 px at least; the API needs 250 px on the short edge.
  • Quality: in focus and well lit, with no significant alterations or excessive filters.

What gets a photo removed or not approved?

Google reviews each upload against its photos and videos policies, and its tips for posting media to Maps say low-quality media may be removed with no appeal for quality removals. The tips ask for:

  • Media you captured, at the location, with the place as the main subject.
  • No screenshots, stock photos, GIFs, collages or heavily edited images.
  • No added borders or text, and no heavy filters.
  • Sharp, well-exposed images rather than blurry, dark or rotated ones.

How long until a photo shows on the profile?

Up to 24 to 48 hours, says the Help Center, and only once the profile is verified. Until then the photo is Pending; Not approved means it was flagged for a policy, and Live means it shows on Search and Maps. Choosing a cover photo does not guarantee it shows first: Google may pick a customer's photo when yours is low quality.

How do you list photos and their views?

media.list returns the location's media items. Each has googleUrl, a Google-hosted link that can change over time, thumbnailUrl, createTime, dimensions and insights.viewCount, the number of times it was viewed. Customer photos carry an attribution, which Google says must be shown as provided and never removed or altered.

How do you add photos with easyCoexistence?

The owner signs in with Google to connect the location, then asks ChatGPT or Claude. add_google_business_photo takes a public https URL and one of the twelve categories, and except for COVER and PROFILE the photo has to meet Google's floor of 250 px on the short side and 10 KB. list_google_business_photos returns each photo with its category, link and view count. The assistant shows the owner the photo and category first and runs the tool only after the owner approves.

How to set it up

  1. Connect the locationIn the easyCoexistence dashboard, choose New connection, then Google Business, sign in with Google and pick the location.
  2. Add the connectorAdd https://easycoexistence.com/api/mcp to ChatGPT or Claude and sign in.
  3. Host the photoPut a JPG or PNG of at least 250 px on the short side and 10 KB at a public https address.
  4. Ask for itTell the assistant which photo to add and in which category, such as EXTERIOR or PRODUCT.
  5. Approve itConfirm the photo and category the assistant shows you.
  6. Check it laterList the photos after a day or two, since Google can take 24 to 48 hours to show one.

Common mistakes

  • Hosting the photo behind a login or a link that expires. Google retrieves sourceUrl itself, so the address has to be publicly accessible when the call runs.
  • Uploading a thumbnail. Apart from PROFILE and COVER, Google's API requires 250 px on the short edge and 10,240 bytes, which small previews and icons do not reach.
  • Adding text, borders or a collage to the image. Google's media tips advise against all three, and media removed for quality cannot be restored by appeal.
  • Counting on the cover photo to show first. Google says it does not guarantee this, and a customer's photo may replace a low-quality cover.
Doing this with EasyCoexistence

easyCoexistence lets a business owner add photos to a location from ChatGPT or Claude, from a public https link and in any of the twelve categories, and lists them with category, link and view count. The assistant runs add_google_business_photo only after the owner approves the photo, and Google reviews it like any upload. US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.

easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook, Google Business Profile and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.

Connect Google Business Profile to ChatGPT and Claude

Frequently asked questions

Can the API add videos too?

Google's upload guide shows the same media call with mediaFormat VIDEO, and the Help Center allows videos up to 30 seconds and 75 MB at 720p or higher. easyCoexistence's tool adds photos only.

Can a photo have a caption?

Only when it is created. Google's reference lets a description be set on a new media item that is not a cover photo, and the API cannot change it afterwards.

Why can't I find a photo I uploaded?

It may still be Pending, the profile may not be verified, or the photo was not approved. Google also suggests checking that it is not a duplicate before uploading it again.

Can I upload photos for many locations at once?

Google's Help Center offers a bulk upload spreadsheet to businesses with 10 or more locations. Through the API, each location gets its own media call.

Keep reading

Connect your first channel in two minutes.

No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.

  • 3 days free
  • Cancel any time
  • Official APIs only
  • Monitored 24/7

Verified on