Instagram Comments Scraper
Pricing
Pay per event
Instagram Comments Scraper
Scrape instagram comments with ease. Fast, efficient and with filters. Try Now!
Pricing
Pay per event
Rating
0.0
(0)
Developer

The Netaji
Actor stats
0
Bookmarked
9
Total users
5
Monthly active users
5 days ago
Last modified
Categories
Share
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
{"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
[{"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:
{"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:
{"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:
{"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:
{"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:
{"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.