Skip to main content
GET
/
projects
/
{project_id}
/
ratings
/
stats
curl -X GET "https://seggwat.com/api/v1/projects/507f1f77bcf86cd799439011/ratings/stats" \
  -H "X-API-Key: oat_xxxxxxxxxxxxxxxxxxxxx"
{
  "total": 250,
  "helpful": 215,
  "not_helpful": 35,
  "percentage": 86.0
}
This endpoint returns statistics for helpful ratings only. For star ratings or NPS statistics, use the typed statistics endpoint.

Authentication

X-API-Key
string
required
Your Organization Access Token. See Authentication for details.

Path Parameters

project_id
string
required
The unique identifier of the project (MongoDB ObjectId). You can find this in the dashboard under project settings.

Query Parameters

path
string
Filter statistics by a specific page path. When provided, only ratings from that path are included in the statistics.

Response

total
integer
Total number of helpful ratings (helpful + not helpful).
helpful
integer
Number of positive (helpful) ratings.
not_helpful
integer
Number of negative (not helpful) ratings.
percentage
number
Percentage of helpful ratings (0.0 - 100.0).
curl -X GET "https://seggwat.com/api/v1/projects/507f1f77bcf86cd799439011/ratings/stats" \
  -H "X-API-Key: oat_xxxxxxxxxxxxxxxxxxxxx"
{
  "total": 250,
  "helpful": 215,
  "not_helpful": 35,
  "percentage": 86.0
}