Instagram Comments Scraper avatar

Instagram Comments Scraper

Pricing

from $0.50 / 1,000 results

Go to Apify Store
Instagram Comments Scraper

Instagram Comments Scraper

Turn public Instagram post and reel links into structured data. No login. One row per URL, with the caption, photos, video, likes, comment count, author, and audio. Works for photos, carousels, videos, and Reels.

Pricing

from $0.50 / 1,000 results

Rating

0.0

(0)

Developer

Alien Force

Alien Force

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

0

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Overview

The Instagram Comments Scraper collects public comments from Instagram post and reel URLs. Paste /p/ or /reel/ links and get one dataset row per top-level comment, with the comment text, author, likes, and timestamp.

This actor does not log in and does not take profile usernames. Replies are not included: Instagram's logged-out comments query returns top-level comments only, and it leaves the reply count empty.

Key Features

  • Post URL input: Accepts /p/, /reel/, /reels/, /tv/, and instagram.com/{user}/p|reel/{code} links.
  • Pagination: Follows the public comments cursor until the requested limit, or until Instagram says there is no next page.
  • Per-post limit: maxComments caps each post. Set it to 0 to collect every top-level comment.
  • Author details: Username, user ID, verified flag, profile URL, and profile picture.
  • Proxy support: Datacenter proxies by default; switch to residential if Instagram starts blocking.
  • Fast and lightweight: HTTP fetch with browser TLS impersonation. No login.

Input Schema

Input Properties

  1. startUrls (required)

    • Type: array
    • Description: Public Instagram post or reel URLs.
    • Example:
      [
      { "url": "https://www.instagram.com/reel/DffMLSDhUm6/" }
      ]
  2. maxComments

    • Type: integer
    • Default: 100
    • Description: Maximum number of top-level comments to save for each post. 0 collects every top-level comment the public query returns.
  3. proxyConfiguration

    • Type: object
    • Description: Proxy settings for the run. Apify Proxy datacenter IPs are used by default. If Instagram starts returning empty pages, switch to the RESIDENTIAL group.

At least one startUrls entry must be a valid Instagram post or reel URL.

Input Example

{
"startUrls": [
{ "url": "https://www.instagram.com/reel/DffMLSDhUm6/" }
],
"maxComments": 100,
"proxyConfiguration": {
"useApifyProxy": true
}
}

Output

One dataset row per comment.

FieldTypeDescription
inputUrlstringURL as given in the input
postUrlstringCanonical post or reel URL
postIdstringInstagram media ID
shortcodestringShortcode from the URL
commentIdstringComment ID
commentUrlstringPermalink. Posts use /p/{shortcode}/c/{id}/, reels use /reel/, TV uses /tv/
textstringComment text
createdAtintegerComment time (Unix timestamp, seconds)
likeCountintegerLikes on the comment
replyCountintegerReplies. Logged-out responses usually leave this null
authorIdstringComment author user ID
authorUsernamestringComment author username
authorVerifiedbooleanVerified comment author
authorProfileUrlstringComment author profile URL
authorProfilePicUrlstringComment author profile picture
parentCommentIdstringParent comment ID when the row is a reply. Top-level comments are null
scrapedAtstringWhen the comment was scraped

The post's own comment count can be higher than the number of rows. That count includes replies, and this actor only receives top-level comments.

Profile picture URLs expire. Treat authorProfilePicUrl as short-lived.

Handling of missing and blocked inputs

Inputs that yield no comments are kept out of the dataset and reported in the RUN_REPORT record in the run's key-value store, alongside a warning in the log. Each entry lists the original input, the resolved postUrl and shortcode, a reason, and a human-readable message.

  • No comments: skipped as noComments.
  • Comments turned off: skipped as commentsDisabled.
  • Private or gated post: skipped as empty.
  • Deleted / missing post: skipped as notFound.
  • Input without a usable shortcode: skipped as invalidInput. If no input yields a post URL, the run fails with an input error.
  • Blocked request: automatically retried. If every retry fails, the input is skipped as requestFailed. A run where all targets were blocked fails with a clear message.

The run's status message always reports how many comments were scraped and how many inputs were skipped.