MarkdownCopies this page as Markdown, ready to paste into an AI assistant.
Google Business Profile API
7 Google Business Profile endpoints behind one key, priced in credits per call and routed to the cheapest healthy source.
On this page
Search & SEO · 7 endpoints · from 1 credit per call
Endpoints
- POSTGoogle Business Profile Accounts
/v1/run/google-business.accountsLists the Business Profile accounts the connected Google account owns or manages (personal account, location groups, organizations), with its role in each.1 creditper call - POSTGoogle Business Profile Delete Review Reply
/v1/run/google-business.delete_review_replyDeletes your public reply to a Google review of one of your business locations.1 creditper call - POSTGoogle Business Profile Locations
/v1/run/google-business.locationsLists the business locations of a Business Profile account: name, address, phone, categories, website, open status and Maps links.1 creditper call - POSTGoogle Business Profile Performance
/v1/run/google-business.performanceDaily performance of one of your business locations: profile impressions on Google Search and Maps by device, website clicks, calls, direction requests, bookings and more.1 creditper call - POSTGoogle Business Profile Reply to Review
/v1/run/google-business.reply_to_reviewPosts (or replaces) your public reply to a Google review of one of your business locations, and returns its moderation state.1 creditper call - POSTGoogle Business Profile Reviews
/v1/run/google-business.reviewsLists the Google reviews of one of your business locations with star rating, text, reviewer and your reply (and its moderation state), plus the average rating.1 creditper call - POSTGoogle Business Profile Search Keywords
/v1/run/google-business.search_keywordsThe searches on Google Search and Maps that showed one of your business locations, with monthly unique-user impressions per keyword.1 creditper call
Calling them
Every endpoint on this page is one POST to https://api.primaryapi.com/v1/run/{sku} with your API key and a JSON body. Responses share one envelope, so code written for one endpoint handles the others. For example, google-business.accounts:
curl -sS -X POST "https://api.primaryapi.com/v1/run/google-business.accounts" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'const res = await fetch('https://api.primaryapi.com/v1/run/google-business.accounts', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PRIMARYAPI_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({}),
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.error}`);
// found:false is a successful answer ("does not exist"), not an error
console.log(body.output.found ? body.output.data : body.output.reason, body.credits);import os
import requests
res = requests.post(
"https://api.primaryapi.com/v1/run/google-business.accounts",
headers={"Authorization": f"Bearer {os.environ['PRIMARYAPI_API_KEY']}"},
json={},
timeout=60,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['error']}")
# found=False is a successful answer ("does not exist"), not an error
print(body["output"]["data"] if body["output"]["found"] else body["output"]["reason"], body["credits"])New to PrimaryAPI? Start with the Quickstart, then read Making requests.