How to connect the Zoom API to Google Sheets

Zoom is a cloud-based video conferencing service you can use to virtually meet with others, either by video, audio, or both. We can use the Zoom API to import data from Zoom into Google Sheets. In this tutorial, we’ll show you how to connect the Zoom API to Google Sheets in 6 steps:

  1. Install the Apipheny add-on
  2. Create an OAuth app
  3. Obtain an access token
  4. Choose a Zoom API Endpoint URL
  5. Enter the Zoom API Request into the Apipheny add-on
  6. Run the Zoom API Request in your Google Sheets

Step 1.) Install and open the Apipheny add-on in Google Sheets

To pull data from the Zoom API into Google Sheets, first install and open the Apipheny Google Sheets add-on.

Apipheny is a no-code API integrator for Google Sheets that you can use to make unlimited API requests, connect to unlimited APIs, save API requests, schedule API requests, and more. 

1. Install Apipheny by opening the following link on desktop and then clicking the Install button on the page: https://apipheny.io/install

2. After you’ve installed Apipheny, open a Google Sheet and then click on the Add-Ons or Extensions option in the top menu. In the Add-ons menu, you should see Apipheny.

Click Apipheny > Import API to open the Apipheny sidebar in your Google Sheets:

Opening the Apipheny add-on in Google Sheets
Opening the Apipheny add-on in Google Sheets

Step 2.) Create an OAuth app

After logging into your Zoom account, go to https://marketplace.zoom.us/ and click the Develop menu, then click Build App:

Zoom account dashboard
Zoom account dashboard

In the card corresponding to the OAuth app type, click the Create button:

Application types page
Application types page

Complete the App Name field, choose the Account-level app type, and then click the Create button:

Create an OAuth app section
Create an OAuth app section

Complete the Redirect URL for OAuth field, then click the Continue button:

The redirect URL section
The redirect URL section

Complete the Basic Information section for your app, then click the Continue button:

Basic information page
Basic information page

Choose any features you need for the app and then click the Continue button:

App's features page
App’s features page

In the Scopes section, choose any scopes you need for the app by clicking the +Add Scopes button:

App's scopes page
App’s scopes page

After you have added the scopes you need, click the Done button:

Finish adding scopes
Finish adding scopes

You’re finished with this step, you can now move on to Step 3.

Step 3.) Obtain an access token

In the Local Test section, click the Install button, then Continue:

Local Test section
Local Test section

On the next screen, click the Authorize button:

The Authorize window
The Authorize window

The browser will now navigate to the redirect URL that you provided earlier. One query parameter (code) will be added to your browser’s address bar, at the end of this redirect URL. The code parameter is a single use login code that we will now use to acquire a refreshable access token:

Redirect URL page
Redirect URL page

Next, open up a terminal and compose the following curl command:

curl -X POST https://zoom.us/oauth/token -H "Authorization: Basic <encoded_string>" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=authorization_code&code=<code>&redirect_uri=<redirect_URL>"

You’ll need to fill in a few parts:

  • <encoded_string> – This is a value obtained by base64-encoding a string consisting of the client ID and the client secret you generated previously, in Step 2, in the App Credentials section, separated by a colon (“:”). So you would base64 encode ClientID:ClientSecret
  • <code> – This should be the value of the code query parameter from the previous step
  • <redirect_URL> – This must be the redirect URL that you entered while creating your OAuth app
Console window for refreshable token
Console window for refreshable token

The response access_token may be used in order to access the Zoom API for up to one hour. The refresh_token may be used to get a new access token when that hour is up. Refreshing the access token can be done with the following command:

curl -X POST https://zoom.us/oauth/token -H "Authorization: Basic <encoded_string>" -H "Content-Type: application/x-www-form-urlencoded" -d "refresh_token=<refresh_token> &grant_type=refresh_token&redirect_uri=<redirect_URL> "

You’ll need to fill in a few parts here as well:

  • <encoded_string> – This is a value obtained by base64-encoding a string consisting of the client ID and the client secret you generated previously, in Step 2, in the App Credentials section, separated by a colon (“:”)
  • <code> – This should be the value of the code query parameter from the previous step. Make sure you repeat the steps to obtain a new one, because it expires quickly.
  • <redirect_URL> – This must be the redirect URL that you entered while creating your developer application
  • <refresh_token> – Should be replaced with the value of the refresh_token field from the previous command’s response

Step 4.) Choose a Zoom API Endpoint URL

In this section, we’ll show you how to browse the Zoom API documentation to find an API URL and endpoint that retrieves the specific information you need from your Zoom account. If you already know your whole API URL, or you want to use the same example URL as us, just skip to Step 5.

First, open the Zoom API documentation page: https://marketplace.zoom.us/docs/api-reference/

The menu on the left contains general information about the Zoom API and a list of grouped API endpoints:

Zoom API documentation page
Zoom API documentation page

An example endpoint group is Accounts. This endpoint group contains 14 endpoints.

In this case, we will describe the List sub accounts endpoint, which lists all the sub accounts that have been created by a master account:

https://api.zoom.us/v2/accounts

The documentation for this endpoint contains its HTTP method and URL path, a short description of the endpoint’s purpose, the account prerequisites, the necessary scopes, the authorizations used by the endpoint, the accepted path parameters, and the responses it can return:

Accounts endpoint documentation page
Accounts endpoint documentation page

If you want some specific data from your Zoom account, look through the documentation to determine if an endpoint exists for that data.

All API calls to the Zoom API should be made using the https://api.zoom.us/v2/ base domain. All endpoints and parameters would be appended to this base domain.

Step 5.) Enter the Zoom API Request into the Apipheny add-on

Okay, now we’re in the home stretch. Go back to your Google Sheet and make sure that the Apipheny add-on is open on the “Import” tab. With the Import Tab open, enter these details into the add-on:

Method: At the top of the Apipheny sidebar, select the HTTP method (GET or POST) as required by your Zoom API endpoint. For this example, we are using the GET method.

API URL: In Step 4, we explained how you can find the Zoom API endpoint that you need. Now copy the complete API URL into the Apipheny add-on, where it says API URL Path, followed by any GET parameters required for your query.

For this example, we are using the Users endpoint, which lists users on your account. The corresponding URL for this endpoint is:

https://api.zoom.us/v2/users

Headers: In the Headers of the Apipheny add-on section, add one row with the following key and value:

Header
Key:
Authorization
Value:
Bearer <your_token>
  • <your_token> is the value of the token you obtained previously, in Step 3. There should be a literal space between Bearer and <your_token>. Do not include the brackets “< >” around your token.
Zoom API request entered into Apipheny
Zoom API request entered into Apipheny

Step 6.) Run the Zoom API Request in your Google Sheets

The last step is to click the Run button at the bottom of the Apipheny add-on and then your Zoom data will be imported into your Google Sheet.

Zoom data imported into Google Sheets
Zoom data imported into Google Sheets

After making a successful request to the Zoom API, try querying a different Zoom API endpoint, or try using one of the more advanced features in the Apipheny add-on, such as:


More Tutorials

Related Posts