Quiz Statistics

Quiz Statistics API

API for accessing quiz submission statistics. The statistics provided by this interface are an aggregate of what is known as Student and Item Analysis for a quiz.

These statistics are extracted (and composed) from graded (manually or, when viable, automatically) submissions for a quiz and provide an insight into how the participant students had responded to each question, as well as insights into the reception of each question answer individually.

Some of these statistics are exclusive to Multiple Choice and True/False types of questions, others to other question types. See {Appendix: Question Specific Statistics} for a reference of these statistics.

A QuizStatistics object looks like:

{
  // The ID of the quiz statistics report.
  "id": 1,
  // The ID of the Quiz the statistics report is for. 
  // NOTE: AVAILABLE ONLY IN NON-JSON-API REQUESTS.
  "quiz_id": 2,
  // Whether there are any students that have made mutliple submissions for this
  // quiz.
  "multiple_attempts_exist": true,
  // In the presence of multiple attempts, this field describes whether the
  // statistics describe all the submission attempts and not only the latest ones.
  "includes_all_versions": true,
  // The time at which the statistics were generated, which is usually after the
  // occurrence of a quiz event, like a student submitting it.
  "generated_at": "2013-01-23T23:59:00-07:00",
  // The API HTTP/HTTPS URL to this quiz statistics.
  "url": "http://canvas.example.edu/api/v1/courses/1/quizzes/2/statistics",
  // The HTTP/HTTPS URL to the page where the statistics can be seen visually.
  "html_url": "http://canvas.example.edu/courses/1/quizzes/2/statistics",
  // Question-specific statistics for each question and its answers.
  "question_statistics": null,
  // Question-specific statistics for each question and its answers.
  "submission_statistics": null,
  // JSON-API construct that contains links to media related to this quiz
  // statistics object. 
  // NOTE: AVAILABLE ONLY IN JSON-API REQUESTS.
  "links": null
}

A QuizStatisticsLinks object looks like:

A QuizStatisticsQuestionStatistics object looks like:

A QuizStatisticsAnswerStatistics object looks like:

A QuizStatisticsAnswerPointBiserial object looks like:

A QuizStatisticsSubmissionStatistics object looks like:

Quizzes::QuizStatisticsController#index

GET /api/v1/courses/:course_id/quizzes/:quiz_id/statistics

Scope: url:GET|/api/v1/courses/:course_id/quizzes/:quiz_id/statistics

This endpoint provides statistics for all quiz versions, or for a specific quiz version, in which case the output is guaranteed to represent the latest and most current version of the quiz.

200 OK response code is returned if the request was successful.

Request Parameters:

Parameter
Type
Description

all_versions

boolean

Whether the statistics report should include all submissions attempts.

Example Response:

Appendixes

Appendix: Question Specific Statistics

Based on the question type it represents, the question_statistics document may include extra metrics. You can find these metrics below.

Multiple Choice

Fill in Multiple Blanks

Multiple Answers

Multiple Dropdowns

Multiple Dropdown question statistics look just like the statistics for Fill In Multiple Blanks.

Essay

Matching

File Upload

File Upload question statistics look just like the statistics for Essays.

Formula

Formula question statistics look just like the statistics for Essays.

Numerical

Short Answer (aka Fill in The Blank)

True/False

True/False question statistics look just like the statistics for Multiple-Choice.


This documentation is generated directly from the Canvas LMS source code, available on Github.

Last updated

Was this helpful?