How to pull data from Typeform API 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 in Google Sheets

To pull data from the Typeform API to Google Sheets easily and without writing any code, 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 (including the Typeform API), save API requests, schedule API requests, and more. Click here if you want to learn more about Apipheny.

1. Install Apipheny by clicking the Install button on this page.

Install Apipheny
Install Apipheny

2. After you’ve installed Apipheny, open a Google Sheet and then click on the Add-Ons 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 Sheet:

Open Apipheny
Open Apipheny

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:

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:

Typeform API Base/Root URL:

An example endpoint is Retrieve responses, and this is what the API URL looks like put together:{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:

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:

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:

Related articles:

Related Posts