GuidePlatforms
Google Business Profile
Publish updates, events, and offers to Google Business Profile via the PostPeer API.
Overview
Publish updates, events, offers, calls to action, and images to locations managed through Google Business Profile. Posts appear with the location on Google Search and Maps.
Quick Start
1. Connect Google Business Profile
curl https://api.postpeer.dev/v1/connect/googlebusiness \
-H "x-access-key: YOUR_API_KEY"Redirect the user to the returned OAuth URL. PostPeer creates one integration for each location the user selects.
2. Find the Location Account ID
curl "https://api.postpeer.dev/v1/connect/integrations?platform=googlebusiness" \
-H "x-access-key: YOUR_API_KEY"Use the integration id as the post target's accountId.
3. Publish an Update
curl -X POST "https://api.postpeer.dev/v1/posts" \
-H "x-access-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "We are open late this Friday.",
"platforms": [
{
"platform": "googlebusiness",
"accountId": "gbp_123",
"platformSpecificData": {
"topicType": "STANDARD",
"callToActionType": "LEARN_MORE",
"callToActionUrl": "https://example.com/friday-hours"
}
}
],
"publishNow": true
}'Post Types
STANDARDpublishes a general update.EVENTrequires an event title, start date, and end date.OFFERpublishes a promotion and can include a coupon code, redemption URL, and terms.
Calls to action other than CALL require callToActionUrl.
Platform-Specific Data
Pass this object in platformSpecificData when posting to Google Business Profile. Posts appear on Google Search and Maps.
| Field | Type | Required | Values and constraints | Description |
|---|---|---|---|---|
topicType | string | No | STANDARD, EVENT, OFFER | Post type. Defaults to STANDARD. Use EVENT for event posts, OFFER for promotional offer posts. |
callToActionType | string | No | BOOK, ORDER, SHOP, LEARN_MORE, SIGN_UP, CALL, GET_OFFER | Call-to-action button shown on the post. |
callToActionUrl | string | No | Format: uri | URL for the call-to-action. Required for all CTA types except CALL. |
eventTitle | string | No | — | Event title. Required when topicType is EVENT. |
eventStartDate | string | No | — | Event start date in YYYY-MM-DD format. Required when topicType is EVENT. |
eventStartTime | string | No | — | Event start time in HH:MM (24-hour) format. Required when topicType is EVENT. |
eventEndDate | string | No | — | Event end date in YYYY-MM-DD format. Required when topicType is EVENT. |
eventEndTime | string | No | — | Event end time in HH:MM (24-hour) format. Required when topicType is EVENT. |
offerCouponCode | string | No | — | Coupon code for OFFER posts. |
offerRedeemOnlineUrl | string | No | Format: uri | Online redemption URL for OFFER posts. |
offerTermsConditions | string | No | — | Terms and conditions text for OFFER posts. |
Limits
- Text is required and can contain at most 1,500 characters.
- A post can contain at most one image.
- Video and GIF posts are not supported.