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:
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.
Tip: you can open a new Google Sheet by entering this URL in your browser:
In your Calendly account, go to the Integrations tab, then click the API and webhooks option:
Click the Get a token now link from the Personal access tokens section:
Click the Continue button in the warning alert:
Type in a name for your token, then click the Create token button:
Copy the token by clicking the Copy token button, and paste the value in a safe location, then click the Close button:
Your token will then shown in the Your personal access token section:
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:
If we click the Event Types category, a list of its endpoints will be displayed:
An example endpoint is Get Event Type, which returns information about a specified Event Type. This is the whole URL for the endpoint:
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:
All API calls to the Calendly API should be made to this base URL:
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:
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:
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:
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:
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:
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: