# Instagram Comments Scraper - All Comments of Reels & Posts (`pomlabs/instagram-comments-scraper`) Actor

Get the comments of public Instagram Reels and posts: text, author, verified badge, likes, reply count and date, one row per comment. Up to 1,000 comments per post. Paste the post or Reel URL. $0.001 per comment.

- **URL**: https://apify.com/pomlabs/instagram-comments-scraper.md
- **Developed by:** [Pom Labs](https://apify.com/pomlabs) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 comment delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Instagram Comments Scraper - All Comments of Reels & Posts

Export the **comments of public Instagram Reels and posts**, one row per comment: text, author (username, full name, picture, verified, private), likes, **the replies themselves**, date and a direct link to each comment. Up to **1,000 comments per post**, sorted **most liked** or **newest first** if you want, from post links, post ids or **a profile's latest posts**.

Paste the post or Reel links, or a profile. No login on your side, no cookies, no Instagram account needed.

You pay only for comments delivered. Private, deleted or comment-less posts are listed with the reason and never charged.

### What you get

For each comment:

- Comment ID, full text (with emojis) and a direct link to the comment (`commentUrl`)
- Author: username, full name, user id, profile picture, verified badge, private account
- Like count, reply count, and the **replies** (with `includeReplies`), each with its own link and the parent comment's
- Date (UTC), pinned and Instagram's "ranked" flag
- The post URL and shortcode it belongs to
- Optional: the raw comment as Instagram sends it (`rawData`)
- Optional: send the results to Notion, Todoist, Slack and other apps through an MCP connector

### Use cases

- **Giveaways:** collect every comment of a contest post to pick winners.
- **Audience research:** read what people say under your Reels or a competitor's, and find the most liked comments.
- **Influencer vetting:** check if the comments on a creator's posts come from real people.
- **Sentiment analysis:** export comment text for AI models and dashboards.

### Input

| Field | Type | Description |
|---|---|---|
| `urls` | array of strings | Public post or Reel links (`https://www.instagram.com/reel/...` or `/p/...`), post ids, or profile links / @usernames |
| `maxComments` | integer | Comments per post, 1 to 1,000. Default `100` |
| `includeReplies` | boolean | Also list the replies inside each comment |
| `maxRepliesPerComment` | integer | Replies per comment, 1 to 200. Default `20` |
| `sortOrder` | string | `popular` (most liked first) or `recent` (newest first); empty keeps Instagram's order |
| `maxPostsPerProfile` | integer | For profile links: latest posts to read, 1 to 12. Default `3` |
| `rawData` | boolean | Add the raw comment from Instagram's API |
| `continueOnDuplicates` | boolean | Read a post again if it appears twice (by default it is read once) |
| `outputConnector`, `deliverTarget`, `deliverMode`, `deliverMaxItems` | | Optional delivery to another app (MCP connector) |

The input names of other Instagram comment actors work too: `directUrls`, `postUrls`, `postIds`, `resultsLimit`, `limitPerSource`, `includeNestedComments`, `fetchReplies`, `scrapeReplies`.

```json
{ "urls": ["https://www.instagram.com/reel/DFFyRp-pINJ/"], "maxComments": 500 }
```

### Output

```json
{
  "url": "https://www.instagram.com/reel/DFFyRp-pINJ/",
  "shortcode": "DFFyRp-pINJ",
  "id": "18059564159669948",
  "text": "❤️",
  "author": "aarti_tya_gi",
  "authorVerified": true,
  "likeCount": 0,
  "replyCount": 0,
  "createdAt": "2026-09-10T15:56:05Z",
  "type": "comment",
  "postUrl": "https://www.instagram.com/p/DFFyRp-pINJ/",
  "commentUrl": "https://www.instagram.com/p/DFFyRp-pINJ/c/18059564159669948/",
  "authorFullName": "Aarti Tyagi",
  "isRanked": false
}
```

With `includeReplies`, each comment with replies carries `replies`: a list of rows with the same fields, `type: "reply"` and `parentCommentUrl`. Replies are included at no extra charge.

### Pricing

**$0.001 per comment** on the free plan ($1 per 1,000), less on paid Apify plans (Bronze $0.0009, Silver $0.0008, Gold and up $0.0007). Errors and posts without comments are free. No start fee. Set a maximum cost per run in the Apify console and the Actor stops cleanly at it.

### FAQ

**Do I need to log in?** No. You only paste public links.

**Can I get comments of a private account?** No, only public posts and Reels.

**Why fewer comments than the counter shows?** The counter includes replies and comments Instagram hides (spam filter, restricted accounts). This Actor lists the top-level comments Instagram shows to viewers.

# Actor input Schema

## `urls` (type: `array`):

Public Instagram post or Reel links (https://www.instagram.com/reel/... or /p/...), post ids, or profile links / @usernames (the comments of the profile's latest posts), one per line.

## `maxComments` (type: `integer`):

Stop after this many comments for each post (1 to 1,000).

## `maxItems` (type: `integer`):

Optional cap on comments for the whole run, across all posts (apidojo's maxItems). Nothing past it is read or charged.

## `includeReplies` (type: `boolean`):

Also return the replies of each comment, inside the comment (field replies), with the same fields and a link to the parent comment.

## `maxRepliesPerComment` (type: `integer`):

Up to this many replies for each comment when Include replies is on.

## `sortOrder` (type: `string`):

Most liked or newest first. Instagram's API has one order only, so for these two the actor reads up to 1,000 comments of the post, sorts them and returns the first ones (slower on big posts; you pay only for the comments returned).

## `maxPostsPerProfile` (type: `integer`):

For profile links: how many of the latest posts to read comments from (pinned posts included, as on the profile).

## `outputConnector` (type: `string`):

Pick an MCP connector you authorized in Console > Settings > API & Integrations > MCP connectors. The results are written through your own connector: the Actor never sees your credentials, and only non-destructive write tools are allowed. Notion: one page per review (or one table page in summary mode) under the page in Destination target.

## `deliverTarget` (type: `string`):

Where the connector writes: a URL or ID (Notion page URL, Todoist project id, Slack channel). Share the Notion page with the connector first (... > Connections). Leave empty for services that need none.

## `deliverMode` (type: `string`):

perPost writes one record per comment; summary writes a single roll-up table.

## `deliverMaxItems` (type: `integer`):

Cap on how many comments perPost writes to the connector (the dataset still gets all of them). Ignored in summary mode.

## `rawData` (type: `boolean`):

Also return each comment exactly as Instagram's API sends it (field raw).

## `continueOnDuplicates` (type: `boolean`):

By default a post that appears twice in the input (a link and its id, or a profile's post) is read once.

## Actor input object example

```json
{
  "urls": [
    "https://www.instagram.com/reel/DFFyRp-pINJ/"
  ],
  "maxComments": 100,
  "includeReplies": false,
  "maxRepliesPerComment": 20,
  "sortOrder": "",
  "maxPostsPerProfile": 3,
  "deliverMode": "perPost",
  "rawData": false,
  "continueOnDuplicates": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://www.instagram.com/reel/DFFyRp-pINJ/"
    ],
    "maxComments": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("pomlabs/instagram-comments-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "urls": ["https://www.instagram.com/reel/DFFyRp-pINJ/"],
    "maxComments": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("pomlabs/instagram-comments-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.instagram.com/reel/DFFyRp-pINJ/"
  ],
  "maxComments": 100
}' |
apify call pomlabs/instagram-comments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pomlabs/instagram-comments-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/DhLAkHg5J6ica4lAb/builds/etp8K0TA4XH91jGNM/openapi.json
