Instagram Comments Scraper avatar

Instagram Comments Scraper

Try for free

Pay $2.30 for 1,000 results

Go to Store
Instagram Comments Scraper

Instagram Comments Scraper

apify/instagram-comment-scraper
Try for free

Pay $2.30 for 1,000 results

Scrape Instagram comments. Just add one or more Instagram post URLs to get comment text, post IDs, position, timestamp, owner ids, usernames, profile pics, and URLs. Export scraped datasets, run the scraper via API, schedule and monitor runs or integrate with other tools.

Do you want to learn more about this Actor?

Get a demo

What is Instagram Comment Scraper?

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

How many results can you scrape with Instagram Comments scraper?

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’ll see there are the comments that this actor will save in a dataset. You have to keep in mind that scraping Instagram is dynamic and subject to change. There’s no one-size-fits-all-use-cases number. The maximum number of results may vary depending on the complexity of the input, location, and other factors.

Therefore, while we regularly run Actor tests to keep the benchmarks in check, the results may also fluctuate without our knowing. The best way to know for sure for your particular use case is to do a test run yourself.

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.

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.

How much will scraping Instagram comments cost you?

This scraper uses a pay-per-result pricing model, so costs are simple to calculate: it will cost you $2.30 to scrape 1,000 Instagram comments, which comes to $0.0023 per comment. With the Apify Free plan, you get $5 free usage credits each month, allowing you to scrape over 2,100 Instagram comments for free with those credits.

For regular data extraction, we recommend the $49/month Starter plan — this would let you scrape over 21,000 Instagram comments every month.

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.

1{
2  "directUrls": [
3    "https://www.instagram.com/p/CH-MgQOn-7E/"
4  ],
5  "resultsLimit": 24
6}

Output example

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

1{
2"id": "17949788698583607",
3"postId": "CH-MgQOn-7E",
4"text": "Imagine scrolling to find the end of these comments!😂",
5"position": 20,
6"timestamp": "2021-11-19T13:54:13.000Z",
7"ownerId": "47340566177",
8"ownerIsVerified": false,
9"ownerUsername": "gabriel2005120",
10"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"
11}

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 ScraperQuick Instagram Posts Checker
🏷️ Instagram Mentions Scraper🎞️ Instagram Reel Scraper
👥 Instagram Followers Count Scraper📊 Instagram Hashtag Stats

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.

Not your cup of tea? Build your own scraper

Instagram Comments scraper doesn’t exactly do what you need? You can always build your own! We have various scraper templates in Python, JavaScript, and TypeScript to get you started. Alternatively, you can write it from scratch using our open-source library Crawlee. You can keep the scraper to yourself or make it public by adding it to Apify Store (and find users for it).

Or let us know if you need a custom scraping solution.

Your feedback

We’re always working on improving the performance of our Actors. So if you’ve got any technical feedback for Instagram Comments scraper or simply found a bug, please create an issue on the Actor’s Issues tab in Apify Console.

Developer
Maintained by Apify

Actor Metrics

  • 751 monthly users

  • 67 stars

  • >99% runs succeeded

  • 1.2 days response time

  • Created in Nov 2021

  • Modified a day ago