curl --request GET \
--url https://api.partoo.co/v2/feedback/analytics/metrics \
--header 'x-APIKey: <api-key>'import requests
url = "https://api.partoo.co/v2/feedback/analytics/metrics"
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/feedback/analytics/metrics', 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/feedback/analytics/metrics",
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/feedback/analytics/metrics"
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/feedback/analytics/metrics")
.header("x-APIKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/feedback/analytics/metrics")
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": 1,
"max_page": 1,
"data": [
{
"result.csat.score": 87.5,
"result.csat.avg_score": 4.38
}
],
"metadata": {
"feedback_form": null,
"feedback_form_field": null,
"result": null,
"business": null,
"group": null,
"group_section": null,
"user": null
}
}Feedback analytics metrics
⚠️ This feature is available only for organisations subscribed to Feedback Management. ⚠️
Retrieve aggregated feedback analytics data for your organisation.
A request is composed of:
- One or more
metrics— the data you want to compute (required) - An optional
dimensions— how the data is grouped- If omitted, the request returns the aggregated totals across all data matching the filters
- An optional
order_by— how the rows are sorted - Filters to narrow the data:
- By business (
business__in,business__notin) - By group or group section (
groups,group_section_id) - By date range (
filter_date__gte,filter_date__lte) - By survey or field (
survey__in,survey_field__in,survey_field_type__in) - By NPS score (
result_nps_score__in) - By free-text comment (
verbatim_query) - By data quality issues (
issues__in,issues__notin) - By business location (
city,query)
- By business (
Metrics are grouped into five categories:
| Category | Prefix | Examples |
|---|---|---|
| Survey | survey. | survey.response_rate, survey.nb__sent |
| CSAT | result.csat. | result.csat.score, result.csat.avg_score |
| NPS | result.nps. | result.nps.score, result.nps.promoters |
| Response | response. | response.avg_response_time, response.method.nb__ai |
| Result field | result_field. | result_field.rating, result_field.choices |
Dimensions control how rows are grouped:
- Entity:
business,user,feedback_form,group,group_section,feedback_form_field,result - Time:
day,month,year
Excel download: add download=true to receive the data as an .xlsx file instead of JSON.
Use table_name to customise the filename.
Metadata: add metadata=true to include full entity objects (businesses, forms, users…)
alongside the data array. Useful for resolving IDs to display names without extra API calls.
curl --request GET \
--url https://api.partoo.co/v2/feedback/analytics/metrics \
--header 'x-APIKey: <api-key>'import requests
url = "https://api.partoo.co/v2/feedback/analytics/metrics"
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/feedback/analytics/metrics', 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/feedback/analytics/metrics",
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/feedback/analytics/metrics"
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/feedback/analytics/metrics")
.header("x-APIKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/feedback/analytics/metrics")
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": 1,
"max_page": 1,
"data": [
{
"result.csat.score": 87.5,
"result.csat.avg_score": 4.38
}
],
"metadata": {
"feedback_form": null,
"feedback_form_field": null,
"result": null,
"business": null,
"group": null,
"group_section": null,
"user": null
}
}Authorizations
Query Parameters
Comma-separated list of analytics metrics to return. At least one value is required.
Survey metrics
survey.response_rate: Response rate (submissions / sends)survey.nb__sent: Number of surveys sentsurvey.nb__with_comments: Number of responses with a commentsurvey.nb__without_comments: Number of responses without a commentsurvey.total_surveys: Total number of survey submissionssurvey.clicks: Number of survey link clickssurvey.respondents: Number of unique respondentssurvey.verbatims: Number of verbatim commentssurvey_details: Full per-result survey details
Survey form stats metrics (email-delivery stats, best used with the feedback_form, business, or date dimensions)
survey.sent: Number of survey emails sentsurvey.delivered: Number of survey emails deliveredsurvey.opened: Number of survey emails openedsurvey.clicked: Number of survey link clicks (from the email)survey.error_bounces: Number of survey emails that bounced
CSAT metrics
result.csat.score: CSAT score (percentage of ratings 4-5)result.csat.avg_score: Average CSAT ratingresult.csat.pct__rating_5: Percentage of 5-star ratingsresult.csat.pct__rating_4: Percentage of 4-star ratingsresult.csat.pct__rating_3: Percentage of 3-star ratingsresult.csat.pct__rating_2: Percentage of 2-star ratingsresult.csat.pct__rating_1: Percentage of 1-star ratingsresult.csat.pct__rating_1_2: Percentage of 1-2 star ratings combinedresult.csat.rating_5: Count of 5-star ratingsresult.csat.rating_1_2: Count of 1-2 star ratings combinedresult.csat.total_responses: Total number of CSAT responses
NPS metrics
result.nps.score: NPS score (promoters % − detractors %)result.nps.promoters: Number of promoters (score 9-10)result.nps.passives: Number of passives (score 7-8)result.nps.detractors: Number of detractors (score 0-6)result.nps.avg__score: Average NPS raw scoreresult.nps.pct__promoters: Percentage of promotersresult.nps.pct__detractors: Percentage of detractorsresult.nps.pct__passives: Percentage of passivesresult.nps.pct__with_comments: Percentage of responses with commentsresult.nps.pct__without_comment: Percentage of responses without commentsresult.nps.total_responses: Total number of NPS responses
Response metrics
response.created.replied_under_2days: Replies sent within 2 daysresponse.created.replied_over_2days: Replies sent after 2 daysresponse.created.not_replied: Feedback not yet replied toresponse.method.nb__manual: Number of manual repliesresponse.method.nb__ai: Number of AI-assisted repliesresponse.not_replied: Total feedback not replied toresponse.under_2days: Total replies under 2 daysresponse.over_2days: Total replies over 2 daysresponse.avg_response_time: Average response time (seconds)response.total_surveys: Total surveys included in response statsresponse.total_responses: Total replies sentresponse.method_ai: Replies using AI (alias)response.method_manual: Replies sent manually (alias)
Result field metrics (use with feedback_form_field dimension)
result_field.rating: Rating value for a form fieldresult_field.content: Text content of a form field responseresult_field.choices: Selected choices for a form fieldresult_field.field_position: Position of the field within the formresult_field.result_count: Number of results for a field
"result.csat.score,result.csat.avg_score"
Comma-separated list of dimensions to group the returned data by. If omitted, the response contains aggregated totals across all data.
Entity dimensions
business: Group results by businessuser: Group results by userfeedback_form: Group results by survey formgroup: Group results by business groupgroup_section: Group results by group sectionfeedback_form_field: Group results by form field (use withresult_field.*metrics)result: Return individual feedback results (one row per result)
Date dimensions
day: Group by calendar daymonth: Group by calendar monthyear: Group by calendar year
business, user, feedback_form, group, group_section, feedback_form_field, result, day, month, year "business,month"
Comma-separated list of fields to sort by.
Prefix a field name with - to sort in descending order; no prefix sorts ascending.
Each field must be one of the metrics or dimensions values included in the request.
Examples: order_by=result.csat.score, order_by=-result.nps.score,business
"-result.csat.score"
Response
OK.
When download=true, the response is an Excel file (.xlsx) with a
Content-Disposition: attachment header containing the generated filename,
instead of the JSON body described below.
Was this page helpful?