Find an API

Search public APIs with auth details & Postman guides

← All APIs

Google My Business API

googleapis · Analytics

Analytics No Auth Free & Open analytics media location

The Google My Business API provides an interface for managing business location information on Google.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET mybusiness.accounts.list

Lists all of the accounts for the authenticated user. This includes all accounts that the user owns, as well as any accounts for which the user has management rights.

https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/accounts?alt=json&key=YOUR_API_KEY&name=test&fields=example&filter=example&$.xgafv=1&callback=example&pageSize=1&pageToken=example&quotaUser=example&uploadType=example&oauth_token=example&prettyPrint=true&access_token=example&upload_protocol=example

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/accounts?alt=json&key=YOUR_API_KEY&name=test&fields=example&filter=example&$.xgafv=1&callback=example&pageSize=1&pageToken=example&quotaUser=example&uploadType=example&oauth_token=example&prettyPrint=true&access_token=example&upload_protocol=example"
import requests
params = {
    "alt": "json",
    "key": "YOUR_API_KEY",
    "name": "test",
    "fields": "example",
    "filter": "example",
    "$.xgafv": "1",
    "callback": "example",
    "pageSize": "1",
    "pageToken": "example",
    "quotaUser": "example",
    "uploadType": "example",
    "oauth_token": "example",
    "prettyPrint": "true",
    "access_token": "example",
    "upload_protocol": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/accounts",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/accounts');
url.searchParams.set('alt', 'json');
url.searchParams.set('key', 'YOUR_API_KEY');
url.searchParams.set('name', 'test');
url.searchParams.set('fields', 'example');
url.searchParams.set('filter', 'example');
url.searchParams.set('$.xgafv', '1');
url.searchParams.set('callback', 'example');
url.searchParams.set('pageSize', '1');
url.searchParams.set('pageToken', 'example');
url.searchParams.set('quotaUser', 'example');
url.searchParams.set('uploadType', 'example');
url.searchParams.set('oauth_token', 'example');
url.searchParams.set('prettyPrint', 'true');
url.searchParams.set('access_token', 'example');
url.searchParams.set('upload_protocol', 'example');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/accounts")
	q := baseURL.Query()
	q.Set("alt", "json")
	q.Set("key", "YOUR_API_KEY")
	q.Set("name", "test")
	q.Set("fields", "example")
	q.Set("filter", "example")
	q.Set("$.xgafv", "1")
	q.Set("callback", "example")
	q.Set("pageSize", "1")
	q.Set("pageToken", "example")
	q.Set("quotaUser", "example")
	q.Set("uploadType", "example")
	q.Set("oauth_token", "example")
	q.Set("prettyPrint", "true")
	q.Set("access_token", "example")
	q.Set("upload_protocol", "example")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/accounts")
uri.query = URI.encode_www_form({
  "alt" => "json",
  "key" => "YOUR_API_KEY",
  "name" => "test",
  "fields" => "example",
  "filter" => "example",
  "$.xgafv" => "1",
  "callback" => "example",
  "pageSize" => "1",
  "pageToken" => "example",
  "quotaUser" => "example",
  "uploadType" => "example",
  "oauth_token" => "example",
  "prettyPrint" => "true",
  "access_token" => "example",
  "upload_protocol" => "example"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/accounts?" . http_build_query([
    "alt" => "json",
    "key" => "YOUR_API_KEY",
    "name" => "test",
    "fields" => "example",
    "filter" => "example",
    "$.xgafv" => "1",
    "callback" => "example",
    "pageSize" => "1",
    "pageToken" => "example",
    "quotaUser" => "example",
    "uploadType" => "example",
    "oauth_token" => "example",
    "prettyPrint" => "true",
    "access_token" => "example",
    "upload_protocol" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET mybusiness.attributes.list

Returns the list of available attributes that would be available for a location with the given primary category and country.

https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/attributes?alt=json&key=YOUR_API_KEY&name=test&fields=example&$.xgafv=1&country=US&callback=example&pageSize=1&pageToken=example&quotaUser=example&categoryId=example&uploadType=example&oauth_token=example&prettyPrint=true&access_token=example&languageCode=example&upload_protocol=example

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/attributes?alt=json&key=YOUR_API_KEY&name=test&fields=example&$.xgafv=1&country=US&callback=example&pageSize=1&pageToken=example&quotaUser=example&categoryId=example&uploadType=example&oauth_token=example&prettyPrint=true&access_token=example&languageCode=example&upload_protocol=example"
import requests
params = {
    "alt": "json",
    "key": "YOUR_API_KEY",
    "name": "test",
    "fields": "example",
    "$.xgafv": "1",
    "country": "US",
    "callback": "example",
    "pageSize": "1",
    "pageToken": "example",
    "quotaUser": "example",
    "categoryId": "example",
    "uploadType": "example",
    "oauth_token": "example",
    "prettyPrint": "true",
    "access_token": "example",
    "languageCode": "example",
    "upload_protocol": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/attributes",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/attributes');
url.searchParams.set('alt', 'json');
url.searchParams.set('key', 'YOUR_API_KEY');
url.searchParams.set('name', 'test');
url.searchParams.set('fields', 'example');
url.searchParams.set('$.xgafv', '1');
url.searchParams.set('country', 'US');
url.searchParams.set('callback', 'example');
url.searchParams.set('pageSize', '1');
url.searchParams.set('pageToken', 'example');
url.searchParams.set('quotaUser', 'example');
url.searchParams.set('categoryId', 'example');
url.searchParams.set('uploadType', 'example');
url.searchParams.set('oauth_token', 'example');
url.searchParams.set('prettyPrint', 'true');
url.searchParams.set('access_token', 'example');
url.searchParams.set('languageCode', 'example');
url.searchParams.set('upload_protocol', 'example');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/attributes")
	q := baseURL.Query()
	q.Set("alt", "json")
	q.Set("key", "YOUR_API_KEY")
	q.Set("name", "test")
	q.Set("fields", "example")
	q.Set("$.xgafv", "1")
	q.Set("country", "US")
	q.Set("callback", "example")
	q.Set("pageSize", "1")
	q.Set("pageToken", "example")
	q.Set("quotaUser", "example")
	q.Set("categoryId", "example")
	q.Set("uploadType", "example")
	q.Set("oauth_token", "example")
	q.Set("prettyPrint", "true")
	q.Set("access_token", "example")
	q.Set("languageCode", "example")
	q.Set("upload_protocol", "example")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/attributes")
uri.query = URI.encode_www_form({
  "alt" => "json",
  "key" => "YOUR_API_KEY",
  "name" => "test",
  "fields" => "example",
  "$.xgafv" => "1",
  "country" => "US",
  "callback" => "example",
  "pageSize" => "1",
  "pageToken" => "example",
  "quotaUser" => "example",
  "categoryId" => "example",
  "uploadType" => "example",
  "oauth_token" => "example",
  "prettyPrint" => "true",
  "access_token" => "example",
  "languageCode" => "example",
  "upload_protocol" => "example"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/attributes?" . http_build_query([
    "alt" => "json",
    "key" => "YOUR_API_KEY",
    "name" => "test",
    "fields" => "example",
    "$.xgafv" => "1",
    "country" => "US",
    "callback" => "example",
    "pageSize" => "1",
    "pageToken" => "example",
    "quotaUser" => "example",
    "categoryId" => "example",
    "uploadType" => "example",
    "oauth_token" => "example",
    "prettyPrint" => "true",
    "access_token" => "example",
    "languageCode" => "example",
    "upload_protocol" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET mybusiness.categories.list

Returns a list of business categories. Search will match the category name but not the category ID. *Note:* Search only matches the front of a category name (that is, 'food' may return 'Food Court' but not 'Fast Food Restaurant').

https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/categories?alt=json&key=YOUR_API_KEY&view=CATEGORY_VIEW_UNSPECIFIED&fields=example&$.xgafv=1&callback=example&pageSize=1&pageToken=example&quotaUser=example&regionCode=example&searchTerm=example&uploadType=example&oauth_token=example&prettyPrint=true&access_token=example&languageCode=example&upload_protocol=example

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/categories?alt=json&key=YOUR_API_KEY&view=CATEGORY_VIEW_UNSPECIFIED&fields=example&$.xgafv=1&callback=example&pageSize=1&pageToken=example&quotaUser=example&regionCode=example&searchTerm=example&uploadType=example&oauth_token=example&prettyPrint=true&access_token=example&languageCode=example&upload_protocol=example"
import requests
params = {
    "alt": "json",
    "key": "YOUR_API_KEY",
    "view": "CATEGORY_VIEW_UNSPECIFIED",
    "fields": "example",
    "$.xgafv": "1",
    "callback": "example",
    "pageSize": "1",
    "pageToken": "example",
    "quotaUser": "example",
    "regionCode": "example",
    "searchTerm": "example",
    "uploadType": "example",
    "oauth_token": "example",
    "prettyPrint": "true",
    "access_token": "example",
    "languageCode": "example",
    "upload_protocol": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/categories",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/categories');
url.searchParams.set('alt', 'json');
url.searchParams.set('key', 'YOUR_API_KEY');
url.searchParams.set('view', 'CATEGORY_VIEW_UNSPECIFIED');
url.searchParams.set('fields', 'example');
url.searchParams.set('$.xgafv', '1');
url.searchParams.set('callback', 'example');
url.searchParams.set('pageSize', '1');
url.searchParams.set('pageToken', 'example');
url.searchParams.set('quotaUser', 'example');
url.searchParams.set('regionCode', 'example');
url.searchParams.set('searchTerm', 'example');
url.searchParams.set('uploadType', 'example');
url.searchParams.set('oauth_token', 'example');
url.searchParams.set('prettyPrint', 'true');
url.searchParams.set('access_token', 'example');
url.searchParams.set('languageCode', 'example');
url.searchParams.set('upload_protocol', 'example');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/categories")
	q := baseURL.Query()
	q.Set("alt", "json")
	q.Set("key", "YOUR_API_KEY")
	q.Set("view", "CATEGORY_VIEW_UNSPECIFIED")
	q.Set("fields", "example")
	q.Set("$.xgafv", "1")
	q.Set("callback", "example")
	q.Set("pageSize", "1")
	q.Set("pageToken", "example")
	q.Set("quotaUser", "example")
	q.Set("regionCode", "example")
	q.Set("searchTerm", "example")
	q.Set("uploadType", "example")
	q.Set("oauth_token", "example")
	q.Set("prettyPrint", "true")
	q.Set("access_token", "example")
	q.Set("languageCode", "example")
	q.Set("upload_protocol", "example")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/categories")
uri.query = URI.encode_www_form({
  "alt" => "json",
  "key" => "YOUR_API_KEY",
  "view" => "CATEGORY_VIEW_UNSPECIFIED",
  "fields" => "example",
  "$.xgafv" => "1",
  "callback" => "example",
  "pageSize" => "1",
  "pageToken" => "example",
  "quotaUser" => "example",
  "regionCode" => "example",
  "searchTerm" => "example",
  "uploadType" => "example",
  "oauth_token" => "example",
  "prettyPrint" => "true",
  "access_token" => "example",
  "languageCode" => "example",
  "upload_protocol" => "example"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/googleapis.com/my-business/v4/v4/categories?" . http_build_query([
    "alt" => "json",
    "key" => "YOUR_API_KEY",
    "view" => "CATEGORY_VIEW_UNSPECIFIED",
    "fields" => "example",
    "$.xgafv" => "1",
    "callback" => "example",
    "pageSize" => "1",
    "pageToken" => "example",
    "quotaUser" => "example",
    "regionCode" => "example",
    "searchTerm" => "example",
    "uploadType" => "example",
    "oauth_token" => "example",
    "prettyPrint" => "true",
    "access_token" => "example",
    "languageCode" => "example",
    "upload_protocol" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. See official documentation for authentication and setup.

What can you build with Google My Business API?

Google My Business API is a Analytics API. Developers commonly use analytics APIs for:

  • tracking product usage and user behaviour
  • building custom reporting and BI dashboards
  • measuring marketing and campaign performance
  • running funnel, retention, and cohort analysis
  • aggregating metrics from multiple data sources

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Google My Business API is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide

Open documentation ↗