[ARCHIVED] How to query all quiz grades for a student?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.