Instagram Posts Extractor

Extract all pictures and content from a list of Instagram accounts

Table of Contents

Extract every posts from a list of Instagram accounts

When you're doing marketing, it's key to know your niche. And your competition.

Study your competition and use their good ideas, while leaving aside what you don't like that much.

This Instagram automation will visit a list of profiles for you and extract every single post they ever posted. This includes the image/video, but also the stats (likes, etc.), hashtags, engagements, locations and more.

Keep informed, get new ideas, filter out the stuff that didn't work, keep the good and discover the channels your competitors are focused on.

What will you need? ⚙️

  • Session cookie: Your session cookie from Instagram.
  • Spreadsheet URL: The link of a Google Spreadsheet with Instagram profile 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. Easy & safe authentication

This automation will connect to Instagram on your behalf. The safest and most efficient way for Phantombuster to authenticate as yourself is by using your session cookies.

To make that process as easy as possible you can use Phantombuster's browser extension. It's a 2-click installation.

If you're operating from another browser and/or want to do it manually, here is how to do it.

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 Profile URLs (one link per row).
You can specify the name of the column that contains the profile 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 profile 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!

⚙️️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 profiles to extract posts from per launch, or leave that field blank to scrape every profile 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!


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

  • postUrl
  • commentCount
  • likeCount
  • pubDate (Post date)
  • type (Photo or Video)
  • caption (Instagram caption of that post)
  • imgUrl (URL of the post's picture)
  • id (Instagram ID of the post)
  • profileUrl

Share this API

Your friends & colleagues need to know about this!