DOE AGORA Qualquer valor

Scrape Instagram comments

Instagram Comments Scraper

apify/instagram-comment-scraper
Try for free

No credit card required

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.

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.

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

How much will scraping Instagram comments cost you?

When it comes to scraping, it can be challenging to estimate the resources needed to extract data as use cases may vary significantly. That's why the best course of action is to run a test scrape with a small sample of input data and limited output. You’ll get your price per scrape, which you’ll then multiply by the number of scrapes you intend to do.

Watch this video for a few helpful tips. And don't forget that choosing a higher plan will save you money in the long run.

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 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.

Comentários

Ebook

Postagens mais visitadas