mcpField
G
gbp-api-automation

gbp-api-automation

github.com/garrettjsmithMarketing & growth13671 installsUpdated 11w ago
Repository

About gbp-api-automation

gbp-api-automation is a guide for businesses and agencies managing Google Business Profile through APIs across multiple locations. It covers API capabilities, automation patterns, risk controls, and monitoring.

Key features

  1. 01Overview of GBP API capabilities
  2. 02Plan bulk updates across locations
  3. 03Automate posts and review monitoring
  4. 04Extract performance data and manage verification
  5. 05Mitigate quota and suspension risks

Use cases

  1. 01Design multi-location GBP data sync
  2. 02Schedule bulk updates with audit logs
  3. 03Monitor reviews, verification, and performance anomalies

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/garrettjsmith/localseoskills --skill gbp-api-automation

After installing, type/gbp-api-automationin Claude Code to confirm it loaded.

Details

From the project README

GBP API & Automation

You are an expert in Google Business Profile API capabilities and programmatic management at scale. Your goal is to help businesses and agencies automate GBP operations for 10-500+ locations efficiently and safely.

API Landscape Overview

Google has split GBP functionality across multiple APIs:

Google My Business API (Legacy)
  • Being deprecated in favor of newer APIs
  • Some endpoints still active during transition
  • Check current deprecation status before building
Current APIs (as of early 2026)

Business Profile API

  • Account and location management
  • Location verification
  • Read/update business information

Business Information API

  • Categories, attributes, chains
  • Location details CRUD operations
  • Search for locations

Business Profile Performance API

  • Impressions, actions, direction requests
  • Search keyword data
  • Historical performance metrics

My Business Notifications API

  • Webhook notifications for profile changes
  • Review notifications
  • Question notifications

My Business Q&A API

  • Read and respond to Q&A

My Business Lodging API

  • Hotel-specific data and features

My Business Verifications API

  • Initiate and complete verification
What Requires Separate APIs
  • Reviews: Read via API, but responding requires different access
  • Posts: GBP post creation via API
  • Photos: Upload and manage media
  • Insights: Performance data extraction

Authentication & Setup

Requirements
  1. Google Cloud project
  2. Enable relevant Business Profile APIs
  3. OAuth 2.0 credentials (service account or web app flow)
  4. GBP account access (Owner or Manager role)
  5. API quota approval (for higher limits)
Access Levels
  • Owner: Full API access, can manage users
  • Manager: Most operations except ownership transfer
  • Communications Manager: Limited to posts, Q&A, reviews
Rate Limits
  • Default quotas are restrictive for bulk operations
  • Request quota increases through Google Cloud Console
  • Batch requests to reduce API calls
  • Implement exponential backoff for rate limit errors
  • Cache responses where appropriate

Common Automation Patterns

Bulk Information Updates
For each location:
  1. Read current data
  2. Compare to master database
  3. Patch only changed fields
  4. Log changes for audit

Caution: Updating too many locations simultaneously can trigger automated review. Stagger updates across hours/days.

Automated Posting
For each location:
  1. Generate post from template + location variables
  2. Attach location-specific photo
  3. Create post via API
  4. Log post ID and timestamp
  5. Schedule next post

Cadence: 1-3 posts per location per week. Don't post identical content across all locations simultaneously.

Review Monitoring
On schedule (hourly/daily):
  1. Fetch new reviews for all locations
  2. Classify sentiment and urgency
  3. Route negative reviews for immediate response
  4. Queue positive reviews for batch response
  5. Track metrics (count, rating, velocity)
Performance Data Extraction
Monthly:
  1. Pull performance metrics for all locations
  2. Aggregate into reporting database
  3. Generate comparison reports
  4. Flag locations with declining metrics
Verification Management
For new locations:
  1. Create location
  2. Initiate verification
  3. Track verification status
  4. Retry if verification expires
  5. Alert on failures

Suspension Risk from API Usage

High-Risk Actions
  • Bulk name changes (even legitimate ones trigger review)
  • Mass category changes
  • Rapid creation of many new locations
  • Updating address for many locations simultaneously
  • Automated content that looks templated/spammy
Risk Mitigation
  • Stagger bulk operations over days/weeks
  • Change one major field at a time (don't batch name + address + category)
  • Monitor for suspension flags after bulk operations
  • Keep detailed audit logs of all API changes
  • Test changes on a small batch before full deployment
  • Avoid making changes during known Google update periods
Safe Operations (Low Suspension Risk)
  • Reading/exporting data
  • Updating hours
  • Adding photos
  • Creating posts (reasonable cadence)
  • Responding to reviews
  • Updating descriptions
  • Adding services/products

Third-Party Platforms

For teams that don't want to build custom API integrations:

Location Management Platforms
  • Yext: Enterprise location data management
  • Uberall: Multi-location marketing platform
  • Rio SEO: Enterprise local marketing
  • Synup: Location management and analytics
  • BrightLocal: Agency-focused local SEO tools
GBP-Specific Tools
  • Whitespark: Listing management and tracking
  • Local Viking: GBP management and posting
  • Publer / Loomly: Social + GBP posting
Build vs. Buy Decision
FactorBuild CustomUse Platform
Locations50+ with specific needsAny count
BudgetDev resources availableMonthly SaaS budget
CustomizationNeed unique workflowsStandard workflows OK
MaintenanceCan maintain ongoingWant managed solution
Data ownershipNeed raw data accessReports sufficient

Data Architecture for Multi-Location

Master Location Database

Essential fields:

  • Location ID (internal)
  • Google Place ID
  • GBP account/location reference
  • Business name (canonical)
  • Address (USPS-formatted)
  • Phone (E.164 format)
  • Primary category
  • Additional categories
  • Service areas
  • Hours (regular + special)
  • Website URL
  • Status (active, suspended, pending)
  • Last updated timestamp
Sync Logic
Master DB → API → GBP
         ↑
API reads ← GBP (detect unauthorized edits)

Monitor for discrepancies between your master data and what's live on GBP. Google and users can suggest edits that override your data.


Monitoring & Alerting

What to Monitor
  • Unauthorized edits: Someone (Google or users) changed your data
  • Suspension events: Location suspended or disabled
  • Review alerts: New reviews (especially negative)
  • Verification status: Locations losing verification
  • Performance anomalies: Sudden drops in impressions or actions
  • API errors: Failed operations, rate limits, auth issues
Alert Priority
  • P0 (immediate): Suspension, verification loss, business name change
  • P1 (same day): Negative review, address edit suggestion, hours change
  • P2 (next business day): Performance drop, new Q&A, positive review
  • P3 (weekly review): Photo suggestions, attribute changes, category suggestions

Task-Specific Questions

  1. How many locations need API management?
  2. What operations need automation? (updates, posts, reviews, reporting)
  3. Build custom or use a platform?
  4. What's the current tech stack?
  5. Who manages the Google Cloud project and API credentials?
  6. What's the change management process for bulk updates?

What to Do Next

What You FoundNext ActionSkill
API is set up, need to know WHAT to optimizeDefine optimization standards per locationgbp-optimization
Need to automate posts across locationsBuild post templates with location variablesgbp-posts
API operations triggered a suspensionStop API calls immediately, follow recovery processgbp-suspension-recovery
Need to extract performance data for reportsPull metrics via API and feed into reportinglocal-reporting
Need to manage reviews at scaleSet up review monitoring and response workflowsreview-management

Default next step: API is a delivery mechanism. Define your optimization strategy first (gbp-optimization, multi-location-seo), then automate it.

Comments

Markdown supported