Statistics for reviews
GET/api/v2/reviews/analytics
This endpoint let you view the global reviews statistics for all your businesses subscribed to Review Management.
You can use the following filters:
- by date (statistics before and/or after a date)
- by businesses (businesses id in list or not in list)
- by keywords
The response is aggregated according to the previously selected filters.
In order to get analytics evolution overtime returned by specific time range, please refer to Qualitative Evolution and Quantitative Evolution endpoints.
Request
Query Parameters
keywords=bonjour
returns all reviews containing the keywordbonjour
keywords=good+service
returns all reviews containing the combined keyword good service, without splitting the keyword. No reviews containing just good or just service will be returned.keywords=bonjour,good+service
: returns all reviews that contain either just bonjour, either just good service or both keywords at the same time.
Filter by business
Filter by keywords
Return all the reviews with not-nullable content, that contain the provided list of keywords.
Note: This is the content of the review and not the content of the reply.
The filter accepts both simple and composed words.
To indicate it's a composed keyword, add the +
as separator.
For example:
Filter by update_date
Return all the reviews whose update_date
>= given_date
.
For example : update_date__gte=2019-01-01T00:00:00
will return all reviews from the first January of 2019
until today.
Note : The update dates are stored in UTC.
Filter by update_date
Return all the reviews whose update_date
<= given_date
.
For example : update_date__lte=2020-01-01T00:00:00
will return all reviews from the date of the first review
until the first january of 2020.
Note : The update dates are stored in UTC.
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
Schema
Average reviews answer time in seconds. Only measured for reviews with a comment from Google My Business partner. It returns the time between the update date of a review and the creation date of its comments.
Average reviews rating.
Total number of treated reviews.
Total number of non treated reviews.
Total number of answered reviews (reviews with a comment).
Total number of reviews of type satisfied.
Satisfied reviews are defined by a rating of 4 or more for google_my_business and tripadvisor or recommended for facebook.
Total number of reviews of type neutral.
Neutral reviews are defined by a rating of 3 for google_my_business and tripadvisor.
Total number of reviews of type dissatisfied.
Dissatisfied reviews are defined by a rating of 2 or less for google_my_business and tripadvisor or not recommended for facebook.
Total number of reviews.
{
"answer_time": 10493.90997409,
"average": 3.0394,
"treated": 9,
"not_treated": 10,
"answered": 8,
"satisfied": 10,
"neutral": 6,
"dissatisfied": 3,
"total": 19
}
- 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"
}