Extract every comments out of a list of Instagram posts
Whoever is closest to his or her audience wins. In order to deliver the best content, product or service to your audience, you have to know what they think, like, not like, and so much more.
Too many brands assume what their audience likes. This API is here to validate, or better, invalidate, your assumptions and have scientific intelligence over reactions to your content.
Our tool will extract from a list of Instagram every single comments and all available information. What will you do with it: Spreadsheet statistics? Language analysis to find new keywords? Something else?
What will you need? ⚙️
Session cookie: Your session cookie from Instagram.
Spreadsheet URL: The link of a Google Spreadsheet with Instagram posts URLs in it.
Number of comments per post: The number of comments you want to collect per post. If left empty, the API will scrape all comments.
Number of posts per launch: The number of posts to process per API launch.
(You already have all that? Click straight away on "Use this API")
Which steps to follow?
1. Create an account on Phantombuster.com 💻
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.
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!
This API will output CSV and/or JSON containing the following fields:
username (Commenter Instagram username)
likeCount (Comment like count)
commentDate (Date of the comment)
postID (Instagram ID of comment)
profileUrl (Commenter Instagram profile URL)
ownerId (Commenter Instagram ID)
profilePictureUrl (Commenter profile picture URL)
Share this API
Your friends & colleagues need to know about this!