How to import data from Calendly into Google Sheets

Calendly is a popular scheduling platform. We can use the Calendly API to import data from Calendly into Google Sheets. In this tutorial, we’ll show you how to connect the Calendly REST API to Google Sheets in 5 steps:

  1. Install the Apipheny add-on
  2. Obtain a personal access token
  3. Choose a Calendly API endpoint
  4. Enter your Calendly API request into Apipheny
  5. Run the Calendly API request in your Google Sheet

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

Apipheny is an API connector for Google Sheets. You can use Apipheny to connect your Google Sheets to unlimited API data sources, make unlimited API requests, and more. There is a 30 day free trial included.

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

2.) After you’ve installed Apipheny, open a Google Sheet and then click on the Extensions dropdown in the menu at the top.

In the dropdown list you should see Apipheny. Click Apipheny then click Import API to open the Apipheny sidebar in your Google Sheet.

open apipheny

Tip: you can open a new Google Sheet by entering this URL in your browser: sheet.new

Step 2.) Obtain a personal access token

In your Calendly account, go to the Integrations tab, then click the API and webhooks option:

The Integration tab
The Integration tab

Click the Get a token now link from the Personal access tokens section:

Starting the integration
Starting the integration

Click the Continue button in the warning alert:

Before you begin popup
Before you begin popup

Type in a name for your token, then click the Create token button:

Create your personal access token window
Create your personal access token window

Copy the token by clicking the Copy token button, and paste the value in a safe location, then click the Close button:

Token display
Token display

Your token will then shown in the Your personal access token section:

Tokens section
Tokens section

Step 3.) Choose a Calendly API endpoint

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

First, open the Calendly API documentation page: https://developer.calendly.com/api-docs

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

Calendly API documentation page
Calendly API documentation page

If we click the Event Types category, a list of its endpoints will be displayed:

Event Types category
Event Types category

An example endpoint is Get Event Type, which returns information about a specified Event Type. This is the whole URL for the endpoint:

https://api.calendly.com/event_types/uuid

If you use this URL, make sure to replace uuid with your own value.

The endpoint’s documentation contains a short description of the endpoint’s purpose, its HTTP method (GET), the URI, the path parameters, the cURL command and example responses:

Get Event Type endpoint documentation
Get Event Type endpoint documentation

All API calls to the Calendly API should be made to this base URL: https://api.calendly.com/

Step 4.) Enter your Calendly API request into Apipheny

Now 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, POST, PUT, etc) required by your API endpoint. For this example, we are using the GET method.

API URL: In step 3, we explained how you can find the Calendly REST API endpoint that you need. Now copy and paste your complete Calendly API URL into the Apipheny add-on, where it says API URL Path, followed by any parameters required for your query (if applicable).

For this example, we are using the List events endpoint from the Scheduled events section, which returns a list of scheduled events. This is what the whole URL looks like:

https://api.calendly.com/scheduled_events?organization=ORGANIZATION_LINK

If you use this URL, make sure to replace ORGANIZATION_LINK with your own organization link value. You can obtain the organization link by calling this URL first: https://api.calendly.com/users/me

Headers: in the Headers section, add two rows with the following keys and values:

Header 1
Key:
Content-Type
Value:
application/json

Header 2
Key:
Authorization
Value:
Bearer your_token

When entering header 2 value, make sure to replace your_token with the API key you obtained previously, in Step 2. There should be a literal space between Bearer and your_token.

Here’s what our request looks like:

Calendly API request entered into Apipheny
Calendly API request entered into Apipheny

Step 5.) Run the Calendly API request in your Google Sheet

Finally, the last step is to click the Run button at the bottom of the Apipheny add-on and then wait for the Calendly data to be imported into your Google Sheet. Here’s what our request looked like when completed:

Calendly data imported into Google Sheets
Calendly data imported into Google Sheets

After successfully calling the Calendly API, try calling a different endpoint, or try one of Apipheny’s other features to enhance your API calls.



Crypto API tutorials and more:


API Tutorials



API Knowledge

What is an API?
What is an API URL?
What are parameters?
What is an endpoint?
What is an API key/token?
What is basic authentication?
What are headers?
What is a GET request?
What is a POST request?