Actor picture

Instagram Comment Scraper

zuzka/instagram-comment-scraper

Add one or more Instagram post URLs to scrape all comments fast. Get post ids, position, timestamp, owner ids, usernames, profile pics, and URLs. Download data in structured formats such as JSON, CSV, XML, Excel, and HTML and use in reports, spreadsheets, and applications.

No credit card required

Author's avatarZuzka Pelechov谩
  • Modified
  • Users2,035
  • Runs10,724
Actor picture
Instagram Comment Scraper

What is Instagram Comment Scraper?

Instagram Comment Scraper allows you to extract comments from one or more Instagram post URLs.

Note that the actor returns a maximum of 50 comments per post. It only extracts comments shown to Instagram users who are not logged in. That means the results may differ from what you see when logged in to your Instagram account. To try it out, open an incognito window on your browser and copy the post URL. The comments you鈥檒l see there are the comments that this actor will save in a dataset.

Why scrape Instagram comments?

Scraping comments on Instagram posts can give you quick insights into how an audience is reacting to marketing campaigns and enable you to spot misinformation or abuse, track audience engagement, or help you monitor how competing content is being received.

If you want more ideas, check out our industries pages for ways web scraping is already being used in a wide range of companies.

How to scrape Instagram comments and likes

Instagram Comment Scraper is designed to be fast and easy to use so there aren't too many parameters or settings. Just follow the steps below:

  1. Create a free Apify account.
  2. Open Instagram Comment Scraper
  3. Add one or more Instagram post URLs to scrape.
  4. Click Start and wait for the datasets to be extracted.
  5. Download your data in JSON, XML, CSV, Excel, or HTML.

Instagram Comment Scraper tutorial

If you want more guidance on how to use Instagram Comment Scraper, this video tutorial shows you how to do it in just a few minutes

Watch the video

How much will Instagram Comment Scraper cost?

Scraping 1,000 Instagram comments will cost you just $3.25 platform credits from your Apify subscription plan. For instance, the Apify Personal plan ($49) would allow you to scrape about 9,000 Instagram comments or likes monthly. For more details about the plans we offer, platform credits, and usage, see the platform pricing page or this video guide on how to choose the right subscription plan.

Our Instagram scrapers are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. We therefore believe that our scrapers, when used for ethical purposes by Apify users, are safe. However, you should be aware that your results could contain personal data. Personal data is protected by the GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. You can also read our blog posts on the legality of web scraping and ethical scraping.

Integrations and Instagram Comment Scraper

Instagram Comment Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. Integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and more. Or you can use webhooks to carry out an action whenever an event occurs, e.g. get a notification whenever Instagram Profile Scraper successfully finishes a run.

Using Instagram Comment Scraper with the Apify API

The Apify API gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule, and run Apify actors. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more.To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPI package. Check out the Apify API reference docs for full details or click on the API tab for code examples.

Input example

The input for Instagram Comment Scraper should be JSON containing the Instagram username or usernames you want to scrape.

{
  "directUrls": [
    "https://www.instagram.com/p/CH-MgQOn-7E/"
  ],
  "resultsLimit": 24
}

Output example

The structure of each item in Instagram posts when scrolling looks like this:

{
"id": "17949788698583607",
"postId": "CH-MgQOn-7E",
"text": "Imagine scrolling to find the end of these comments!馃槀",
"position": 20,
"timestamp": "2021-11-19T13:54:13.000Z",
"ownerId": "47340566177",
"ownerIsVerified": false,
"ownerUsername": "gabriel2005120",
"ownerProfilePicUrl": "https://scontent-msp1-1.cdninstagram.com/v/t51.2885-19/s150x150/217945584_120518610274794_7725650845991377322_n.jpg?_nc_ht=scontent-msp1-1.cdninstagram.com&_nc_cat=106&_nc_ohc=vJx0Cg9blGUAX9QrHVC&edm=AABBvjUBAAAA&ccb=7-4&oh=9d6174f78b6feee553d365b2c66d22b4&oe=61A5CE72&_nc_sid=83d603"
}

You can manage the results in any language (Python, PHP, Node.js/NPM). See the Apify API docs to learn more about getting results from the Instagram scraper.

Integrations and Instagram Comment Scraper

Last but not least, Instagram Comment Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and more. Or you can use webhooks to carry out an action whenever an event occurs, e.g. get a notification whenever Instagram API Scraper successfully finishes a run.

Using Instagram Comment Scraper with the Apify API

The Apify API gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule, and run Apify actors. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more.

To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPI package.

Check out the Apify API reference docs for full details or click on the API tab for code examples.

Want to scrape Instagram hashtags, posts, or profiles?

You can use the other dedicated scrapers below if you want to scrape specific Instagram data. You'll have fewer settings to change and faster results. Just enter one or more Instagram usernames or URLs and click to scrape.

鉃★笍 Instagram Hashtag Scraper 鉃★笍 Instagram Post Scraper 鉃★笍 Instagram Profile Scraper 鉃★笍 Quick Instagram Posts Checker 鉃★笍 Instagram Tagged Scraper 鉃★笍 Instagram Reel Scraper

Need something more advanced?

Try our more advanced Instagram Scraper or Instagram API Scraper if you need more options and are comfortable with changing settings.

Let us know if you need a custom Instagram scraping solution.

Industries

See how Instagram Comment Scraper is used in industries around the world