Just tagging on to this... if you're looking only for SIS imported courses.....
If you get a list of courses using the Accounts - Canvas LMS REST API endpoint, then you can loop through and check to see which of the course objects have a value in the "sis_course_id" field.
Further explained...
Each course object looks like this: Courses - Canvas LMS REST API Documentation
Partial example here:
{
"id": 370663,
"sis_course_id": "",
"integration_id": "",
"name": "InstructureCon 2012",
As you can see, one of the attributes will be named "sis_course_id" .... and if that value has a value, then it has most likely been imported via a SIS Import. Of course, this is not 100%, because you can enter a SIS id for a course manually via the UI... but it's better than nothing.
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.