Instagram Comments Scraper

Instagram Comments Scraper

by thenetaji

Scrape instagram comments with ease. Fast, efficient and with filters. Try Now!

63 runs
9 users
Try This Actor

Opens on Apify.com

About Instagram Comments Scraper

Scrape instagram comments with ease. Fast, efficient and with filters. Try Now!

What does this actor do?

Instagram Comments Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

Instagram Media Comments Scraper This actor allows you to scrape comments from Instagram posts. It's useful for analyzing engagement, sentiment analysis, monitoring customer feedback, or collecting user-generated content from specific posts. ## Features - ✅ Scrape comments from Instagram posts - ✅ Support for multiple post URLs - ✅ Flexible sorting options (popular, recent, verified) - ✅ Configurable item limits per post - ✅ Structured JSON output with engagement metrics ## Input Configuration | Field | Type | Description | Required | Default | | ----------- | ------ | ----------------------------------------------------------- | -------- | ---------------- | | type | string | Must be set to media_comments | Yes | media_comments | | postUrls | array | List of Instagram post URLs to get comments from | Yes | - | | maxItem | number | Maximum number of comments to scrape per post | No | 100 | | sortOrder | enum | Sorting order for comments: popular, recent, verified | No | popular | ### Sort Order Options - popular: Comments sorted by engagement (likes and replies) - recent: Comments sorted by creation time (newest first) - verified: Comments from verified accounts prioritized ### Example Input json { "type": "media_comments", "postUrls": [ "https://www.instagram.com/p/DDPp2UWzWEm/", "https://www.instagram.com/p/CxYzAbCdEfG/", "DDPp2UWzWEm" ], "maxItem": 200, "sortOrder": "popular" } ### Supported URL Formats The actor accepts various Instagram post formats: - Full URLs: https://www.instagram.com/p/DDPp2UWzWEm/ - Short codes: DDPp2UWzWEm - Mobile URLs: https://www.instagram.com/p/DDPp2UWzWEm/?igshid=... ## Output Format The actor returns an array of comment objects with detailed information about each comment, including author details, engagement metrics, and reply threads. ### Example Output json [ { "pk": "12345678901234567890", "user_id": "987654321", "text": "Amazing post! Love this content 🔥", "type": 0, "created_at": 1699123456, "created_at_utc": 1699123456, "content_type": "comment", "status": "Active", "bit_flags": 0, "did_report_as_spam": false, "share_enabled": true, "user": { "pk": "987654321", "username": "user_example", "full_name": "Example User", "is_private": false, "profile_pic_url": "https://instagram.com/profile.jpg", "profile_pic_id": "123456789_123456789", "is_verified": false, "follow_friction_type": 0, "has_anonymous_profile_picture": false, "latest_reel_media": 0 }, "comment_like_count": 45, "comment_index": 1, "has_liked": false, "preview_child_comments": [], "child_comment_count": 0, "inline_composer_display_condition": "impression_trigger", "has_translation": false }, { "pk": "12345678901234567891", "user_id": "123456789", "text": "First! 🥇", "type": 0, "created_at": 1699123400, "created_at_utc": 1699123400, "content_type": "comment", "status": "Active", "user": { "pk": "123456789", "username": "early_commenter", "full_name": "Early Bird", "is_private": false, "profile_pic_url": "https://instagram.com/profile2.jpg", "is_verified": true, "follow_friction_type": 0 }, "comment_like_count": 12, "comment_index": 2, "has_liked": false, "preview_child_comments": [ { "pk": "12345678901234567892", "user_id": "555666777", "text": "Nice catch!", "created_at": 1699123500, "user": { "username": "replier_user", "full_name": "Reply User" }, "comment_like_count": 3 } ], "child_comment_count": 1 } ] ## Use Cases ### 1. Engagement Analysis Analyze comment sentiment and engagement patterns: json { "type": "media_comments", "postUrls": ["https://www.instagram.com/p/DDPp2UWzWEm/"], "sortOrder": "popular", "maxItem": 500 } ### 2. Customer Feedback Monitoring Monitor comments on brand posts for customer service: json { "type": "media_comments", "postUrls": [ "https://www.instagram.com/p/product-launch/", "https://www.instagram.com/p/brand-announcement/" ], "sortOrder": "recent", "maxItem": 100 } ### 3. Influencer Campaign Analysis Analyze comments on sponsored content: json { "type": "media_comments", "postUrls": [ "https://www.instagram.com/p/sponsored-post-1/", "https://www.instagram.com/p/sponsored-post-2/" ], "sortOrder": "verified", "maxItem": 300 } ### 4. Content Research Collect user reactions and feedback for content strategy: json { "type": "media_comments", "postUrls": ["DDPp2UWzWEm", "CxYzAbCdEfG"], "sortOrder": "popular", "maxItem": 200 } ## Key Output Fields | Field | Description | | ------------------------ | ----------------------------------------------- | | pk | Unique comment identifier | | text | Comment text content | | created_at | Comment creation timestamp | | user | Comment author information | | comment_like_count | Number of likes on the comment | | child_comment_count | Number of replies to this comment | | preview_child_comments | Sample of reply comments | | has_liked | Whether the current user has liked this comment | | comment_index | Position in the comment thread | ## Limitations - Only public posts and comments are accessible - Some comments may be filtered by Instagram's spam detection - Comments are fetched in real-time during actor run ## Best Practices ### 1. Reasonable Limits Set appropriate maxItem limits to balance completeness with processing time: - Small posts: 50-100 comments - Viral posts: 500-1000 comments - Analysis projects: 100-300 comments ### 2. Sort Order Selection Choose sort order based on your analysis needs: - Popular: For engagement analysis - Recent: For real-time monitoring - Verified: For credible feedback ### 3. Batch Processing Process multiple posts efficiently: json { "postUrls": ["post1", "post2", "post3"], "maxItem": 100 } ## Troubleshooting No comments returned: - Check if the post is public - Verify the URL format is correct - Ensure the post actually has comments Incomplete comment threads: - Instagram may limit reply depth in some cases - Try running with different sort orders ## Support For assistance with the Instagram Media Comments Scraper, check the actor run logs for detailed information about any issues.

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Instagram Comments Scraper now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
thenetaji
Pricing
Paid
Total Runs
63
Active Users
9
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support