New Instagram Post Comments & Replies Scraper [$0.9/1K] avatar
New Instagram Post Comments & Replies Scraper [$0.9/1K]

Pricing

$0.90 / 1,000 results

Go to Apify Store
New Instagram Post Comments & Replies Scraper [$0.9/1K]

New Instagram Post Comments & Replies Scraper [$0.9/1K]

Developed by

Muhamed Didovic

Muhamed Didovic

Maintained by Community

Extract Instagram comments and replies with detailed data: commenter profiles (username, verification status, profile pics), engagement metrics (like counts, reply counts), timestamps, comment text, nested reply threads, and post caption information.

0.0 (0)

Pricing

$0.90 / 1,000 results

0

1

1

Last modified

2 days ago

Apify Instagram Comments with Replies Scraper

Unlock the power of Instagram engagement data with our comprehensive Comments Scraper. Extract detailed comments, replies, user information, and engagement metrics from Instagram posts to fuel your social media analysis and community management strategies.

Overview

This Apify actor allows you to scrape detailed comments and replies from Instagram posts, including commenter details, engagement metrics, and nested reply structures. It's perfect for social media marketers, community managers, researchers, and analysts looking to gather insights from Instagram post interactions and audience sentiment.

Features

  • Authentication Requirement: To enable more extensive scraping capabilities, users are required to log in using cookie-based authentication.
  • Comment Extraction: Extract all comments from Instagram posts with full details.
  • Reply Support: Capture nested replies and reply threads for comprehensive conversation analysis.
  • User Information: Get detailed information about comment authors including verification status and profile data.
  • Engagement Metrics: Track likes, reply counts, and engagement patterns on comments.
  • Flexible Input: Accept Instagram post URLs to scrape comments from.
  • Proxy Support: Built-in proxy configuration to enhance scraping reliability and avoid blocks.
  • Concurrent Scraping: Efficiently scrape comments from multiple posts with adjustable concurrency.

Advanced Scraping Capabilities

  • Pagination Handling: Automatically navigates through all search result pages
  • Efficient Processing: Processes only new or updated property listings in subsequent runs
  • Change Detection: Identifies price changes, status updates, and new listings
  • Scheduled Monitoring: Set up automated runs to keep your property market data current
  • Incremental Data Collection: Build comprehensive real estate datasets over time

How to Use

  1. Set Up: Ensure you have an Apify account and access to the Apify platform.
  2. Install Cookie-Editor (there is option to Export cookies as JSON) or EditThisCookie chrome extension.
  3. Login to your Instagram account
  4. While you are on Instagram site go to post you want scrape, Click on the extension and export the cookies. Cookies are used to authorize actor with Instagram.com site. Install any (or all) of the following chrome extensions to copy cookies:
  5. Specify the Instagram post URL you want to scrape. Input your search URLs in the format https://www.instagram.com/p/{post-id}. You can add multiple URLs for a broader search scope.
  6. Adjust Settings: Configure options like max items, monitoring mode, and proxy settings as needed.
  7. Run the Scraper: Execute the scraper on the Apify platform.
  8. Data Collection: The scraper will output detailed comment and reply data from the specified Instagram post(s).

Input Configuration

Here's an example of how to set up the input for the Apify Instagram Comments Scraper:

{
"startUrls": [
{
"url": "https://www.instagram.com/p/POST_ID/"
}
],
"monitoringMode": false,
"maxConcurrency": 10,
"minConcurrency": 1,
"maxRequestRetries": 100,
"cookies": [
{
"name": "sessionid",
"value": "your_session_id_here",
"domain": ".instagram.com",
"path": "/",
"expires": -1,
"httpOnly": true,
"secure": true
}...
],
"proxy": {
"useApifyProxy": true,
"apifyProxyGroups": [
"RESIDENTIAL"
]
}
}

Input Fields Explanation

  • startUrls: Array containing Instagram post URLs to scrape comments from (e.g., https://www.instagram.com/p/POST_ID/).
  • maxItems: Maximum number of items to scrape (default: 1000).
  • monitoringMode: When enabled, only scrapes new listings compared to previous runs (default: false).
  • maxConcurrency: Maximum number of pages processed simultaneously (default: 10).
  • minConcurrency: Minimum number of pages processed simultaneously (default: 1).
  • maxRequestRetries: Number of retries for failed requests (default: 100).
  • cookies: Required - Array of cookie objects for Instagram authentication. Export cookies from your logged-in Instagram session using a browser extension like EditThisCookie or Cookie-Editor. The cookies should include at least the sessionid cookie.
  • proxy: Proxy configuration settings. Recommended to use Apify's residential proxies for enhanced scraping reliability and to avoid blocks.

Monitoring Mode

When monitoringMode is enabled, the scraper will only collect new listings that haven't been seen in previous runs. This is useful for:

  • Tracking new property listings as they come on the market
  • Building a historical archive of property data
  • Monitoring specific areas for new opportunities without duplicating data

Output Structure

The scraper provides comprehensive information about Instagram comments and replies. Here's a detailed breakdown of the comment data structure:

{
"pk": "18041440847367566",
"user_id": "30996309",
"type": 0,
"did_report_as_spam": false,
"created_at": 1755710385,
"created_at_utc": 1755710385,
"created_at_for_fb_app": 1755710385,
"content_type": "comment",
"status": "Active",
"bit_flags": 0,
"share_enabled": true,
"is_ranked_comment": true,
"media_id": "3703474826853241387",
"comment_index": 0,
"strong_id__": "18041440847367566",
"preview_child_comments": [],
"child_comment_count": 0,
"other_preview_users": [],
"user": {
"pk": "30996309",
"pk_id": "30996309",
"id": "30996309",
"full_name": "ᴍɪʀᴇʟᴀ ʀᴇᴅᴢɪᴄ",
"strong_id__": "30996309",
"fbid_v2": "17841400609270484",
"username": "mirela_red",
"is_private": false,
"is_verified": true,
"profile_pic_id": "3706544462531056975_30996309",
"profile_pic_url": "https://instagram.fsvq4-2.fna.fbcdn.net/v/t51.2885-19/539026542_18525334540020310_2024530807944729888_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=instagram.fsvq4-2.fna.fbcdn.net&_nc_cat=110&_nc_oc=Q6cZ2QFEBoFBVjmNJ-oCrWUejCFnE8uX5309VzWP8sWcV09O77xWpZP-2vtOCvU1A0TB8UA&_nc_ohc=-3cueLl6fN0Q7kNvwG67aee&_nc_gid=nY7luBHx7yhllT8R8XJY-A&edm=AId3EpQBAAAA&ccb=7-5&oh=00_AffSVashciQRbs2BvVdm_pNqgeBsdsxZdIqDEOg5MNDBiA&oe=68FFC656&_nc_sid=f5838a",
"is_mentionable": true,
"latest_reel_media": 1761168811
},
"inline_composer_display_condition": "never",
"has_liked_comment": false,
"comment_like_count": 15,
"liked_by_media_coauthors": [
{
"fbid_v2": "17841400945485293",
"full_name": "Šejla Ramović Šeko",
"id": "338783516",
"pk": "338783516",
"pk_id": "338783516",
"strong_id__": "338783516",
"is_mentionable": true,
"is_private": false,
"is_verified": true,
"profile_pic_id": "3209658442469135321_338783516",
"profile_pic_url": "https://instagram.fsvq4-2.fna.fbcdn.net/v/t51.2885-19/387266053_163594813472632_4795146350413367507_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=instagram.fsvq4-2.fna.fbcdn.net&_nc_cat=104&_nc_oc=Q6cZ2QFEBoFBVjmNJ-oCrWUejCFnE8uX5309VzWP8sWcV09O77xWpZP-2vtOCvU1A0TB8UA&_nc_ohc=XSXZAV5v78cQ7kNvwEasq1n&_nc_gid=nY7luBHx7yhllT8R8XJY-A&edm=AId3EpQBAAAA&ccb=7-5&oh=00_AfcDys7XQGGPHTFHNLrmdRyFdYgvkcMR4VVl6OW7EHm1hw&oe=68FFD31B&_nc_sid=f5838a",
"username": "ramoviceva"
}
],
"private_reply_status": 0,
"has_disliked_comment": false,
"text": "Kakve ste😍",
"is_covered": false,
"caption": {
"pk": "18059135618094605",
"user_id": "1014212728",
"type": 1,
"did_report_as_spam": false,
"created_at": 1755708776,
"created_at_utc": 1755708776,
"created_at_for_fb_app": 1755708776,
"content_type": "comment",
"status": "Active",
"bit_flags": 0,
"share_enabled": true,
"is_ranked_comment": true,
"media_id": "3703474826853241387",
"is_created_by_media_owner": true,
"strong_id__": "18059135618094605",
"user": {
"pk": "1014212728",
"pk_id": "1014212728",
"id": "1014212728",
"full_name": "LEJLA RAMOVIĆ",
"is_unpublished": false,
"strong_id__": "1014212728",
"fbid_v2": "17841400141855847",
"username": "ramoviclejla",
"is_private": false,
"is_verified": true,
"profile_pic_id": "2341761271189602138_1014212728",
"profile_pic_url": "https://instagram.fsvq4-2.fna.fbcdn.net/v/t51.2885-19/106044521_303921167448484_9203814137983694664_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=instagram.fsvq4-2.fna.fbcdn.net&_nc_cat=104&_nc_oc=Q6cZ2QFEBoFBVjmNJ-oCrWUejCFnE8uX5309VzWP8sWcV09O77xWpZP-2vtOCvU1A0TB8UA&_nc_ohc=ZUzkN9RGAlkQ7kNvwFkzhhR&_nc_gid=nY7luBHx7yhllT8R8XJY-A&edm=AId3EpQBAAAA&ccb=7-5&oh=00_AfdjoXpBWh8VtIn_bZAiANUd8N04iKbVTekQ9eLyDAb4fg&oe=68FFD7D7&_nc_sid=f5838a"
},
"liked_by_media_coauthors": [],
"private_reply_status": 0,
"text": "🤍",
"is_covered": false
},
"comment_count": 1008
}

Detailed Field Explanations

Comment Metadata

  • pk: Primary key - unique identifier for the comment.
  • user_id: ID of the user who posted the comment.
  • type: Comment type indicator (0 for regular comments).
  • did_report_as_spam: Boolean indicating if the comment was reported as spam.
  • created_at: Unix timestamp of when the comment was created.
  • created_at_utc: UTC timestamp of comment creation.
  • created_at_for_fb_app: Timestamp for Facebook app integration.
  • content_type: Type of content (e.g., "comment").
  • status: Current status of the comment (e.g., "Active").
  • bit_flags: Internal flags for comment properties.
  • share_enabled: Boolean indicating if the comment can be shared.
  • is_ranked_comment: Whether the comment is ranked/featured by Instagram's algorithm.
  • media_id: ID of the post this comment belongs to.
  • comment_index: Position index of the comment.
  • strong_id__: Strong identifier for the comment.

Child Comments & Replies

  • preview_child_comments: Array of preview replies to this comment.
  • child_comment_count: Total number of replies to this comment.
  • other_preview_users: Array of other users who have replied.
  • comment_count: Total count of comments (when this is the post caption).

User Information

  • user: Object containing information about the comment author.
    • pk, pk_id, id: Various identifiers for the user.
    • full_name: The user's display name.
    • username: The user's Instagram handle.
    • is_private: Whether the user's account is private.
    • is_verified: Whether the user has a verified badge.
    • profile_pic_id: ID of the user's profile picture.
    • profile_pic_url: URL to the user's profile picture.
    • is_mentionable: Whether the user can be mentioned in comments.
    • latest_reel_media: Timestamp of the user's latest reel.
    • fbid_v2: Facebook ID associated with the account.
    • strong_id__: Strong identifier for the user.

Engagement Metrics

  • has_liked_comment: Boolean indicating if the viewer has liked this comment.
  • comment_like_count: Number of likes on the comment.
  • has_disliked_comment: Boolean indicating if the viewer has disliked this comment.
  • liked_by_media_coauthors: Array of media co-authors who liked the comment.
    • Contains user objects with pk, username, full_name, is_verified, profile_pic_url, etc.

Comment Content

  • text: The actual text content of the comment.
  • is_covered: Boolean indicating if the comment is covered/hidden.
  • inline_composer_display_condition: Display condition for inline reply composer.
  • private_reply_status: Status of private reply (0 for public).

Caption Information

  • caption: Object containing the post's caption (when applicable).
    • Contains similar structure to a comment with pk, user_id, text, created_at, etc.
    • is_created_by_media_owner: Boolean indicating if the caption was created by the post owner.
    • user: Full user object of the post owner.

This comprehensive comment data structure provides detailed information about Instagram comments and replies, including author information, engagement metrics, timestamps, and nested reply structures. It's particularly useful for analyzing comment sentiment, engagement patterns, and community interactions on Instagram posts.

Explore More Scrapers

If you found this Apify Instagram Comments Scraper useful, be sure to check out our other powerful scrapers and actors at memo23's Apify profile. We offer a wide range of tools to enhance your web scraping and automation needs across various platforms and use cases.

Support

Additional Services