Use get_course API for getting course records