cancel
Showing results for 
Search instead for 
Did you mean: 
mansi_dxtera
Community Participant

Get Instructor Analytics(page_views and participations) via API

Hi,

Is there an API to get analytics for Instructor?

I tried this api with InstructorId,

GET /api/v1/courses/:course_id/analytics/users/:student_id/activity

but that did not work, it gives

The specified resource does not exist.

 

Whereas for the same course, if I try to pass in a StudentId, then that data is available

0 Kudos
4 Replies
Chris_Munzo
Community Champion

We have already built a commercial analytics solution called Instructor Insight.  See attachment below and we have a video on our partner page:  Partner Listing: AspirEDU, Inc. 

Instructor Insight.jpg

 

 

Hi, 

Thank you! But I need the data via API, is it possible?

dtod
Community Contributor

This is the current analytics API: https://canvas.instructure.com/doc/api/analytics.html but as you have found it does not include instructors in a course-level call.

You can also trigger Reports via the API: https://canvas.instructure.com/doc/api/account_reports.html, and download them. Personally I built some code to get the report ID and wait for it to complete.

If you look at that screenshot above, you can see how you might use various API calls to get that info, e.g. the enrollments API is pretty full-featured: https://canvas.instructure.com/doc/api/enrollments.html

Not sure if you could build something using graphql - https://canvas.instructure.com/doc/api/file.graphql.html.

mansi_dxtera
Community Participant

Thanks everyone for your responses

 

We decided to go with:

GET|/api/v1/audit/course/courses/:course_id

List course change events for a given course.

 and 

GET|/api/v1/users/:user_id/page_views

Return a paginated list of the user's page view history in json format, similar to the available CSV download. Page views are returned in descending order, newest to oldest.