How to Import NFT Data from OpenSea into Airtable

May 17, 2022Rosie Threlfall

In this tutorial, we'll import OpenSea NFT collection stats to Airtable. OpenSea is a digital marketplace for buying and selling digital items such as non-fungible tokens (NFTs).

Using the Data Fetcher extension, we'll import various stats from OpenSea such as the 'seven-day average price', 'total supply' and 'total volume'. We'll also schedule the OpenSea Airtable integration to automatically sync NFT collection stats to Airtable.

Create OpenSea Collection Stats Table

Firstly, create a table in your Airtable base called 'Stats'.

Change the name of the primary field to 'Slug' (or add a new field called 'Slug') then add the slugs of the collection stats you want to import. 

To find a slug, search for the collection on OpenSea, then copy the slug from the end of the URL. E.g. 'mutant-ape-yacht-club' is the slug from this URL: https://opensea.io/collection/mutant-ape-yacht-club

OpenSeaTable.png

Install Data Fetcher

Install Data Fetcher from the Airtable marketplace. After the extension launches, sign up for a free Data Fetcher account by entering a password and clicking 'Sign up for free'. If you already have a Data Fetcher account, sign in using the grey 'Have an account?' button at the bottom left of the box.

Create a Crypto Tracker in Airtable

Import OpenSea NFT Collection Stats to Airtable

Requests in Data Fetcher are how you import data to or send data from your Airtable base. We will create a request to import NFT collection stats from OpenSea into Airtable.

On the home screen of the Data Fetcher extension, click 'Create your first request'.

Create your first request in Airtable

On the create request screen in Data Fetcher, for Application, select 'OpenSea' to use the OpenSea Airtable integration.

OpenSea Choose Application to Import to Data Fetcher

For this tutorial, select 'None' for Authorization. Although for certain OpenSea endpoints, you might need to obtain an API key here. There is more info about OpenSea API keys here.

OpenSea-Auth.png

For Endpoint select 'Stats for a collection'.

OpenSea-DataFetcher-Endpoint.png

Enter a Name for your request, e.g. 'Import Collection Stats'. Then click 'Save & Continue'.

OpenSea-Airtable-Import-Options.png

For Collection slug, we want to insert a reference to our 'Slug' field in our 'Stats' output table. To do this, click the + button.

OpenSea-Collection-Slug.png

Then, on the modal that opens, select 'Stats' for Table, 'Slug' for Field, 'Grid view' for Run for every record in view. Then click 'Confirm'.

OpenSea-Table-reference.png

Collection slug should now contain a reference to the output table.

OpenSea Collection Slug Output

Make sure the Output Table & View is set to your 'Stats' table.

OpenSea Airtable Output Table

Click 'Save & Run'.

OpenSea-DataFetcher-Airtable.png

The request will run and the Response field mapping modal will open. This is where you set how the available fields from OpenSea should map to the fields in the output table.

For each OpenSea field, you can choose to import or filter it. We are going to import 'Seven day average price', 'Total supply', 'Total volume', 'Floor Price' and 'Num owners' (i.e. Number of owners). For an imported field, you can set whether to map to an existing field or create a new field and also set the field type using the dropdown.

Then click 'Save & Run'.

OpenSea Response field mappping

Data Fetcher will create any new fields in the output table and run the request for each collection to import the stats into Airtable.

OpenWeather Airtable Table

Import OpenSea Collection NFT Stats to Airtable Automatically

At the moment, we have to manually run the request to import the OpenSea collection stats. We can use Data Fetcher's scheduled OpenSea Airtable integration to automatically import or update them.

In Data Fetcher, scroll to Schedule and click 'Upgrade'.

table-1-schedule-upgrade-button.png

A new tab will open where you can select a plan and enter your payment details to upgrade.

data fetcher upgrade pricing plans.png

Return to the Data Fetcher extension and click 'I've done this'.

table-1-schedule-ive-done-this-button.png

Under Schedule click '+ Authorize'.

Schedule Data Fetcher

A window will open where you'll be prompted to authorize which Airtable bases you want Data Fetcher to have access to.

It's recommended that you select 'All current and future bases in all current and future workspaces' so bases will always be authorized for future use.

Click 'Grant access'.

schedule-authorize-bases.jpg

Back in Data Fetcher, Schedule this request will now be toggled to on.

Select how often you want the OpenSea Airtable integration to run, e.g. 'Every 15 mins'. Click 'Save' The request will now run on the schedule and import the OpenSea NFT collection stats automatically.

Group 11(2).png

Other Recent Posts

How to Scrape Instagram into Airtable using RapidAPI

How to Scrape Instagram into Airtable using RapidAPI

Apr 11, 2024

Andy Cloke

RapidAPI
How to Look Up Data in Airtable When a New Record is Created

How to Look Up Data in Airtable When a New Record is Created

Mar 2, 2024

Andy Cloke

No-CodeAirtable
How to Sync Pipedrive Data to Airtable Automatically

How to Sync Pipedrive Data to Airtable Automatically

Feb 13, 2024

Andy Cloke

Pipedrive