[ARCHIVED] Student Enrollment Report

Jump to solution
kevinw
Community Contributor

I've been messing around with the API and the reports for the last two hours and I still can't seem to find the report I need. Is there a Canvas report that simply shows the student enrollment for each course? Not the individual students listed, but simply a number which states the number of students per course. 

Labels (2)
1 Solution
akkaufmann
Community Contributor

Hi  @kevinw ‌,

The course object can include the number of student enrollments in a course by adding the parameter include[]=total_students.

The full endpoint would be something like this:

GET /api/v1/courses/:id?include[]=total_students

OR

GET /api/v1/accounts/:account_id/courses/:id?include[]=total_students

The json that is returned will then include a 'total_students' value that will be the number of active enrollments in the course.

The full documentation is here: Courses - Canvas LMS REST API Documentation 

Alex

View solution in original post