Instagram Post Data Extractor

Extract all data from an Instagram Post

Table of Contents

Extract info from Instagram posts

You have a list of Instagram posts and need to quickly extract information from them? Don't waste your time copy/pasting anymore. Retrieve all the data you need of the specific Instagram posts you're targeting in a CSV file.

Our Solution

Launch an automated agent that will connect as yourself on Instagram. It will then browse and collect data from the designated posts.

What will you need? ⚙️

  • Session cookie: Your session cookie from Instagram.
  • Spreadsheet URL: The link of a Google Spreadsheet with Instagram post URLs in it.

(You already have all that? Click straight away on "Use this API")

Which steps to follow?

1. Create an account on 💻

If you haven't already, create a FREE account on Phantombuster. Our service will browse the web for you. It’s a website automator which runs in the cloud. Once done we'll follow up.

2. Use this API on your account.👌

Now that you're connected to Phantombuster, Click on the following button (it will open a new tab).

3. Click on Configure me!

You'll now see the 3 configuration dots blinking. Click on them.

4. Instagram authentication 🔑

Because the script will manipulate Instagram for you, it needs to be logged on your Instagram account. For that you just need to copy paste your session cookie in the script argument:

  • Using Chrome, go to your Instagram homepage and open the inspector
    → Right click anywhere on the page and select “Inspect”
    CMD+OPT+i on macOS
    F12 or CTRL+MAJ+i on Windows

  • Locate the “Application” tab

  • Select “Cookies” > “” on the left menu.

  • Locate the “sessionid” cookie.

  • Copy what’s under “Value” (Double click on it then Ctrl+C) and paste it into your API Configuration

// How to access your cookies with Firefox and Safari //

5. Add a Google Spreadsheet 📑

Below your session cookie you’ll find Spreadsheet URL.

Enter in the text field a link of a Google Spreadsheet with this same format (only column A is mandatory).

Your spreadsheet should contain a list of Instagram Posts URLs (one link per row).
You can specify the name of the column that contains the post links. Simply enter the column name in the next text field.

Please make sure your file is publicly accessible!

You can also enter a single Instagram post URL directly in the field.

Click on Launch & Enjoy!

It’s done! All that is left to do is to click on "launch" to try your script!

This will launch the bot and, if you didn't already change the spreadsheet URL, will collect the information of the Phantombuster team.

⚙️️Repetition setup ⚙️

Now that your API is ready, you should set up repetitive launches. That way, your scraping will be spread over days, weeks or even months. You can also specify the number of posts to scrape per launch, or leave that field blank to scrape every post from your list.

To do so, simply hit the “Settings” button to define when your API is launched:

Then, select a frequency:

Don't forget to click 💾 Save at the bottom of the page!

For example, 100 posts scraped per launch, 8 launches per day: you'll have a total of 800 posts per day. We recommend not exceeding these values with this API as it takes some time to scrape this many posts.


This API will output CSV and/or JSON containing the following fields:

  • postUrl (Instagram post URL)
  • profileUrl (Instagram profile URL)
  • profileName (Instagram username)
  • likes (Post like count)
  • description
  • postImage (Post image URL)
  • pubDate (Publication date)
  • location (Post location)

Share this API

Your friends & colleagues need to know about this!