Is there an API to get analytics for Instructor?
I tried this api with InstructorId,
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
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.
Thanks everyone for your responses
We decided to go with:
List course change events for a given course.
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.