Catalog/psy-likert-score

Statistics

Likert scale scoring API

Scores raw Likert responses into mean, SD, mode, full distribution, and percent agree/neutral/disagree, with optional reverse-coding of flagged items. Answers 'What is the mean and distribution of my Likert item?', 'How do I reverse-code and summarize responses?'.

Price$0.02per request
MethodPOST
Route/v1/stats/likert-score
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
surveylikertscalescoringdistributionagreementreverse-codingquestionnaire
API URLhttps://x402.hexl.dev/v1/stats/likert-score
Integration docs
Example request
{
  "responses": [
    5,
    4,
    4,
    3,
    5,
    2,
    4,
    5,
    1,
    4
  ]
}
Example response
{
  "mean": 3.7,
  "sd": 1.3375,
  "n": 10,
  "mode": 4,
  "distribution": {
    "1": 1,
    "2": 1,
    "3": 1,
    "4": 4,
    "5": 3
  },
  "percentAgree": 70,
  "percentDisagree": 20,
  "percentNeutral": 10,
  "reverseCoded": false,
  "interpretation": "net agreement"
}
Input schema
{
  "type": "object",
  "required": [
    "responses"
  ],
  "properties": {
    "responses": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "examples": [
        [
          5,
          4,
          4,
          3,
          5,
          2,
          4,
          5,
          1,
          4
        ]
      ]
    },
    "scaleMin": {
      "type": "integer",
      "default": 1
    },
    "scaleMax": {
      "type": "integer",
      "default": 5
    },
    "reverseCode": {
      "type": "boolean",
      "default": false
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}