Stats

Retrieves the Stats of a score for a given iteractions

GEThttps://api.myhappyforce.com/api/v1/public/company/stats/scores/stats/{scoreId}
Path parameters
scoreId*string

Score from which the stats should be retrieved

Query parameters
Response

OK

Body
scoreIdstring
fromstring (date-time)

Date from where the stats of this results start

tostring (date-time)

Date from where the stats of this results ends

resultnumber (double)

Result for the given score

participantsinteger (int32)

The unique participants

dateResultsarray of ScoreStatsDateResult (object)

Results by date for the given score. (for each iteration requested)

distributionobject

How the votes of each participants are distributed

factorsarray of ScoreFactorStats (object)

Individual results for each factor composing the score

qualityenum

Quality of the measurement, based on the participation

NO_DATALOWWARNINGNORMALGOOD
valuationenum

Valuation of the score

NO_DATABADWARNINGNEUTRALGOODEXCELLENT
Request
const response = await fetch('https://api.myhappyforce.com/api/v1/public/company/stats/scores/stats/{scoreId}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "scoreId": "text",
  "from": "2024-05-19T13:43:15.851Z",
  "to": "2024-05-19T13:43:15.851Z",
  "result": 0,
  "dateResults": [
    {
      "date": "2024-05-19T13:43:15.851Z",
      "result": 0,
      "factors": [
        {
          "factorId": "text",
          "result": 0,
          "quality": "NO_DATA",
          "valuation": "NO_DATA"
        }
      ],
      "quality": "NO_DATA",
      "valuation": "NO_DATA"
    }
  ],
  "factors": [
    {
      "factorId": "text",
      "result": 0,
      "quality": "NO_DATA",
      "valuation": "NO_DATA"
    }
  ],
  "quality": "NO_DATA",
  "valuation": "NO_DATA"
}