How to Fetch Data from an External API in Airtable

Aug 19, 2024Andy Cloke

This guide shows you how to fetch data from an external API in Airtable using the Data Fetcher extension. You'll learn to connect to REST APIs, import external data directly into your Airtable base, and map API response data to your Airtable fields.

What is an External API in Airtable?

An external API (Application Programming Interface) allows Airtable to connect with other web services and pull data directly into your base without manual entry. For example, you could connect to a weather API to import temperature data or a shipping API to track package status.

Can Airtable Pull Data from an API?

Yes, through extensions like Data Fetcher, which connects your base to external data sources for real-time synchronization.

This is valuable for importing customer data from CRMs, product information from e-commerce platforms, analytics from marketing tools, and inventory data from management systems.

In this tutorial, we'll use the REST Countries API to demonstrate how to pull API data into Airtable cells, importing country names, flags, regions, and population data.

Data Fetcher supports both REST and GraphQL APIs, giving you flexibility to connect with modern web services that use either standard.

Installing Data Fetcher

1. Add the Data Fetcher extension to your Airtable base.

2. Enter a password and sign up for a free Data Fetcher account, or sign in with Google.

Data Fetcher extension sign up.png

3. Once you've signed up for Data Fetcher, click Create your first request to begin setting up your API connection.

Create your first request button.png

How to Connect to an External API in Airtable

Follow these steps to configure your API request and import data from the REST Countries API:

1. Under Application, select Custom.

custom application.png

2. Give your request a name, like "Fetch API data".

3. Enter the URL for your API endpoint. For this example, we will use the following URL:

https://restcountries.com/v3.1/all
request name and URL.png

Configuring API Parameters and Authentication

Many APIs require additional configuration beyond the basic URL. Data Fetcher lets you customize:

  • Parameters: Add query parameters to filter or modify the API response.
  • Authorization: Configure authentication if the API requires API keys, tokens, or other credentials.
  • Headers: Add custom HTTP headers required by some APIs.

For the REST Countries API, we only need parameters to filter the response data.

4. Click + Add under Parameters.

add-parameter-countries-data.png

5. Enter fields under Parameter, then name,flags,region,population under Value.

added-fields-parameter.png

6. Click Save and Run in the bottom right corner.

fetch countries save and run.png

Mapping API Response Fields to Airtable Columns

After running the request, Data Fetcher shows the Response Field Mapping screen where you select which API data to import into your Airtable base.

countries response field mapping.png

Optional: To view the response from the API, click the right arrow () in the top left to open the settings sidebar.

open response field mapping sidebar.png

Then click Response preview, and Expand to see the actual response JSON.

response preview expand.png

The REST Countries API returns multiple name and flag formats. We'll select only the fields we need:

1. Click Deselect All.

deselect-all-countries-data.png

2. Select and map these fields:

  • Name common → Existing field Name
  • Flags png → New field Flag
  • Region → New field Region (set type to Single select)
  • Population → New field Population
name-and-flag-fields-countries.pngregion-and-population-countries.png

3. Click Save and Run.

save and run.png

Your country data now appears in Airtable with organized columns and proper field types.

api data imported into airtable.png

Conclusion

You've successfully connected an external API to Airtable and imported structured data automatically. This same process works with any REST or GraphQL API that returns JSON data, enabling you to automate data imports from business applications, analytics platforms, and external services.

What you accomplished:

  • Installed and configured the Data Fetcher extension.
  • Connected to an external API with custom parameters.
  • Mapped API response fields to Airtable fields.
  • Imported structured data with proper field formatting.

Whether you're syncing CRM data, e-commerce metrics, or real-time information, you can now eliminate manual data entry and keep your Airtable bases updated automatically.

Next Steps: Advanced API Integration Features

Now that you've connected your first external API, explore these advanced Data Fetcher features:

Automate Your Data Imports

Set up automatic scheduling to sync your API data at regular intervals without manual updates. Choose from minute, hourly, daily, or monthly sync frequencies.

Handle Large Datasets

Configure pagination for APIs that limit response sizes. Data Fetcher automatically makes multiple requests to import complete datasets.

Use Dynamic API Calls

Reference existing table data in your API requests to create dynamic calls based on records in your Airtable base.

Pre-built Integrations

Skip custom API configuration with ready-made connectors:

View all pre-built Airtable integrations for social media, marketing, and business applications.

G2 rating

Loved by Airtable users like you

Data Fetcher customers spend less time copying data and more time using it.

1 / 11

"Need data pumped into Airtable? Data Fetcher is the solution."

Data Fetcher is incredibly easy to use and understand. We have no API or data experience, yet our team can seamlessly integrate external data easily with Data Fetcher.

Thomas Coiner

Thomas Coiner

CEO, ProU Sports

Ready to build with Data Fetcher?

Start connecting your data sources with Airtable today.