Platforms / Google Business
Google Business API
Publish updates, offers, events and alerts to Google Business Profile locations and reply to reviews.
At a glance
- Platform id
google- Connects
- location
- Sign-in
- OAuth: the user approves on the platform's own page
- Post types
- Update · Offer · Event · Alert · One photo (JPEG/PNG)
Capabilities
| Publishing | Yes |
|---|---|
| Scheduling | Yes |
| Comments | No |
| Direct messages | No |
| Mentions | No |
| Reviews | Yes |
| Analytics | Yes |
Required on every post
- Event and offer posts need event (title and schedule). Alert posts need alert_type.
Options
Send these in platform_data.google on the post, or flat in a target's own platform_data (the target's keys win). See Publishing.
| Key | Type | What it does |
|---|---|---|
topicType | STANDARD | EVENT | OFFER | ALERT | Post type. Default OFFER when offer is set, EVENT when event is set, ALERT when alert_type is set, else STANDARD. topic_type also works. |
callToAction | { actionType, url } | Button: BOOK, ORDER, SHOP, LEARN_MORE, SIGN_UP or CALL (CALL dials the location and takes no url). Ignored by Google on offers. Editable on a live post. |
event | { title, schedule } | Event details, with schedule startDate, startTime, endDate, endTime. Needed for EVENT and OFFER. |
offer | { couponCode, redeemOnlineUrl, termsConditions } | Offer details. |
alert_type | COVID_19 | Needed for ALERT posts. Google's only value. |
languageCode | string | Default en. |
Limits
- 1,500 characters per post.
- At most one JPEG or PNG photo up to 5 MB; no video.
- This server caps each location at 25 posts an hour and 50 a day.
Text over the limit fails validation before anything is sent. The caps of this server are explained in Rate limits.
Good to know
- Each location is its own account. The login (with its login_email) lists every location it manages; assign one to a brand with its id or the full name accounts/1/locations/2. A brand that already has a Google location answers 409 platform.google.brand_has_account.
- Google has no scheduling of its own: scheduled posts are held here and created at their time.
- A live post's text and button (platform_data.google.callToAction) can be edited; its photo, type and event or offer cannot.
- Reviews: verified locations only. Each review has one public reply, and a new reply replaces it. Replies are checked against Google's 4,096-byte limit before a credit is spent. Google moderates replies and rejects promotional text and discount codes. Reviewer photos come with the review.
- Accounts connected before openid, email and profile were added should reconnect so the login shows its email.
Publish with the API
curl https://api.zaynstack.com/v1/posts \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{
"text": "Hello from SocialWire",
"media": [{ "type": "image", "source_type": "url", "source": "https://example.com/file.jpg" }],
"targets": [{ "account_id": "<Google Business account id>" }],
"publish_now": true
}'An operation Google Business cannot do answers 501 resource.not_supported. Agents can do the same through the MCP server.
Connection errors
A connection that fails comes back to your redirect_uri with status=error, error=<code> and error_description, or as the error of the connect call. All codes: Connect accounts.
| Code | Meaning |
|---|---|
platform.google.no_locations | The Google login manages no Business Profile location. |
platform.google.insufficient_scope | The person did not tick the Business Profile permission on Google's consent screen. |
account.already_linked | The brand already holds a different account on this platform, or the account belongs to another brand while lock_accounts_to_brand is on. |
billing.brands_limit | No brand_id was sent, so a new brand was needed, and the plan has no room for another brand. |
Webhook events
Every platform sends the post.* and account.* events. Google Business also sends:
review.receivedreview.updated
Not supported yet
- Events when the business profile itself changes (name, hours, address).
- Comments, chat, mentions and Q&A (Google retired the Q&A API in November 2025).
- Video posts.
Developer setup (self-hosting)
Only the operator of this server does this, once. Users then just click Connect.
- Use the same Google Cloud project and OAuth client as YouTube.
- Enable My Business Account Management, Business Information and Business Profile Performance APIs.
- Add the Callback address below to the OAuth client.
- Callback address
https://api.zaynstack.com/api/connect/google_business/callback- Webhook address
https://api.zaynstack.com/api/hooks/google_business- Server variables
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET- Developer console
- Google Business developer console
Permissions requested
openidhttps://www.googleapis.com/auth/userinfo.profilehttps://www.googleapis.com/auth/userinfo.emailhttps://www.googleapis.com/auth/business.manage
When a reconnect grants fewer permissions than before, an account.updated event with change permissions_reduced is sent. Accounts connected before a permission was added keep working but must reconnect to use the features it unlocks.
Before anyone can connect (review)
- Request Business Profile API access with the GBP API contact form (project number, company website). Without it the quota is 0.
- OAuth verification of the business.manage scope (sensitive) with a demo video.
Typical wait: API access 1-2 weeks; OAuth verification 1-4 weeks. Until then the app works for your own accounts and the testers you add in the console.