Connecting the JotForm API to Google Sheets

JotForm is an easy-to-use online form builder for every business. We can use the JotForm API to import data from JotForm into Google Sheets. In this tutorial, I’ll show you how to connect the JotForm API to Google Sheets in 5 steps:

  1. Install the Apipheny add-on
  2. Obtain an API key
  3. Choose a JotForm Endpoint
  4. Enter your JotForm API request into Apipheny
  5. Run the JotForm API request in your Google Sheet

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

To pull data from the JotForm API to Google Sheets, 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, save API requests, schedule API requests, and more. 

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

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

Opening the Apipheny add-on in Google Sheets

Step 2.) Obtain an API key

After logging into your JotForm account, click the Account icon, then click your name:

JotForm dashboard
JotForm dashboard

Next, in the Account section, click the API item in the menu on the left:

JotForm API section
JotForm API section

In the API section, click the Create New Key button to generate an API key:

Generate an API key
Generate an API key

Your API key is now displayed on the screen. Copy and paste your key in a safe location because you’ll need it in the next steps:

API Keys section
API Keys section

Step 3.) Choose a JotForm API Endpoint

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

First, open the JotForm API documentation page: https://api.jotform.com/docs/#overview

The menu on the left contains an Overview section and a list of categories, each with its own endpoints:

JotForm documentation page
JotForm documentation page

For example, if we click the /user category, a list of its endpoints will be displayed on the screen:

The User category page
The User category page

An example endpoint is Get User Information endpoint, which gets user account details for the current JotForm user. These include user account type, avatar URL, name, email, website URL, and account limits. This is the whole URL for this endpoint:

https://eu-api.jotform.com/user?apiKey=<api_key>

If you use this URL, don’t forget to replace <api_key> with your API key.

The documentation for each endpoint contains its HTTP method and URL path, a short description of the endpoint’s purpose, an example request as a cURL command and its associated example response, as well as a table with the accepted parameters’ names, types and descriptions:

Get User endpoint documentation page
Get User endpoint documentation page

All API calls for JotForm should be made to the https://eu-api.jotform.com/ base domain if you are from Europe or to https://api.jotform.com/ if you are from the USA or from another country.

Step 4.) Enter your JotForm 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 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 JotForm REST API endpoint that you need. Now copy and paste your complete JotForm 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 Get Form Details endpoint, which lists basic information about a form. This is what the whole URL looks like:

https://eu-api.jotform.com/form/?apiKey=<api_key>

Don’t forget to replace <form_id> with a real form id from your account and <api_key> with the API key you previously obtained at Step 2. Do not include the brackets “< >” around those values.

Headers aren’t required. You can leave this section blank in Apipheny.

Here’s what our API request looked like when entered into Apipheny (just the URL):

JotForm API request entered into Apipheny
JotForm API request entered into Apipheny

Step 5.) Run the JotForm 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 JotForm API data to be imported into your Google Sheet. Here’s what our request looked like when completed:

JotForm data imported into Google Sheets
JotForm data imported into Google Sheets

That’s it! You’ve successfully connected your JotForm account to Google Sheets using the JotForm API, Google Sheets API, and the Apipheny add-on.

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

  • Save and schedule your JotForm API request
  • Make a POST request to the JotForm API (if available)
  • Use the custom =APIPHENY() function to call the JotForm API request inside your spreadsheet
  • Create an API request by referencing the value of a cell in your JotForm API URL with three curly braces eg. {{{Sheet1!A1}}}

More Tutorials

Related Posts