Sentiment breakdown
Overview
Get the number of positive, neutral, and negative reviews. The counts cover all reviews, not a period.
Use this for a sentiment chart.
You'll need a partner token.
Returns the three counts.
Prerequisites
- A Partner bearer token. See Authentication.
Base URL
| Environment | URL |
|---|---|
| Production | https://production-api.shoutaboutus.com |
| Development | https://development-api.shoutaboutus.com |
Endpoint
GET /api/v1/partner/stats/review-sentiments
Authentication
Partner token
- Results cover the active and pending locations of accounts directly under your partner or under its sub-partners.
- When the user behind the token is limited to some accounts, only those accounts are counted.
- Reviews from a site that's been removed from the location aren't counted.
Rate limit
120 requests per minute, counted per user (the token’s user). See Rate limits.
Request parameters
None.
Request body
None.
Request payload
None.
Response body
The payload is inside data.
| Field | Type | Description |
|---|---|---|
positive_count | integer | Reviews rated above 3 stars. |
neutral_count | integer | Reviews that are neither positive nor negative: rated 3, or with no star rating. |
negative_count | integer | Reviews rated below 3 stars. For Facebook, a review with no star rating (0) is counted as neutral, not negative. |
Response payload
{
"data": {
"positive_count": 1240,
"neutral_count": 180,
"negative_count": 95
}
}Examples
Success payload
See Response payload.
No reviews yet:
{
"data": {
"positive_count": 0,
"neutral_count": 0,
"negative_count": 0
}
}Error payload
401 Unauthenticated
{
"message": "Unauthenticated."
}429 Too many requests
{
"message": "Too Many Attempts."
}| Status | Meaning |
|---|---|
200 | The three counts. |
401 | The token is missing, expired or invalid. |
429 | More than 120 requests in a minute from this user. |
500 | Unexpected server error. |
Example request
curl --request GET \
--url "https://production-api.shoutaboutus.com/api/v1/partner/stats/review-sentiments" \
--header 'Authorization: Bearer <bearer-token>' \
--header 'Accept: application/json'Updated 17 days ago
Did this page help you?
