get all grades for a course
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2022
09:25 AM
Hi all
I am trying to get all the grades for a module using the canvasapi in python. I have a section where I can get the top, bottom and mean grades for each assignment.
course = canvas.get_course(14602) #id of the course
print(course.get_course_level_assignment_data())
What call should I type to get all the grades (linked to student names) for each assignment in my course?
Thanks
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2022
11:18 AM
The submissions API will contain that data.
https://canvas.instructure.com/doc/api/submissions.html"List Assignment Submissions" will accept individual assignment IDs and return all students for that one assignment."List submissions for multiple assignments" allows for a
student_ids[]=all
parameter that will return everything in the course for all assignments. You can filter to individual students with that if you want, and/or individual assignments with assignment_ids[]=
as well.That will only return user_ids for each submission though, so you will need to map those to actual names with another step if you need that.