Search API Connector Documentation


Import Google Classroom Data to Google Sheets


In this guide, we’ll walk through how to pull Google Classroom API data data directly into Google Sheets, using the API Connector add-on for Sheets.


Before You Begin

Click here to install the API Connector add-on from the Google Marketplace.

Part 1: Connect to the Google Classroom API

If you haven’t connected API Connector to Google Classroom before, you’ll first need to initiate the connection as follows:

  1. Open up Google Sheets and click Extensions > API Connector > Manage Connections.
  2. In the list of available connections, find “Google Classroom” and click Connect.

  3. You will be directed to and asked to allow API Connector to access your classroom information. Choose the scopes you’d like access to and click Allow.
  4. You’ll then be returned to your Google Sheet, and can verify that your Google Clasroom connection is active in the Connections screen.

Part 2: Create Your Google Classroom API Request URL

We’ll first pull in a list of the courses you have access to.

  • API root:
  • Endpoint: /v1/courses

Putting it together, we get the full API Request URL:

Part 3: Pull Google Classroom API Data into Sheets

We can now enter these values into API Connector.

  1. In API Connector, click Create, choose GET from the dropdown menu, and paste in the Request URL we created above.
  2. Choose ‘Google Classroom’ from the authentication dropdown.
  3. We don’t need any headers so just leave that section blank.
  4. Create a new tab and click Set current to use that tab as your data destination.
  5. Name your request and click Run. A moment later you’ll see a list of your courses populate your sheet.

Part 4: More Example API Requests

For the full set of endpoints check the API documentation here. If you want to get an idea how it works, you can also check these examples:

  • List course announcements (get your courseId value from the previous request):{courseId}/announcements
  • List class coursework{courseId}/courseWork

Part 5: Technical Notes (Scopes)

This integration connects the Google Classroom API to Google Sheets. It enables the following scopes:

…/auth/classroom.announcementsView and manage announcements in Google Classroom
…/auth/classroom.course-work.readonlyView instructions for teacher-assigned work in your Google Classroom classes
…/auth/ your Google Classroom classes
…/auth/classroom.coursework.meSee, create and edit coursework items including assignments, questions, and grades
…/auth/classroom.coursework.studentsManage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer
…/auth/classroom.courseworkmaterialsSee, edit, and create classwork materials in Google Classroom
…/auth/ your Google Classroom guardians
…/auth/classroom.guardianlinks.students.readonlyView guardians for students in your Google Classroom classes
…/auth/classroom.push-notificationsReceive notifications about your Google Classroom data
…/auth/classroom.rosters.readonlyView your Google Classroom class rosters
…/auth/ your course work and grades in Google Classroom
…/auth/classroom.student-submissions.students.readonlyView course work and grades for students in the Google Classroom classes you teach or administer
…/auth/classroom.topicsSee, create, and edit topics in Google Classroom

Part 6: API Documentation

Official API documentation:

Previous Import Google Calendar Data to Google Sheets
Next Import Google Cloud Vision API Data to Google Sheets

Leave a Comment

Table of Contents