Is there an endpoint on Canvas API to retrieve the attempt time for a given submission?

Jump to solution
glonghini
Community Member

I'm trying to get the time that a student spent on an attempt. When checking a submission, there's the value on the top that says: This attempt took x minutes.

Is there an endpoint that exposes this information?

Thanks.

Labels (2)
0 Likes
1 Solution
mzimmerman
Community Coach
Community Coach

Hi @glonghini 

The Quiz Submissions API (https://canvas.instructure.com/doc/api/quiz_submissions.html ) returns the time that the student started the attempt, and the time that they submitted the attempt.   You would need to calculate the difference between the two in order to get the attempt time.

View solution in original post