Through this API you can get KPI statistics for a Location in an agency

Request

Name Method Description
/v1/kpis/average_ratings GET This end-point will retrieve the Average Ratings KPI for a Location.

Request Parameters

Name Data Type Required/Optional Description
api_key string required This is the unique key given to you when the Agency was created.
location_id integer required/optional This is the unique identifier of the Location in our system.
client_location_id integer required/optional This is the unique identifier of the Location in your system.

Sample Request

GET : https://api.online-review-manager.com/v1/kpis/average_ratings

Response Data

This section outlines the standard response values from the KPI api

 

How to read the response:

  • The average_ratings->weeks->1 key indicates the average Review Rating for the last week.
  • The average_ratings->weeks->2 key indicates the average Review Rating for the week before last. Etc. The possible keys are:
    • 1
    • 2
    • 3
    • 4
  • The average_ratings->months->1 key indicates the average Review Rating for the last month.
  • The average_ratings->months->2 key indicates the average Review Rating for the month before last. The possible keys are:
    • 1
    • 2

 

Sample Response

{
  "status": "success",
  "message": {
    "average_ratings": {
      "weeks": {
        "1": 5,
        "2": 0,
        "3": 5,
        "4": 4
      },
      "months": {
        "1": 4.8667,
        "2": 4.6522
      }
    }
  }
}