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

Request

Name Method Description
/v1/kpis/total_reviews GET This end-point will retrieve the Total Reviews 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/total_reviews

Response Data

This section outlines the standard response values from the KPI api

 

How to read the response:

  • The total_reviews->weeks->1 key indicates the total number of reviews for the last week.
  • The total_reviews->weeks->2 key indicates the total number of reviews for the week before last. Etc. The possible keys are:
    • 1
    • 2
    • 3
    • 4
  • The total_reviews->months->1 key indicates the total number of reviews for the last month.
  • The total_reviews->months->2 key indicates the total number of reviews for the month before last. The possible keys are:
    • 1
    • 2

 

Sample Response

{
  "status": "success",
  "message": {
    "total_reviews": {
      "weeks": {
        "1": 5,
        "2": 0,
        "3": 7,
        "4": 2
      },
      "months": {
        "1": 15,
        "2": 23
      }
    }
  }
}