Instagram Comments Scraper avatar

Instagram Comments Scraper

Pricing

from $5.00 / 1,000 comments-scrappeds

Go to Apify Store
Instagram Comments Scraper

Instagram Comments Scraper

Scrape comments and replies from Instagram posts and reels by URL. Many posts per run. Get comment text, author, likes, reply counts, timestamps and the post each comment belongs to. Export to JSON, CSV or Excel. No Instagram API key needed.

Pricing

from $5.00 / 1,000 comments-scrappeds

Rating

0.0

(0)

Developer

code gerald

code gerald

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

a day ago

Last modified

Categories

Share

Scrapes the comments (and optionally replies) of Instagram posts and reels from their URLs, many posts per run, using a logged-in session.

Setup (Actor owner only)

Users do not provide any key. The Actor uses one Instagram session that you configure once:

  1. Use a dedicated Instagram account, not your main one.
  2. Log in at instagram.com in a desktop browser, open DevTools, go to Application (Chrome) or Storage (Firefox), then Cookies, and copy the value of sessionid.
  3. In Apify Console open the Actor, go to Source, then Environment variables, add IG_SESSION_COOKIE with that value, tick Secret, and rebuild.
  4. Use residential proxies, with the proxy country close to where the account normally logs in. Replace the cookie when Instagram expires it or restricts the account.

Input

  • directUrls: post or reel URLs (/p/…, /reel/…)
  • resultsLimit: max comments per post (default 100, max 5000)
  • includeNestedComments: also scrape replies (they count towards the limit)
  • isNewestComments: newest first instead of Instagram's ranking
  • proxyConfiguration

Output

One flat item per comment or reply: id, text, timestamp, ownerUsername, ownerId, ownerFullName, ownerProfilePicUrl, ownerIsVerified, likesCount, repliesCount, isReply, parentCommentId, commentUrl, postUrl, postShortCode, postId, inputUrl, scrapedAt. Top-level comments have parentCommentId: null. Posts that fail (not found, comments disabled, blocked) produce an item with error and errorDescription.

Notes

  • The run stops with a clear message if the session expires or Instagram challenges the account.
  • Keep volumes moderate; one account scraping aggressively will be rate-limited or restricted.
  • Scraping may violate Instagram's Terms of Service; collect only public data and respect data-protection law.