Airtable is a popular spreadsheet software and cloud collaboration tool.

In this tutorial, I’ll show you how to connect the Airtable REST API to Google Sheets in 5 steps:

  1. Install the Apipheny Add-on
  2. Generate an Airtable API Key
  3. Choose an Airtable Endpoint URL
  4. Enter your Airtable API request in Apipheny
  5. Run your Airtable API Request in your Google Sheets

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

To pull data from the Airtable API into 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. Click here for more info about Apipheny.

1. Install Apipheny by opening the following link on desktop and then clicking the Install button on the page: https://gsuite.google.com/marketplace/app/apipheny/966163326746

Install Apipheny in the Google App Store
Install Apipheny in the Google App Store to connect the Airtable API to Google Sheets

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 Sheets.

Open the Apipheny add-on in your Google Sheet
Open the Apipheny add-on in your Google Sheet

Step 2.) Generate an Airtable API Key

First make sure you’re logged in to your Airtable account.

Next, click on your account icon to display a drop-down menu, then click the Account item:

Log in to your Airtable account then click your account icon > Account
Log in to your Airtable account then click your account icon > Account

The Account overview page will then be displayed. Click the Generate API key button to generate an API key:

Click "Generate API Key" to generate your Airtable API key
Click “Generate API Key” to generate your Airtable API key

Your API key is now generated:

Airtable API key
Airtable API key

Click the key cassette to view your API key and copy and paste your API key in a safe location because you will need it in the next steps:

Save your API key somewhere safe

Step 3.) Obtain an Airtable Endpoint URL

In this section, we’ll show you how to browse the Airtable API documentation to find the endpoint URL that retrieves the information you need from your Airtable 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 Airtable API documentation page by clicking the Help icon in your account, and then choose the <> API documentation option:

Go to the API Documentation tab in your Airtable account
Go to the API Documentation tab in your Airtable account

Click on a base available in your account. If you previously created a base in your workspace, beside the existing ones, it will be available in this list.

In this example, we chose Project tracker:

Choose your base
Choose your base

In this example, the Airtable API for the Project tracker’s main page was displayed.

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

Example Airtable API endpoint documentation
Example Airtable API endpoint documentation

For example, when clicking the Clients table, the page scrolls to an introductory section and a list of its 5 endpoints:

  • List records
  • Retrieve a record
  • Create records
  • Update records
  • Delete records
Example airtable API endpoints
Example Airtable API endpoints

All API calls to Airtable should be made to this base URL:

https://api.airtable.com/v0/

An example Airtable endpoint is Retrieve a record endpoint, and this is what the whole API URL looks like when put together:

https://api.airtable.com/v0//Clients/

Each endpoint’s documentation contains descriptions of the endpoint’s purpose and parameters. On a separate column on the right, you can find the CURL request to the endpoint, the available parameters, the expected response and an example response:

Airtable API documentation
Airtable API documentation

Step 4.) Enter your Airtable 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 Airtable REST API endpoint that you need. Now copy and paste your complete Airtable 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 List records endpoint for the Design Project table, that lists records in Design projects. This is what the whole URL looks like:

https://api.airtable.com/v0/appGgtbrk5QjfW9th/Design%20projects?maxRecords=3&view=All%20projects

If you’re following the same example as us, you can copy and paste this URL into the “API URL” field in Apipheny.

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

Header
Key:
Authorization
Value:
Bearer <your_API_key>

Copy the key and value into Apipheny, where it says “Headers”. Where it says <your_API_key>, copy and paste your key 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_API_key”. Do not include the carrots “<>” around your API key.

Here’s what your Airtable API request will look like entered into Apipheny, if you’re following the same example:

Airtable API request entered into Apipheny
Airtable API request entered into Apipheny

Step 5.) Run the Airtable API Request in your Google Sheet

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

Airtable API data in Google Sheets
Airtable API data in Google Sheets

Congratulations! You’ve successfully connected the Airtable API to your Google Sheet and imported Airtable data into your sheet.

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

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

Related articles:

Related Posts