Get business profile keywords
GET/api/v2/presence/analytics/keywords
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
READ
access 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)
The response can be aggregated by:
- business id
- by date: month or year
- both business id and date
The response can be ordered by:
- business id
- by date: month, or year
The response can be ordered in ascending or descending order by any of the selected dimensions or metrics.
Request
Query Parameters
- before a field to order_by DESC, nothing for ASC
Possible values: [count
, threshold
]
List of analytics to return. At least one in that list.
Possible values: >= 1
Default value: 1
Page of items to fetch
Possible values: >= 1
Number of items per page.
Limit results to a specific businesses
Possible values: [business
, keyword
, month
, year
]
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.
Where the object is either a dimension or a metric and is used in the request. At most one in the list.
Filter by date
Return all the analytics whose date
>= given_date
.
Filter by date
.
Return all the analytics whose date
<= given_date
.
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Possible values: >= 1
Default value: 1
Current page
Possible values: >= 1
Default value: 1
Max page based on current per_page
value and count
Default value: 0
Number of items per page.
items
object[]
required
The lower-cased string that the user entered.
This is present only if the "keyword" dimension is in the request.
An aggregation of monthly keyword search count values.
The count values indicates the number of unique users that used the keyword in a month.
An aggregation of monthly threshold values.
The threshold value indicates that the real count of unique users that used the keyword is below this value.
First day of the aggregation
Time aggregation requested
{
"page": 1,
"max_page": 1,
"count": 0,
"items": [
{
"business_id": "string",
"keyword": "123",
"count": 123,
"threshold": 123,
"date": "2019-11-01",
"bucket": "month"
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
HTTP status code
Error message
Possible values: [query
, body
, response
, param
]
Where in the request the error occurred
errors
object[]
required
Possible values: non-empty
Path to the property with the error
constraints
object
required
Error message
{
"statusCode": 404,
"message": "Cannot find item",
"location": "query",
"errors": [
{
"path": "business.id",
"constraints": {
"object_required_property": "Required property"
}
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}