Get feedback by page
Returns feedback counts aggregated by documentation page path (thumbs up/down for contextual feedback, code snippet count, and total per page)
Authenticate with an admin API key.
Use this endpoint to export user feedback aggregated by documentation page path. Each entry shows the total feedback count for a page, broken down by type.
Filtering
Section titled “Filtering”Filter feedback by:
- Date range: Use
dateFromanddateToto limit results to a specific time period - Source: Filter by
code_snippet,contextual, oragentfeedback types - Status: Filter by status values like
pending,in_progress,resolved, ordismissed
Rate limits
Section titled “Rate limits”This endpoint allows 100 requests per organization per hour. All analytics endpoints share this limit.
Related topics
/v1/analytics/{projectId}/feedback/by-pageGet feedback by page
6 parameters
- projectIdstringpathrequired
- dateFromstringquery
- dateTostringquery
- limitnumberquery
- sourcestringquery
- statusstringquery
curl --request GET \
--url https://api.mintlify.com/v1/analytics/{projectId}/feedback/by-page \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mintlify.com/v1/analytics/{projectId}/feedback/by-page"
headers = {
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: "GET", headers: {"Authorization": "Bearer <token>"}};
fetch("https://api.mintlify.com/v1/analytics/{projectId}/feedback/by-page", 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.mintlify.com/v1/analytics/{projectId}/feedback/by-page",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.mintlify.com/v1/analytics/{projectId}/feedback/by-page"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.mintlify.com/v1/analytics/{projectId}/feedback/by-page")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mintlify.com/v1/analytics/{projectId}/feedback/by-page")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"feedback": [
{
"path": "<string>",
"thumbsUp": 123,
"thumbsDown": 123,
"code": 123,
"total": 123
}
],
"hasMore": true
}{
"error": "<string>",
"details": [
{
"message": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>"
}
]
}Authorizations
Section titled “Authorizations”AuthorizationstringrequiredThe Authorization header expects a Bearer token. Use an admin API key. This is a server-side secret key. Generate one on the API keys page in your dashboard.
Path Parameters
Section titled “Path Parameters”projectIdstringrequiredQuery Parameters
Section titled “Query Parameters”dateFrom?stringExample: 2024-01-01
dateTo?stringExample: 2024-01-01
limit?numberRequired range: 1 <= x <= 100
source?enum<string>Available options: code_snippet, contextual, agent, thumbs_only
status?stringResponse
Section titled “Response”200 — Per-page feedback aggregates with pagination flag
feedbackobject[]requiredFeedback counts aggregated by documentation page path.
Show child attributes
pathstringrequiredThe documentation page path.
thumbsUpnumberrequiredNumber of positive (thumbs up) contextual feedback entries.
thumbsDownnumberrequiredNumber of negative (thumbs down) contextual feedback entries.
codenumberrequiredNumber of code snippet feedback entries.
totalnumberrequiredTotal feedback entries for this page.
hasMorebooleanrequiredWhether additional results are available beyond this page.