API to get courses, quizzes, modules, submission after CD1 shutdown

Jump to solution
hsun1
Community Member

We are using Canvas API to retrieve some courses, quizzes, modules, assignments and gradebook etc.

For instance, 

use API -> https://newhaven.instructure.com/api/v1/courses/25238/assignments to get all assignments of course 25238

use API -> https://newhaven.instructure.com/api/v1/accounts/self/courses/25238 to get course 25238

use APi -> https://newhaven.instructure.com/api/v1/courses/25238/assignments/459831/submissions to get all submissions of assignments 459831 on course 25238

and so one...

 

I am not quite sure what or where the "dataset" that those API actually point to (CD1 or CD2).

Since Canvas Data 1 will be shutdown by December 31, 2023, Can we still be able to use the above API to get the data as usual ? If not then how can we get the same information as above on CD2 ? new API ? new token ?

Thanks for any help

Rose Sun 

 

0 Likes
1 Solution
jerry_nguyen
Community Coach
Community Coach

@hsun1 

Canvas API and Canvas Data are 2 separate services. When you make a request to an API endpoint, you are interacting with Canvas LMS directly, and the data that returns is up-to-date. 

While Canvas Data is good for analytics (E.g. get data site-wide), data from Canvas Data 2 has a latency of 2 hours. 

You can get the same data through Canvas Data, once you loaded the data to a database you can run different queries to pull the data that you need. 

Feel free to send me a PM if you need help setting up Canvas Data 2.

View solution in original post