Module API only returning first 10 modules?

Jump to solution
gerosullivan
Community Novice

When I run this request:

curl -H 'Authorization: Bearer <token>' https://<canvas>/api/v1/courses/148/modules

In the JSON that is returned I only get the first 10 modules in our course of 14 modules.

Is there a limit to the number of modules returned by the Canvas API? There doesn't seem to be anything about this in the API documentation.

Many thanks,

Ger

Labels (1)
1 Solution
themidiman
Community Champion

If you look at this part of the API documentation here it mentions that "Requests that return multiple items will be paginated to 10 items by default. You can set a custom per-page amount with the ?per_page paramenter"

View solution in original post