Instagram Comment Scraper avatar

Instagram Comment Scraper

Pricing

from $9.00 / 1,000 results

Go to Apify Store
Instagram Comment Scraper

Instagram Comment Scraper

Extract comments from Instagram posts with user details, timestamps, and engagement metrics. Leverages Playwright for reliable scraping, supports session authentication and proxies for seamless access. Ideal for market research, brand monitoring, and competitive analysis....

Pricing

from $9.00 / 1,000 results

Rating

0.0

(0)

Developer

GetDataForMe

GetDataForMe

Maintained by Community

Actor stats

0

Bookmarked

0

Total users

0

Monthly active users

6 hours ago

Last modified

Share

Introduction

The Instagram Comment Scraper is a powerful Apify Actor designed to extract comments from Instagram posts efficiently and reliably. By leveraging Playwright for browser automation, it navigates Instagram's dynamic content to gather detailed comment data, including user information, timestamps, and engagement metrics. This tool is ideal for researchers, marketers, and businesses needing to analyze public sentiment, monitor brand mentions, or gather insights from social media interactions.

Features

  • Comprehensive Comment Extraction: Scrapes all visible comments from specified Instagram posts, including nested replies and user details.
  • High Reliability: Uses Playwright for robust handling of Instagram's anti-scraping measures, ensuring consistent data retrieval.
  • Session-Based Authentication: Requires an Instagram session ID for authenticated access, allowing deeper insights into private or restricted content.
  • Proxy Support: Integrates with Apify's proxy services, including residential proxies, to avoid IP bans and maintain anonymity.
  • Structured Output: Delivers clean, JSON-formatted data with fields like comment text, likes, timestamps, and user profiles.
  • Scalable Performance: Processes multiple URLs in a single run, optimized for speed and efficiency.
  • Error-Resilient: Includes built-in retry mechanisms and logging for smooth operation.

Input Parameters

ParameterTypeRequiredDescriptionExample
startUrlsarrayYesList of Instagram post URLs to scrape comments from. Supports multiple posts in one run.[{"url": "https://www.instagram.com/p/DPoW0icAfhS/?img_index=1"}]
sessionIdstringYesThe session ID cookie value from your Instagram account, required for accessing content. Obtain this from your browser's developer tools."abc123sessionid"
proxyConfigurationobjectNoConfigures proxy settings to mask the scraper's IP and avoid blocks. Defaults to Apify's residential proxies.{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}

Example Usage

Input JSON

{
"startUrls": [
{
"url": "https://www.instagram.com/p/DPoW0icAfhS/?img_index=1"
}
],
"sessionId": "your_instagram_session_id_here",
"proxyConfiguration": {
"useApifyProxy": true,
"apifyProxyGroups": ["RESIDENTIAL"]
}
}

Output JSON

[
{
"comment_id": "17984513219902563",
"comment_text": "❤️❤️❤️🔥🔥",
"created_at": 1760118480,
"created_at_utc": 1760118480,
"comment_like_count": 1,
"child_comment_count": 0,
"media_id": "3740339857944344658",
"status": "Active",
"user": {
"user_id": "3410434351",
"username": "kosagar_official",
"full_name": "ĶosåģǞṝ ØɒØ",
"is_verified": false,
"is_private": true,
"profile_pic_url": "https://scontent-iad3-1.cdninstagram.com/v/t51.82787-19/615252701_18426778324114352_3829140185083989150_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=107&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy44OTYuQzMifQ%3D%3D&_nc_ohc=0Zl0OqW4KM0Q7kNvwEXoyS4&_nc_oc=AdlwXUKs_4f7pif_duJDgHlbntfc5pTSjN6FMkrT__a_x3f1hINjHpBenSzn-cywro0&_nc_zt=24&_nc_ht=scontent-iad3-1.cdninstagram.com&_nc_gid=i7tZUQ5k-ElNdO6lJoDWzA&oh=00_AfvCfMA0Pi6kh2zTebD5-_j_9xTHwnQvQW_XceLULjjuqQ&oe=6990F886"
}
}
]

Use Cases

  • Market Research: Analyze customer feedback on product posts to identify trends and preferences.
  • Competitive Intelligence: Monitor competitors' Instagram engagement and comment sentiment.
  • Brand Monitoring: Track mentions and replies to your brand's posts for reputation management.
  • Content Analysis: Gather data for academic studies on social media behavior and interactions.
  • Influencer Evaluation: Assess audience engagement on influencer posts to measure campaign effectiveness.
  • Business Automation: Automate data collection for dashboards or reports on social media metrics.

Installation and Usage

  1. Search for "Instagram Comment Scraper" in the Apify Store.
  2. Click "Try for free" or "Run".
  3. Configure input parameters (e.g., add start URLs and session ID).
  4. Click "Start" to begin extraction.
  5. Monitor progress in the log.
  6. Export results in your preferred format (JSON, CSV, Excel).

Output Format

The Actor outputs a JSON array of comment objects. Each object includes:

  • comment_id: Unique identifier for the comment.
  • comment_text: The full text of the comment (may include emojis).
  • created_at and created_at_utc: Timestamps in Unix format.
  • comment_like_count: Number of likes on the comment.
  • child_comment_count: Number of replies.
  • media_id: ID of the associated post.
  • status: Comment status (e.g., "Active").
  • user: Object with user details like ID, username, full name, verification status, privacy, and profile picture URL.

Data is structured for easy parsing and integration into analytics tools.

Support

For custom/simplified outputs or bug reports, please contact:

We're here to help you get the most out of this Actor!


Unlock Instagram insights effortlessly! Extract comments from posts with user details, timestamps, and engagement metrics. Features session auth, proxy support, and scalable scraping. Perfect for market research, brand monitoring, and competitive analysis. Start scraping today on Apify! (148 characters)