Instagram Comment Scraper avatar
Instagram Comment Scraper
Under maintenance

Pricing

from $5.00 / 1,000 results

Go to Apify Store
Instagram Comment Scraper

Instagram Comment Scraper

Under maintenance

Extract comments from Instagram posts and reels with complete metadata including replies, likes, and author details. Features smart pagination, reply threading, and safe browser automation.

Pricing

from $5.00 / 1,000 results

Rating

5.0

(2)

Developer

Crawler Bros

Crawler Bros

Maintained by Community

Actor stats

0

Bookmarked

11

Total users

6

Monthly active users

14 days ago

Last modified

Share

Extract comments from Instagram posts and reels with complete metadata (author, likes, replies, timestamps).

Features

  • Complete Data: Extracts text, author info, likes, replies, and timestamps.
  • Reply Threading: Automatically expands and captures nested replies.
  • Smart Pagination: Handles "Load More" buttons to get as many comments as possible.
  • Safe & Reliable: Uses browser automation with built-in rate limiting.

Setup & Authentication

This scraper requires Instagram cookies to work.

  1. Get your cookies:

    • Log into Instagram.com in your browser.
    • Open Developer Tools (F12) -> Application -> Cookies.
    • Copy the cookies for https://www.instagram.com.
    • Format them as a JSON array (or use a browser extension like "EditThisCookie" to export as JSON).
  2. Provide cookies:

    • Option A (Recommended): Paste the JSON array into the cookies input field.

How to Run

Input Configuration

Example input configuration:

{
"postUrls": [
"https://www.instagram.com/p/C4g4BqBPrXx/"
],
"maxCommentsPerPost": 100,
"includeReplies": true,
"maxRepliesPerComment": 20
}

Parameters

ParameterTypeDefaultDescription
postUrlsArray[]List of Instagram post/reel URLs.
maxCommentsPerPostInteger100Max comments to scrape per post. Set to 0 for unlimited.
includeRepliesBooleantrueWhether to expand and scrape replies.
cookiesArray[]Your Instagram cookies (JSON format).

Output

The scraper produces a dataset where each item represents a comment:

{
"comment_id": "1798...",
"comment_text": "Great post!",
"author_username": "user123",
"likes_count": 42,
"is_reply": false,
"created_at": "2024-03-20T10:00:00"
}

Troubleshooting

  • No comments extracted? Check if your cookies are valid and not expired. Try logging out and back in to refresh them.
  • "Login required"? Your cookies might be invalid. Update them.
  • Missing comments? For posts with thousands of comments, the scraper extracts the most recent/relevant ones first (typically ~30-50).