Module API only returning first 10 modules?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2016
09:03 AM
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
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2016
09:22 AM
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"