The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
You don't get the CSV through the API. See https://community.canvaslms.com/message/126293-re-export-individual-course-gradebook-via-api for more information and alternatives.
Thank you for your response.
Are you implying that there is no API endpoint for the Marks export csv currently? We do not presently need any custom columns for instance, the stock csv is suited to our purposes; we just need a way to automatically pull the file on a recurring basis.
There is no API endpoint to export the gradebook CSV.
The call to get the gradebook CSV is a non-API call. It starts with a call to /courses/12345/gradebook_csv. This starts the gradebook generation process with an attachment_id and a progress_id. Canvas polls the progress API to determine when it is done. It repeats this call until it's finished and then it downloads the gradebook using an API call.
But the initial call that gets everything started is not an API call.
It appears that you do not have to be on the gradebook page to invoke the call. This means that you could write a script that logs into Canvas and sends the calls to start the generation of the CSV file and then do the rest from the API.
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.