API Reference
Google Business API
Google Business Profile API requires Google Cloud Console setup, location-level OAuth, and separate endpoints for posts, offers, and events. Zernio handles all of that with one POST that goes straight to Search and Maps.
Quick Start
- 1.Get API KeySign up for free and get your API key in seconds.
- 2.Connect AccountUse our OAuth flow to connect Google Business accounts.
- 3.Start PostingMake API calls to post content to Google Business.
const response = await fetch('https://zernio.com/api/v1/posts', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
content: 'New menu items available! Visit us today 🍽️',
mediaItems: [{ type: 'image', url: 'https://example.com/menu.jpg' }],
platforms: [{
platform: 'googlebusiness',
accountId: 'loc_abc123'
}],
googleBusinessOptions: {
callToAction: 'LEARN_MORE',
callToActionUrl: 'https://example.com/menu'
},
publishNow: true
})
});
const post = await response.json();
console.log(post.post._id); // '65f1c0a9e2b5af0012ab34cd'Google Business Endpoints
Create or schedule a Google Business post with optional CTA
Get status and details of a Google Business post
Cancel a scheduled Google Business post
List all connected Google Business locations
Media Requirements
| Type | Format | Max Size | Notes |
|---|---|---|---|
| Image | JPEG, PNG | 5 MB | 1200x900 px recommended |
| Video | MP4 | 75 MB | Up to 30 seconds |
Zernio automatically transcodes and optimizes media for Google Business's requirements.
API Limits
Google Business Profile API has quota limits per project. Zernio manages all request pacing and automatic retries.
Zernio handles all rate limiting automatically. We queue and retry requests as needed.
Features
- ✓Post updates, offers, and events
- ✓Add call-to-action buttons (Book, Order, Learn More)
- ✓Schedule posts for optimal times
- ✓Multi-location management
- ✓Photo and video support
- ✓Webhook notifications for post status
- ✓Automatic CTA button formatting
Response Example
{
"post": {
"_id": "65f1c0a9e2b5af0012ab34cd",
"status": "published",
"content": "New menu items available! Visit us today 🍽️",
"platforms": [{
"platform": "googlebusiness",
"accountId": { "_id": "loc_abc123", "name": "Your Business Name" },
"status": "published",
"platformPostId": "xyz789"
}],
"publishedAt": "2025-01-10T10:30:00Z"
},
"message": "Post published successfully"
}Start building with Google Business API
Free tier available · No credit card required · 99.97% uptime

