Get organization aggregate rating

This method allows you to get organization's average rating by passing the Organization ID as a parameter. It includes the total number of n-star ratings.

HTTP method: GET
Authentication: Public_key::Private_key
URL: https://api.trustytribe.com/organization/{organizationId}/aggregate-review

Curl Request :


curl -X GET --header 'Accept: application/json' --header 'Authorization: Public_key::Private_key' 'https://api.trustytribe.com/organization/{organizationId}/aggregate-review'
            
<> Parameters
organizationId | Required Integer

The id of the organization whose aggregate rating is to be fetched.

Example: https://api.trustytribe.com/organization/666/aggregate-review


Response
{
  "averageRating": [
    {
      "rating": 5,
      "totalRating": 3
    },
    {
      "rating": 4,
      "totalRating": 1
    },
    {
      "rating": 3,
      "totalRating": 1
    },
    {
      "rating": 1,
      "totalRating": 1
    }
  ]
}