In this article, we’ll learn how to import Instagram data to Google Sheets. We can import Instagram data such as post likes, comments, stories of a user, a user’s followers and following lists, discover hashtags, and many more.
We’ll use an extension in Google Sheets–Amigo Data–to pull the data into Google Sheets. With it, you can easily find trending hashtags, find keywords related to a hashtag, and discover related profiles. Be you an influencer or a marketer, you’ll find it handy.
Read on to know how to import Instagram data to Google Sheets. Following are the steps to import Instagram data to Google Sheets.
How to import Instagram data to Google Sheets
Install the Amigo Data extension in Google Sheets
Install the Amigo Data Google Sheets add-on from the Google Workspace Marketplace.
Click here to install.
Alternatively, you can get it from Google Sheets.
- Open a new sheet
- Go to Extensions→Add-ons→Get add-ons
- Search for Amigo Data and install
Get the endpoint URL
Sign up or log in to RapidAPI.
Once you’re logged in, go to the Instagram API Documentation page in RapidAPI.
Click on the Subscribe to Test button and subscribe to a plan that’s right for you.
On subscribing to a plan, an API key will be generated, which is used to authenticate API calls to RapidAPI.
Click Endpoints to go back to the API documentation. On the left is the list of the available endpoints. Select any one, for example Hashtag Posts. This endpoint will return the top posts for a given hashtag along with the post metrics such as likes and comments.
There is only one required parameter for this endpoint, which is the hashtag parameter. Enter the keyword for which you want to fetch the information.
On the right of the screen under Code Snippets, we’ll find the URL along with the parameters and the headers.
Change the language to Shell→cURL. The query parameters are appended in the cURL so that we do not have to enter the parameters manually. Copy the URL and also note the headers. These will be used in the next step.
Import the data to Google Sheets
Open Google Sheets and launch Amigo Data from the sheet into which you want to fill the data. To connect to Amigo Data, click Extensions→Amigo Data→Connect.
You’ll be presented with a list of sources to connect to. Choose Custom API.
Paste the endpoint URL in the API URL field. Do not include the apostrophes. (Likewise for the headers.)
Then expand the Details tab and enter the headers.
Then add the queries by clicking the “+QUERY” button and then entering the query names and the values. Name: hashtag, Value: marketing.
Click the PREVIEW button. Flatten and expand the nested datasets and delete the columns that are not required. Then click IMPORT.
The data will be imported into Google Sheets in a moment. Below is a snippet of the imported data.
Once the data have been imported into Google Sheets, they can be updated automatically at regular intervals–hourly, daily, weekly or on custom days–should you so wish, and get these data sent to your inbox. Click here to learn how set a refresh schedule and set up alerts in Amigo Data.
Visit our blog for to find out about the kinds of data that you can import to Google Sheets and how you can track stock and other financial data from Google Sheets.
Some recommended articles: