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:
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: sheet.new
1. After logging into your Typeform account, click your profile photo in the upper-right corner and select the Settings option:
2. In the left menu on the next page, click Personal tokens:
3. Click the Generate a new token button:
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:
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:
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:
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:
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):
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.
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:
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.
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:
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