Business Profile Performance API
googleapis · Analytics
The Business Profile Performance API allows merchants to fetch performance reports about their business profile on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access.
Authentication
Sample Requests
Returns the values for each date from a given time range and optionally the sub entity type, where applicable, that are associated with the specific daily metrics. Example request: `GET https://businessprofileperformance.googleapis.com/v1/locations/12345:fetchMultiDailyMetricsTimeSeries?dailyMetric
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/googleapis.com/businessprofileperformance/v1/v1/{location}:fetchMultiDailyMetricsTimeSeries?alt=json&key=YOUR_API_KEY&fields=example&$.xgafv=1&callback=example"aUser=example&uploadType=example&oauth_token=example&prettyPrint=true&access_token=example&dailyMetrics=example&upload_protocol=example&dailyRange.endDate.day=1&dailyRange.endDate.year=1&dailyRange.endDate.month=1&dailyRange.startDate.day=1&dailyRange.startDate.year=1&dailyRange.startDate.month=1"import requests
params = {
"alt": "json",
"key": "YOUR_API_KEY",
"fields": "example",
"$.xgafv": "1",
"callback": "example",
"quotaUser": "example",
"uploadType": "example",
"oauth_token": "example",
"prettyPrint": "true",
"access_token": "example",
"dailyMetrics": "example",
"upload_protocol": "example",
"dailyRange.endDate.day": "1",
"dailyRange.endDate.year": "1",
"dailyRange.endDate.month": "1",
"dailyRange.startDate.day": "1",
"dailyRange.startDate.year": "1",
"dailyRange.startDate.month": "1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/googleapis.com/businessprofileperformance/v1/v1/{location}:fetchMultiDailyMetricsTimeSeries",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/googleapis.com/businessprofileperformance/v1/v1/{location}:fetchMultiDailyMetricsTimeSeries');
url.searchParams.set('alt', 'json');
url.searchParams.set('key', 'YOUR_API_KEY');
url.searchParams.set('fields', 'example');
url.searchParams.set('$.xgafv', '1');
url.searchParams.set('callback', '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('dailyMetrics', 'example');
url.searchParams.set('upload_protocol', 'example');
url.searchParams.set('dailyRange.endDate.day', '1');
url.searchParams.set('dailyRange.endDate.year', '1');
url.searchParams.set('dailyRange.endDate.month', '1');
url.searchParams.set('dailyRange.startDate.day', '1');
url.searchParams.set('dailyRange.startDate.year', '1');
url.searchParams.set('dailyRange.startDate.month', '1');
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/businessprofileperformance/v1/v1/{location}:fetchMultiDailyMetricsTimeSeries")
q := baseURL.Query()
q.Set("alt", "json")
q.Set("key", "YOUR_API_KEY")
q.Set("fields", "example")
q.Set("$.xgafv", "1")
q.Set("callback", "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("dailyMetrics", "example")
q.Set("upload_protocol", "example")
q.Set("dailyRange.endDate.day", "1")
q.Set("dailyRange.endDate.year", "1")
q.Set("dailyRange.endDate.month", "1")
q.Set("dailyRange.startDate.day", "1")
q.Set("dailyRange.startDate.year", "1")
q.Set("dailyRange.startDate.month", "1")
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/businessprofileperformance/v1/v1/{location}:fetchMultiDailyMetricsTimeSeries")
uri.query = URI.encode_www_form({
"alt" => "json",
"key" => "YOUR_API_KEY",
"fields" => "example",
"$.xgafv" => "1",
"callback" => "example",
"quotaUser" => "example",
"uploadType" => "example",
"oauth_token" => "example",
"prettyPrint" => "true",
"access_token" => "example",
"dailyMetrics" => "example",
"upload_protocol" => "example",
"dailyRange.endDate.day" => "1",
"dailyRange.endDate.year" => "1",
"dailyRange.endDate.month" => "1",
"dailyRange.startDate.day" => "1",
"dailyRange.startDate.year" => "1",
"dailyRange.startDate.month" => "1"
})
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/businessprofileperformance/v1/v1/{location}:fetchMultiDailyMetricsTimeSeries?" . http_build_query([
"alt" => "json",
"key" => "YOUR_API_KEY",
"fields" => "example",
"$.xgafv" => "1",
"callback" => "example",
"quotaUser" => "example",
"uploadType" => "example",
"oauth_token" => "example",
"prettyPrint" => "true",
"access_token" => "example",
"dailyMetrics" => "example",
"upload_protocol" => "example",
"dailyRange.endDate.day" => "1",
"dailyRange.endDate.year" => "1",
"dailyRange.endDate.month" => "1",
"dailyRange.startDate.day" => "1",
"dailyRange.startDate.year" => "1",
"dailyRange.startDate.month" => "1"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns the values for each date from a given time range that are associated with the specific daily metric. Example request: `GET https://businessprofileperformance.googleapis.com/v1/locations/12345:getDailyMetricsTimeSeries?dailyMetric=WEBSITE_CLICKS&daily_range.start_date.year=2022&daily_range.s
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/googleapis.com/businessprofileperformance/v1/v1/{name}:getDailyMetricsTimeSeries?alt=json&key=YOUR_API_KEY&fields=example&$.xgafv=1&callback=example"aUser=example&uploadType=example&dailyMetric=DAILY_METRIC_UNKNOWN&oauth_token=example&prettyPrint=true&access_token=example&upload_protocol=example&dailyRange.endDate.day=1&dailyRange.endDate.year=1&dailyRange.endDate.month=1&dailyRange.startDate.day=1&dailyRange.startDate.year=1&dailyRange.startDate.month=1&dailySubEntityType.dayOfWeek=DAY_OF_WEEK_UNSPECIFIED&dailySubEntityType.timeOfDay.hours=1&dailySubEntityType.timeOfDay.nanos=1&dailySubEntityType.timeOfDay.minutes=1&dailySubEntityType.timeOfDay.seconds=1"import requests
params = {
"alt": "json",
"key": "YOUR_API_KEY",
"fields": "example",
"$.xgafv": "1",
"callback": "example",
"quotaUser": "example",
"uploadType": "example",
"dailyMetric": "DAILY_METRIC_UNKNOWN",
"oauth_token": "example",
"prettyPrint": "true",
"access_token": "example",
"upload_protocol": "example",
"dailyRange.endDate.day": "1",
"dailyRange.endDate.year": "1",
"dailyRange.endDate.month": "1",
"dailyRange.startDate.day": "1",
"dailyRange.startDate.year": "1",
"dailyRange.startDate.month": "1",
"dailySubEntityType.dayOfWeek": "DAY_OF_WEEK_UNSPECIFIED",
"dailySubEntityType.timeOfDay.hours": "1",
"dailySubEntityType.timeOfDay.nanos": "1",
"dailySubEntityType.timeOfDay.minutes": "1",
"dailySubEntityType.timeOfDay.seconds": "1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/googleapis.com/businessprofileperformance/v1/v1/{name}:getDailyMetricsTimeSeries",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/googleapis.com/businessprofileperformance/v1/v1/{name}:getDailyMetricsTimeSeries');
url.searchParams.set('alt', 'json');
url.searchParams.set('key', 'YOUR_API_KEY');
url.searchParams.set('fields', 'example');
url.searchParams.set('$.xgafv', '1');
url.searchParams.set('callback', 'example');
url.searchParams.set('quotaUser', 'example');
url.searchParams.set('uploadType', 'example');
url.searchParams.set('dailyMetric', 'DAILY_METRIC_UNKNOWN');
url.searchParams.set('oauth_token', 'example');
url.searchParams.set('prettyPrint', 'true');
url.searchParams.set('access_token', 'example');
url.searchParams.set('upload_protocol', 'example');
url.searchParams.set('dailyRange.endDate.day', '1');
url.searchParams.set('dailyRange.endDate.year', '1');
url.searchParams.set('dailyRange.endDate.month', '1');
url.searchParams.set('dailyRange.startDate.day', '1');
url.searchParams.set('dailyRange.startDate.year', '1');
url.searchParams.set('dailyRange.startDate.month', '1');
url.searchParams.set('dailySubEntityType.dayOfWeek', 'DAY_OF_WEEK_UNSPECIFIED');
url.searchParams.set('dailySubEntityType.timeOfDay.hours', '1');
url.searchParams.set('dailySubEntityType.timeOfDay.nanos', '1');
url.searchParams.set('dailySubEntityType.timeOfDay.minutes', '1');
url.searchParams.set('dailySubEntityType.timeOfDay.seconds', '1');
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/businessprofileperformance/v1/v1/{name}:getDailyMetricsTimeSeries")
q := baseURL.Query()
q.Set("alt", "json")
q.Set("key", "YOUR_API_KEY")
q.Set("fields", "example")
q.Set("$.xgafv", "1")
q.Set("callback", "example")
q.Set("quotaUser", "example")
q.Set("uploadType", "example")
q.Set("dailyMetric", "DAILY_METRIC_UNKNOWN")
q.Set("oauth_token", "example")
q.Set("prettyPrint", "true")
q.Set("access_token", "example")
q.Set("upload_protocol", "example")
q.Set("dailyRange.endDate.day", "1")
q.Set("dailyRange.endDate.year", "1")
q.Set("dailyRange.endDate.month", "1")
q.Set("dailyRange.startDate.day", "1")
q.Set("dailyRange.startDate.year", "1")
q.Set("dailyRange.startDate.month", "1")
q.Set("dailySubEntityType.dayOfWeek", "DAY_OF_WEEK_UNSPECIFIED")
q.Set("dailySubEntityType.timeOfDay.hours", "1")
q.Set("dailySubEntityType.timeOfDay.nanos", "1")
q.Set("dailySubEntityType.timeOfDay.minutes", "1")
q.Set("dailySubEntityType.timeOfDay.seconds", "1")
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/businessprofileperformance/v1/v1/{name}:getDailyMetricsTimeSeries")
uri.query = URI.encode_www_form({
"alt" => "json",
"key" => "YOUR_API_KEY",
"fields" => "example",
"$.xgafv" => "1",
"callback" => "example",
"quotaUser" => "example",
"uploadType" => "example",
"dailyMetric" => "DAILY_METRIC_UNKNOWN",
"oauth_token" => "example",
"prettyPrint" => "true",
"access_token" => "example",
"upload_protocol" => "example",
"dailyRange.endDate.day" => "1",
"dailyRange.endDate.year" => "1",
"dailyRange.endDate.month" => "1",
"dailyRange.startDate.day" => "1",
"dailyRange.startDate.year" => "1",
"dailyRange.startDate.month" => "1",
"dailySubEntityType.dayOfWeek" => "DAY_OF_WEEK_UNSPECIFIED",
"dailySubEntityType.timeOfDay.hours" => "1",
"dailySubEntityType.timeOfDay.nanos" => "1",
"dailySubEntityType.timeOfDay.minutes" => "1",
"dailySubEntityType.timeOfDay.seconds" => "1"
})
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/businessprofileperformance/v1/v1/{name}:getDailyMetricsTimeSeries?" . http_build_query([
"alt" => "json",
"key" => "YOUR_API_KEY",
"fields" => "example",
"$.xgafv" => "1",
"callback" => "example",
"quotaUser" => "example",
"uploadType" => "example",
"dailyMetric" => "DAILY_METRIC_UNKNOWN",
"oauth_token" => "example",
"prettyPrint" => "true",
"access_token" => "example",
"upload_protocol" => "example",
"dailyRange.endDate.day" => "1",
"dailyRange.endDate.year" => "1",
"dailyRange.endDate.month" => "1",
"dailyRange.startDate.day" => "1",
"dailyRange.startDate.year" => "1",
"dailyRange.startDate.month" => "1",
"dailySubEntityType.dayOfWeek" => "DAY_OF_WEEK_UNSPECIFIED",
"dailySubEntityType.timeOfDay.hours" => "1",
"dailySubEntityType.timeOfDay.nanos" => "1",
"dailySubEntityType.timeOfDay.minutes" => "1",
"dailySubEntityType.timeOfDay.seconds" => "1"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns the search keywords used to find a business in search or maps. Each search keyword is accompanied by impressions which are aggregated on a monthly basis. Example request: `GET https://businessprofileperformance.googleapis.com/v1/locations/12345/searchkeywords/impressions/monthly?monthly_rang
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/googleapis.com/businessprofileperformance/v1/v1/{parent}/searchkeywords/impressions/monthly?alt=json&key=YOUR_API_KEY&fields=example&$.xgafv=1&callback=example&pageSize=1&pageToken=example"aUser=example&uploadType=example&oauth_token=example&prettyPrint=true&access_token=example&upload_protocol=example&monthlyRange.endMonth.day=1&monthlyRange.endMonth.year=1&monthlyRange.endMonth.month=1&monthlyRange.startMonth.day=1&monthlyRange.startMonth.year=1&monthlyRange.startMonth.month=1"import requests
params = {
"alt": "json",
"key": "YOUR_API_KEY",
"fields": "example",
"$.xgafv": "1",
"callback": "example",
"pageSize": "1",
"pageToken": "example",
"quotaUser": "example",
"uploadType": "example",
"oauth_token": "example",
"prettyPrint": "true",
"access_token": "example",
"upload_protocol": "example",
"monthlyRange.endMonth.day": "1",
"monthlyRange.endMonth.year": "1",
"monthlyRange.endMonth.month": "1",
"monthlyRange.startMonth.day": "1",
"monthlyRange.startMonth.year": "1",
"monthlyRange.startMonth.month": "1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/googleapis.com/businessprofileperformance/v1/v1/{parent}/searchkeywords/impressions/monthly",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/googleapis.com/businessprofileperformance/v1/v1/{parent}/searchkeywords/impressions/monthly');
url.searchParams.set('alt', 'json');
url.searchParams.set('key', 'YOUR_API_KEY');
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('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');
url.searchParams.set('monthlyRange.endMonth.day', '1');
url.searchParams.set('monthlyRange.endMonth.year', '1');
url.searchParams.set('monthlyRange.endMonth.month', '1');
url.searchParams.set('monthlyRange.startMonth.day', '1');
url.searchParams.set('monthlyRange.startMonth.year', '1');
url.searchParams.set('monthlyRange.startMonth.month', '1');
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/businessprofileperformance/v1/v1/{parent}/searchkeywords/impressions/monthly")
q := baseURL.Query()
q.Set("alt", "json")
q.Set("key", "YOUR_API_KEY")
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("uploadType", "example")
q.Set("oauth_token", "example")
q.Set("prettyPrint", "true")
q.Set("access_token", "example")
q.Set("upload_protocol", "example")
q.Set("monthlyRange.endMonth.day", "1")
q.Set("monthlyRange.endMonth.year", "1")
q.Set("monthlyRange.endMonth.month", "1")
q.Set("monthlyRange.startMonth.day", "1")
q.Set("monthlyRange.startMonth.year", "1")
q.Set("monthlyRange.startMonth.month", "1")
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/businessprofileperformance/v1/v1/{parent}/searchkeywords/impressions/monthly")
uri.query = URI.encode_www_form({
"alt" => "json",
"key" => "YOUR_API_KEY",
"fields" => "example",
"$.xgafv" => "1",
"callback" => "example",
"pageSize" => "1",
"pageToken" => "example",
"quotaUser" => "example",
"uploadType" => "example",
"oauth_token" => "example",
"prettyPrint" => "true",
"access_token" => "example",
"upload_protocol" => "example",
"monthlyRange.endMonth.day" => "1",
"monthlyRange.endMonth.year" => "1",
"monthlyRange.endMonth.month" => "1",
"monthlyRange.startMonth.day" => "1",
"monthlyRange.startMonth.year" => "1",
"monthlyRange.startMonth.month" => "1"
})
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/businessprofileperformance/v1/v1/{parent}/searchkeywords/impressions/monthly?" . http_build_query([
"alt" => "json",
"key" => "YOUR_API_KEY",
"fields" => "example",
"$.xgafv" => "1",
"callback" => "example",
"pageSize" => "1",
"pageToken" => "example",
"quotaUser" => "example",
"uploadType" => "example",
"oauth_token" => "example",
"prettyPrint" => "true",
"access_token" => "example",
"upload_protocol" => "example",
"monthlyRange.endMonth.day" => "1",
"monthlyRange.endMonth.year" => "1",
"monthlyRange.endMonth.month" => "1",
"monthlyRange.startMonth.day" => "1",
"monthlyRange.startMonth.year" => "1",
"monthlyRange.startMonth.month" => "1"
]);
$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
- See official documentation for authentication and setup.
What can you build with Business Profile Performance API?
Business Profile Performance 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. Business Profile Performance API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?