[ARCHIVED] How to query all quiz grades for a student?

Jump to solution
spaldinglatham
Community Novice

I have instructor privileges in Canvas and I'm looking for a way to query every quiz grade from certain students in my class. I'm just getting started with the Canvas API, so any advice or direction would be great. Ultimately, I want to be able to make a call and get output similar to this:

Student 1: Quiz 1 (90) Quiz 2 (90) Quiz 3 (80) 

I have a course with thousands of students, and searching through them all on Canvas is super slow, so I'd like to be able to make a quick API call when I'm meeting with a student.

Labels (2)
1 Solution
James
Community Champion

 @spaldinglatham  

The data will come in JSON format, you'll need to display it as desired.

I would recommend the List submissions for multiple assignments endpoint of the Submissions API.

GET /api/v1/courses/:course_id/students/submissions?student_ids[]=:student_id&per_page=100

This will return all submissions for a student, up to 100 submissions. If you have more than 100 assignments, it will require pagination. You will need to replace :course_id and :student_id with the appropriate numbers.

View solution in original post