curl --request GET \
--url https://api.partoo.co/v2/reviews/stats \
--header 'x-APIKey: <api-key>'import requests
url = "https://api.partoo.co/v2/reviews/stats"
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/reviews/stats', 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/reviews/stats",
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/reviews/stats"
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/reviews/stats")
.header("x-APIKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/reviews/stats")
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{
"answer_time": 10493.90997409,
"average": 3.0394,
"treated": 9,
"not_treated": 10,
"answered": 8,
"satisfied": 10,
"neutral": 6,
"dissatisfied": 3,
"total": 19
}{
"errors": {
"authentication": "User not authenticated"
}
}{
"errors": {
"authorization": "Operation not allowed"
}
}{
"errors": {
"json": "Resource not found"
}
}Global reviews statistics
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.
curl --request GET \
--url https://api.partoo.co/v2/reviews/stats \
--header 'x-APIKey: <api-key>'import requests
url = "https://api.partoo.co/v2/reviews/stats"
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/reviews/stats', 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/reviews/stats",
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/reviews/stats"
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/reviews/stats")
.header("x-APIKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/reviews/stats")
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{
"answer_time": 10493.90997409,
"average": 3.0394,
"treated": 9,
"not_treated": 10,
"answered": 8,
"satisfied": 10,
"neutral": 6,
"dissatisfied": 3,
"total": 19
}{
"errors": {
"authentication": "User not authenticated"
}
}{
"errors": {
"authorization": "Operation not allowed"
}
}{
"errors": {
"json": "Resource not found"
}
}Authorizations
Query Parameters
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:
keywords=bonjourreturns all reviews containing the keywordbonjourkeywords=good+servicereturns 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.
"bonjour,good+service"
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.
"2017-08-01T00:00:00"
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.
"2017-08-02T00:00:00"
Response
OK
Was this page helpful?