by Olumuyiwa Taiwo.
The only argument required by the core_grades_get_grades API call is the course ID - which seems to be exactly what you want.
The Web Services API documentation is at http://your.moodle.url/admin/webservices/documentation.php