curl --request GET \
--url https://api.partoo.co/v2/presence_analytics/keywords \
--header 'x-APIKey: <api-key>'import requests
url = "https://api.partoo.co/v2/presence_analytics/keywords"
headers = {"x-APIKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-APIKey': '<api-key>'}};
fetch('https://api.partoo.co/v2/presence_analytics/keywords', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.partoo.co/v2/presence_analytics/keywords",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-APIKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.partoo.co/v2/presence_analytics/keywords"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-APIKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.partoo.co/v2/presence_analytics/keywords")
.header("x-APIKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/presence_analytics/keywords")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-APIKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"page": 1,
"count": 6,
"max_page": 1,
"keywords": [
{
"branded": "discovery",
"bucket": "month",
"date": "2022-03-01",
"keyword": "bar",
"threshold": 42
},
{
"branded": "branded",
"bucket": "month",
"count": 9001,
"date": "2022-03-01",
"keyword": "foo"
},
{
"branded": "discovery",
"bucket": "month",
"date": "2022-02-01",
"keyword": "bar",
"threshold": 42
},
{
"branded": "branded",
"bucket": "month",
"count": 9001,
"date": "2022-02-01",
"keyword": "foo"
},
{
"branded": "discovery",
"bucket": "month",
"date": "2022-01-01",
"keyword": "bar",
"threshold": 42
},
{
"branded": "branded",
"bucket": "month",
"count": 9001,
"date": "2022-01-01",
"keyword": "foo"
}
]
}Profile keywords for your business
This endpoint lets you view the monthly Google Business Profile search keywords for all your businesses subscribed to Presence Management.
To access the analytics of a business, you need to:
- have
READaccess on it - have subscribed to Presence Management for this business.
- You can access the search keywords from Google Business Profile.
The analytics on search keywords are made available by Google Business Profile on a monthly basis.
You will receive the following metrics:
- count: The sum of the number of unique users that used the keyword in a month
- threshold: A threshold value indicating that the actual value is less than the threshold. Google Business Profile typically displays for search keywords that were used less than 15 times in a month.
You can use the following filters:
- by businesses (businesses id in list, and restricted to one business when using the keyword dimension.)
- by date (analytics before and/or after a date)
- by branded status (branded vs discovery keywords)
The response can be aggregated by:
- business id
- by date: month or year
- by keyword
- by branded status (branded vs discovery)
The response can be ordered by:
- business id
- by date: month, or year
- by keyword
- by branded status
The response can be ordered in ascending or descending order by any of the selected dimensions or metrics.
curl --request GET \
--url https://api.partoo.co/v2/presence_analytics/keywords \
--header 'x-APIKey: <api-key>'import requests
url = "https://api.partoo.co/v2/presence_analytics/keywords"
headers = {"x-APIKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-APIKey': '<api-key>'}};
fetch('https://api.partoo.co/v2/presence_analytics/keywords', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.partoo.co/v2/presence_analytics/keywords",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-APIKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.partoo.co/v2/presence_analytics/keywords"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-APIKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.partoo.co/v2/presence_analytics/keywords")
.header("x-APIKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/presence_analytics/keywords")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-APIKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"page": 1,
"count": 6,
"max_page": 1,
"keywords": [
{
"branded": "discovery",
"bucket": "month",
"date": "2022-03-01",
"keyword": "bar",
"threshold": 42
},
{
"branded": "branded",
"bucket": "month",
"count": 9001,
"date": "2022-03-01",
"keyword": "foo"
},
{
"branded": "discovery",
"bucket": "month",
"date": "2022-02-01",
"keyword": "bar",
"threshold": 42
},
{
"branded": "branded",
"bucket": "month",
"count": 9001,
"date": "2022-02-01",
"keyword": "foo"
},
{
"branded": "discovery",
"bucket": "month",
"date": "2022-01-01",
"keyword": "bar",
"threshold": 42
},
{
"branded": "branded",
"bucket": "month",
"count": 9001,
"date": "2022-01-01",
"keyword": "foo"
}
]
}Authorizations
Query Parameters
How the returned data will be aggregated. At most 'business' and one time dimensions of the list. If no dimension is given, the request will return the sum of each metric for all requested days and businesses.
business, keyword, month, year, branded "dimensions=keyword,month,branded"
Where the object is either a dimension or a metric and is used in the request. At most one in the list. - before a field to order_by DESC, nothing for ASC Available dimensions: business, keyword, month, year, branded Available metrics: count, threshold
<object>, -<object> "order_by=-count"
Was this page helpful?