How to pull data from Typeform into Google Sheets

Typeform is a website and software for building forms and surveys. We can use the Typeform API to get data that users submitted into a spreadsheet like Google Sheets.

In this tutorial, I’ll show you step-by-step how to connect the Typeform API to Google Sheets in 5 steps:

  1. Install the Apipheny add-on
  2. Get a Typeform Personal Access Token
  3. Choose your Typeform API Endpoint URL
  4. Enter your Typeform API request into Apipheny
  5. Run the Typeform 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.) Get a Typeform Personal Access Token

1. After logging into your Typeform account, click your profile photo in the upper-right corner and select the Settings option:

Log in to your Typeform account then go to settings
Log in to your Typeform account then go to settings

2. In the left menu on the next page, click Personal tokens:

Click Personal Tokens
Click Personal Tokens

3. Click the Generate a new token button:

Generate a new token
Generate a new token

4. In the Token name field, type a name for the token, to help you identify it. Choose the needed scopes, covering the API actions this token can perform and the permissions it has. Finally, click the Generate token button:

Enter a name, choose Scopes, then click Generate token
Enter a name, choose Scopes, then click Generate token

5. Your Personal Access Token will then be displayed on your screen. Copy and paste it somewhere safe because you will need it in the next steps. Press the Got it button when you’re done:

Typeform API token
Typeform API token

Step 3.) Obtain a Typeform Endpoint URL

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

First, open the Typeform API documentation page: https://developer.typeform.com/get-started/hands-on/

The menu on the left contains a Get started guide and a list of Typeform APIs, each with its own endpoints:

Typeform API documentation
Typeform API documentation

Clicking on an API scrolls to that API’s section, containing a list of associated endpoints.

For example, when I click the Responses API, it scrolls to the list of its 4 endpoints:

  1. Migrate from Data API
  2. Retrieve responses
  3. Delete responses
  4. Retrieve response file

All API calls to Typeform should be made to base URL:

https://api.typeform.com/

An example endpoint is Retrieve responses, and this is what the API URL looks like put together:

https://api.typeform.com/forms/{form_id}/responses

Each endpoint’s documentation contains a short description of the endpoint’s purpose, the HTTP method used (eg. GET), a description of the available parameters, and the endpoint that you should append to the root API URL for querying the endpoint (eg. /forms/{form_id}/responses):

Typeform Responses API documentation
Typeform Responses API documentation

As you can see from this example, for endpoints that accept parameters, this documentation is where you would find them listed and explained, along with example inputs and responses.

Step 4.) Enter your Typeform API URL 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 or POST) 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 Typeform REST API endpoint that you need. Now copy and paste your complete Typeform API URL into the Apipheny add-on, where it says API URL Path, followed by any GET parameters required for your query (if applicable).

For this example, we are using the Retrieve your user information endpoint, to get our Typeform account’s alias, email address, and language. This is what the whole URL looks like:

https://api.typeform.com/me

You can copy and paste this URL into Apipheny if you want to use it as an example.

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

Key:
Authorization
Value:
Bearer your_access_token

Where it says your_access_token, copy and paste your actual token that you got in Step 2. Don’t forget to put the word “Bearer” before your token. There should be a space between “Bearer” and “your_access_token”, like this:

Typeform API request in Google Sheets
Typeform API request in Google Sheets

Step 5.) Run the Typeform API Request

Finally, click the Run button at the bottom of the Apipheny add-on and then wait for the Typeform API data to be imported into your Google Sheet.

Typeform API data in Google Sheets
Typeform API data in Google Sheets

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

Relevant links:


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?


Sponsored by Zink Virtual Tip Jar & Rewording.io Paraphrasing Tool

Accept donations on Twitch | Accept donations on Discord | Accept donations on YouTube | Accept donations on Telegram | Accept donations on Twitter | Accept donations on TikTok | Accept donations on Instagram | Accept donations on LinkedIn | Accept donations on Facebook | Accept donations on your Website