[ARCHIVED] API submissions call omitting students

Jump to solution
afuenmayor
Community Explorer

Our campus is attempting to systematically pull detailed quiz submission results by student out of canvas using the following API call:

https://campus.instructure.com/api/v1/courses/<course_id>/assignments/<assignment_id/submissions?inc...

However we've noticed that this Get returns only a fraction of the total submissions for this assignment. We can see these submissions when we navigate to the response details within the Canvas web portal. We can also see the scores of all the students using Canvas Data. But for some reason this api call only gives us a small sample of the total data.

Anyone else run into this issue? Any ideas how to solve it?

Labels (2)
1 Solution
James
Community Champion

 @afuenmayor ,

Have you dealt with pagination? I don't see it in your URL and without it, Canvas will only return the first 10 responses.

The unspecified limit it mentions seems to be 100 for most API calls. If you have less than 100 students, you'll likely be okay, but there will be times where you will have to use pagination so it's a good thing to know about.

There are a several of threads in the Canvas Developers‌ group that can help with pagination. Here are a couple.

View solution in original post