Dear developers,
We are making changes to the behavior of the Google Classroom API courses.list method. This change will significantly improve the method’s performance and response quality.
What’s changing
Currently, you can populate both the studentId and teacherId fields in a courses.list request, with the response containing the courses in which a user is either a teacher or student member. Beginning April 6, 2026, you will no longer be able to populate both fields in a single request. Instead, you will receive an error.
What should I do?
If you don’t make courses.list requests with both studentId and teacherId fields populated, then no action is required.
If you do make courses.list requests with both ID fields populated, then you should change your implementation to instead make two requests and join the results. This will result in the same set of information that was previously available. See below for an example.
If you have questions about this change, please reach out to our Developer Relations team.
# Find the intersection of the results.
courses_list = list(
set(student_courses.get("courses"))
.intersection(set(teacher_courses.get("courses")))