API Reference
Google Business API
Post updates, offers, and events to Google Search and Maps with a single API call.
Quick Start
Get started in 3 steps
Get API Key
Sign up for free and get your API key in seconds.
Connect Account
Use our OAuth flow to connect Google Business accounts.
Start Posting
Make API calls to post content to Google Business.
const response = await fetch('https://getlate.dev/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'Endpoints
Google Business Endpoints
/v1/postsCreate or schedule a Google Business post with optional CTA
/v1/posts/{id}Get status and details of a Google Business post
/v1/posts/{id}Cancel a scheduled Google Business post
/v1/profilesList all connected Google Business locations
Media Specs
Media Requirements
| Type | Format | Max Size | Notes |
|---|---|---|---|
| Image | JPEG, PNG | 5 MB | 1200x900 px recommended |
| Video | MP4 | 75 MB | Up to 30 seconds |
Late automatically transcodes and optimizes media for Google Business's requirements.
Rate Limits
API Limits
Google Business Profile API has quota limits per project. Late manages all request pacing and automatic retries.
Late handles all rate limiting automatically. We queue and retry requests as needed.
Capabilities
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
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
Skip Google Cloud Console complexity. Late handles OAuth, location management, and call-to-action buttons so you can ship faster.
Free tier available • No credit card required • 99.97% uptime