Crypto API tutorials and more:
Solscan is a scanning tool that tracks all of Solana and Solana-related token transactions. We can use the Solscan API to import data from Solscan into Google Sheets. In this tutorial, we’ll show you how to connect the Solscan REST API to Google Sheets in 4 steps:
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.
Tip: you can open a new Google Sheet by entering this URL in your browser: sheet.new
In this section, we’ll show you how to browse the Solscan API documentation to find the endpoint that retrieves the data you need from Solscan. If you already know your API URL, or you want to use the same example URL as us, just skip to Step 3.
First, open the Solscan API documentation page: https://public-api.solscan.io/docs/#/
This page contains the base URL for the Solscan API (public-api.solscan.io/) and a list of endpoints:
An example endpoint is GET transaction/last which gets the last [limit] transactions:
https://public-api.solscan.io/transaction/last?limit=10
The endpoint’s documentation contains a short description of the endpoint’s purpose, its HTTP method (GET), the URI, a list of accepted parameters and example responses:
Once you’ve chosen an endpoint, 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 2, we explained how you can find the Solscan REST API endpoint that you need. Now copy and paste your complete Solscan 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 block/last endpoint which gets the last [limit] blocks. This is what the whole URL looks like:
https://public-api.solscan.io/block/last?limit=10
If you’re following the same example, just copy and paste this URL into Apipheny.
Headers: In the Headers section of Apipheny, add one row with the following key and value:
Key: Accept Value: application/json
This API doesn’t require authentication. This is what your request might look like in Apipheny:
Finally, the last step is to click the Run button at the bottom of the Apipheny add-on and then wait for the Solscan API data to be imported into your Google Sheet. Here’s what our request looked like when completed:
That’s it! You’ve successfully connected your Solscan account to Google Sheets using the Solscan API, Google Sheets API, and the Apipheny add-on.
Crypto API tutorials and more:
Crypto API tutorials and more:
Sponsored by Zink Virtual Tip Jar & Rewording.io Paraphrasing Tool
Accept donations on Twitch | Accept donations on Discord | Accept donations on YouTube | Accept donations on Telegram | Accept donations on Twitter | Accept donations on TikTok | Accept donations on Instagram | Accept donations on LinkedIn | Accept donations on Facebook | Accept donations on your Website