How to import NFT data from Solanart into Google Sheets

Crypto API tutorials and more:

Solanart is one of the largest NFT marketplace on Solana. We can use the Solanart NFT API to import data from Solanart into Google Sheets. In this tutorial, we’ll show you how to connect the Solanart REST API to Google Sheets in 5 steps:

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

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

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.

open apipheny

Tip: you can open a new Google Sheet by entering this URL in your browser: sheet.new

Step 2.) Obtain an API key

For this tutorial, we are using the Solanart Scan API offered on RapidAPI.com.

To access this API, first log in to RapidAPI or sign up for a free account if you don’t have one already.

After you’re logged in, go to this page: https://rapidapi.com/web3tools-web3tools-default/api/solanart-scan1/

Then, scroll down using the scroll bar until you see the X-RapidAPI-Key field:

Finding X-RapidAPI-key field
Finding the X-RapidAPI-key field

Copy and paste the value of your API key to a safe location, because you’ll need this key in the next steps.

X-RapidAPI-key copied to a safe location
X-RapidAPI-key

After you’ve copied the value of your API Key, click the Subscribe to Test button and on the next page, choose a subscription plan. The free plan is fine to start with:

Plans for Solanart API
Plans for Solanart API

Step 3.) Choose a Solanart NFT API endpoint

In this step, we’ll show you how to browse the Solanart NFT API documentation to find the endpoint that retrieves the information you need from the Solanart API. 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 Solanart NFT API documentation page: https://rapidapi.com/web3tools-web3tools-default/api/solanart-scan1/

The menu on the left contains a list of five endpoints:

Solanart NFT documentation page
Solanart NFT documentation page

An example endpoint is Get Floor Price, which gets the floor price of the collection. This is the URL for the endpoint:

https://solanart-scan1.p.rapidapi.com/floor_price?collection=solpunks

The documentation for each endpoint contains a short description of the endpoint’s purpose, its HTTP method (GET), a table with the accepted parameters’ names, types and descriptions and an example request made using various technologies, including cURL:

Get Floor Price endpoint
Get Floor Price endpoint

All API calls to the Solanart NFT API should be made to the https://solanart-scan1.p.rapidapi.com/ base domain. All endpoints should be appended to this base URL.

Step 4.) Enter your Solanart NFT 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, POST, PUT, etc) required by your API endpoint. For this example, we are using the GET method. The documentation specifies what method is required for each endpoint.

API URL: In Step 3, we explained how you can find the Solanart API endpoint that you need. Now copy and paste your complete 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 All Collections endpoint, which returns all listed collections. This is what the whole URL looks like:

https://solanart-scan1.p.rapidapi.com/all_collections

Headers: In the Headers section of Apipheny, add two rows with the following keys and values:

Header 1
Key:
x-rapidapi-host

Value:
solanart-scan1.p.rapidapi.com

Header 2
Key:
x-rapidapi-key

Value:
API_key

In the second header value, you should replace API_key with the key that you previously obtained in Step 2.

This is what our complete Solanart NFT API request looked like when entered into Apipheny:

Solanart NFT API request entered into Apipheny
Solanart NFT API request entered into Apipheny

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

Solanart NFT data imported into Google Sheets
Solanart NFT data imported into Google Sheets

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

After making a successful request to the Solanart NFT API, try querying a different Solanart NFT API endpoint, or try using one of the more advanced features in the Apipheny add-on.


Crypto API tutorials and more:



Crypto API tutorials and more:


API Tutorials



API Knowledge

What is an API?
What is an API URL?
What are parameters?
What is an endpoint?
What is an API key/token?
What is basic authentication?
What are headers?
What is a GET request?
What is a POST request?