# Instagram Comments Scraper | $0.49/1K results | Pay-Per-Result (`rowlup/instagram-comment-scraper`) Actor

Every comment of a post or reel, newest and top, with likes, the commenter and on request each reply.

- **URL**: https://apify.com/rowlup/instagram-comment-scraper.md
- **Developed by:** [rowlup](https://apify.com/rowlup) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 comments

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-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

Every comment of a post or reel, newest and top, with likes, the commenter and on request each reply.

No Instagram account, cookies or proxies of yours are needed. You pay for a fee for each post that gives rows and the rows delivered to your dataset.

### What does Instagram Comments Scraper do?

It reads every comment of a post or reel. Instagram’s two sorts each hide comments the other lists, so it reads both by default and merges them. Replies come on request.

#### Use cases

- Sentiment and feedback analysis on a brand’s or a competitor’s posts.
- Giveaway draws: every commenter of a post.
- Community research: who comments, what they mention, which comments get likes.
- Moderation: new comments only, on a schedule.

### Why use it?

- No Instagram account, cookies or proxies of yours. rowlup runs its own accounts, each on its own proxy in the account’s country, and calls Instagram’s web API the way its web app does.
- You pay for a fee for each post that gives rows and the rows delivered to your dataset; never for compute, failed requests or retries. Errors are free rows.
- A stopped run is not lost: run it again with the same input within 6 hours and it continues each target where it stopped, without charging again for rows it delivered. Later, the same input starts afresh, so a daily schedule gets every target each day.
- **New rows only** returns just what your earlier runs did not get, for cheap scheduled monitoring.
- One row per item with a stable `type`, so JSON, CSV and Excel exports stay flat and predictable.

### What data does it extract?

Every row has a `type`. This actor writes `comment` rows, and a free `error` row for a target that gave nothing or less than asked.

#### `comment` rows

| Field | Type | Description |
| --- | --- | --- |
| `type` | string | Always `comment`. |
| `id` | string | Comment id. |
| `postId` | string | Media id of the post. |
| `parentId` | string | null | For a reply, the comment it answers; null for a top-level comment. |
| `commentUrl` | string | Direct link to the comment. |
| `text` | string | Comment text. |
| `mentions` | string\[] | Usernames mentioned, without `@`. |
| `gifUrl` | string | null | The GIF, for a GIF comment. |
| `createdAt` | string | When it was written, ISO 8601 in UTC. |
| `likes` | number | Like count. |
| `replies` | number | Reply count. |
| `owner` | object | The commenter: `id`, `username`, `fullName`, `isVerified`, `isPrivate`, `profilePicUrl`. |

### How do I use it?

1. Open the actor in Apify Console and click **Try for free** (or **Start** if you already have it).
2. Under **Targets**, add post or reel links, or shortcodes.
3. Set the options you need; the defaults are sensible.
4. Click **Start**. Rows appear in the **Output** tab as they come.
5. Export as JSON, CSV, Excel, XML or HTML, or read them through the API.

#### Every comment of a post

Both sorts, merged, up to 10,000 top-level comments a post.

```json
{
  "targets": [
    "https://www.instagram.com/p/Dfc1mYxFevS/"
  ]
}
```

#### With replies

Replies come on top of **Rows per target**: up to that many per comment thread, each charged as a reply.

```json
{
  "targets": [
    "https://www.instagram.com/p/Dfc1mYxFevS/"
  ],
  "replies": true
}
```

#### Newest 100 only

```json
{
  "targets": [
    "https://www.instagram.com/p/Dfc1mYxFevS/"
  ],
  "sort": "newest",
  "limit": 100
}
```

### Input

| Field | Title | Type | Default | What it does |
| --- | --- | --- | --- | --- |
| `targets` | Targets | array of strings | required | Post or reel links, or shortcodes. |
| `limit` | Rows per target | integer |  | Default: 1 for profile and post, 2,000 for likers, stories and highlight items, every comment up to 10,000 top-level a post, 100 otherwise. A target the limit cut while Instagram had more is named when the run ends. With Comment replies, replies come on top: up to this many per comment thread, each charged as a reply. |
| `sort` | Comment sort | `both`, `newest`, `top` | `"both"` | comments: both, newest or top (the web app's ranking). Each sort hides comments the other lists, so both reads newest, then top for what newest hid. The limit counts a post's top-level comments across the two, each once. |
| `replies` | Comment replies | boolean | `false` | comments: also each comment's replies, one request per thread. Replies come on top of Rows per target: up to that many per thread, each charged as a reply. |
| `newOnly` | New rows only | boolean | `false` | Only rows no earlier run delivered for the same kind and target. Posts, likers and newest comments stop paging at the first row seen before; other lists are read to their end and filtered, going through at most 1,000 rows delivered before per target. Profile and post rows always come again. |
| `use` | Accounts to use | integer | `1` | How many of the service's accounts the scrape spreads over: more accounts, more rows an hour. |
| `maxRequests` | Max requests | integer |  | Stop after this many requests to Instagram, a cap on the run's requests. To cap what a run is charged, set Maximum cost per run in the run options. |
| `wait` | Wait for the budget | boolean | `false` | When every account's request budget is spent, wait for a slot to free instead of stopping. A stopped run is continued by running again with the same targets and options: the targets it left unfinished are resumed from where they stopped. |

Full input example:

```json
{
  "targets": [
    "https://www.instagram.com/p/Dfc1mYxFevS/"
  ]
}
```

### Output

One dataset row per item. The Output tab has a table view for each row type and one for errors.

#### `comment`

```json
{
  "type": "comment",
  "id": "18140527450649523",
  "postId": "4036712021583729340",
  "parentId": null,
  "commentUrl": "https://www.instagram.com/p/DgFSDI7DBK8/c/18140527450649523/",
  "text": "Great shot!",
  "mentions": [],
  "gifUrl": null,
  "createdAt": "2026-11-23T16:18:01.000Z",
  "likes": 3,
  "replies": 1,
  "owner": {
    "id": "76086398128",
    "username": "example.user",
    "fullName": "",
    "isVerified": false,
    "isPrivate": null,
    "profilePicUrl": "https://scontent-lga3-1.cdninstagram.com/v/..."
  }
}
```

#### Error rows

A target that gave no rows, or fewer than asked, gets one free row:

```json
{
  "type": "error",
  "kind": "comments",
  "target": "https://www.instagram.com/p/Dfc1mYxFevS/",
  "error": "empty",
  "detail": "Instagram has nothing of this kind for the target."
}
```

| `error` | Meaning |
| --- | --- |
| `not_found` | The target does not exist, or Instagram answered that it does not: a wrong username, a deleted post. |
| `empty` | The target exists but has nothing of this kind: no stories now, no posts, a private profile’s lists. |
| `short` | Fewer rows than asked, because Instagram had no more or the limit of the kind was reached. |
| `failed` | The target could not be read in this run. If the run stopped early, run again with the same input within 6 hours to continue it; a target that failed after several tries is not retried that way, so run it on its own. |

### How much does it cost?

Pay per event: you pay for a fee for each post that gives rows and the rows delivered to your dataset, and nothing else. Apify’s platform usage (compute, proxy, storage of the run) is on us.

| Event | When it is charged | Price |  |
| --- | --- | --- | --- |
| Comment | One comment row in the dataset | $0.00049 | $0.49 per 1,000 rows |
| Reply | One reply row in the dataset | $0.00049 | $0.49 per 1,000 rows |
| Comments of a post | Once per post that gave a row; its first 15 rows, comments and replies together, are included | $0.00749 |  |

- 100 rows from one target: 85 rows × $0.00049 + $0.00749 fee for the post (its first 15 rows included) = **$0.0491**

- 1,000 rows from one target: 985 rows × $0.00049 + $0.00749 fee for the post (its first 15 rows included) = **$0.4901**

- 10,000 rows from one target: 9,985 rows × $0.00049 + $0.00749 fee for the post (its first 15 rows included) = **$4.90**

- Error rows are free. A target that gives no row costs no target fee.

- A row is charged once, when it is written. A run that resumes does not charge again for rows it already delivered.

- Set **Maximum cost per run** in the run options: the run stops before the row that would pass it.

### Speed and limits

- Each account has an hourly request budget per kind of request, set below the point where Instagram starts to block. A run spreads over **Accounts to use** accounts (up to 3), so more accounts give more rows an hour.
- Runs share the pool of accounts. When others are using them, a run waits for a free account and then starts.
- When the budgets are spent, the run stops rather than wait idle, and names what it left unfinished. Run it again with the same input in 1 to 6 hours to continue, or turn on **Wait for the budget**.
- A run whose targets mostly do not exist or give nothing (25 of them, at least 80% of those read) stops, and the rest of its targets get free `failed` rows: check the list and run again.
- **New rows only** goes through at most 1,000 rows delivered before per target on lists that are not newest first, such as top comments and similar accounts.
- **Max requests** caps a run’s requests; **Maximum cost per run** caps what it may charge.
- Media links (`displayUrl`, `videoUrl`, `audioUrl`) are Instagram’s CDN links. They expire about 4 days after the scrape: download the files within that time.

### Use it from code

Get your API token in Apify Console under **Settings → API & Integrations**.

#### JavaScript

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('rowlup/instagram-comment-scraper').call({"targets":["https://www.instagram.com/p/Dfc1mYxFevS/"]});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("rowlup/instagram-comment-scraper").call(run_input={"targets":["https://www.instagram.com/p/Dfc1mYxFevS/"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

#### HTTP

One call that runs the actor and returns its rows (for runs under 5 minutes):

```bash
curl -X POST "https://api.apify.com/v2/acts/rowlup~instagram-comment-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"targets":["https://www.instagram.com/p/Dfc1mYxFevS/"]}'
```

Add `&format=csv` or `&format=xlsx` for a spreadsheet.

#### Apify CLI

```bash
echo '{"targets":["https://www.instagram.com/p/Dfc1mYxFevS/"]}' | apify call rowlup/instagram-comment-scraper --output-dataset
```

#### AI agents (MCP)

Apify’s MCP server gives the actor to Claude, Cursor or any MCP client as a tool:

```json
{
  "mcpServers": {
    "rowlup-instagram": { "url": "https://mcp.apify.com?tools=rowlup/instagram-comment-scraper" }
  }
}
```

The client signs in to Apify with OAuth the first time; or add `"headers": { "Authorization": "Bearer <APIFY_TOKEN>" }`.

### FAQ

#### Do I need an Instagram account?

No. The actor uses rowlup’s own accounts and proxies. You never share a login or a cookie.

#### Can it read private profiles?

No. It sees what any logged-in stranger sees. A private profile still gives its profile row; its posts, lists and stories give nothing, and the target gets a free error row.

#### How fresh is the data?

Live: every row is read from Instagram during your run. Nothing is served from a cache.

#### Can I run it on a schedule?

Yes. Create a task with your input and add a schedule in Apify Console (Schedules). Turn on **New rows only** where the actor offers it to pay only for new rows.

#### Why did my run end before the limit?

The target had no more rows, or the accounts’ hourly budgets ran out. The run names each target it could not finish. Run it again with the same input within 6 hours to continue those targets.

#### Is my data shared with other customers?

No. Your rows go to your run’s dataset only. **New rows only** remembers what your own runs delivered, not other customers’.

#### Is scraping Instagram legal?

The actor reads only publicly visible data. Data about people can still be personal data under GDPR and similar laws: have a legitimate reason to process it and check with a lawyer if unsure.

#### Something is wrong or missing. What do I do?

Open an issue in the **Issues** tab with the run’s link. We read every one.

### Other rowlup Instagram scrapers

- [Instagram Profile Scraper](https://apify.com/rowlup/instagram-profile-scraper): Instagram profiles: name, bio, followers, following, post count, links, category, and emails and phones found in the bio.
- [Instagram Post Scraper](https://apify.com/rowlup/instagram-post-scraper): A profile's posts, or single posts by link: caption, media, likes, comments, views, location, tagged users and music.
- [Instagram Reel Scraper](https://apify.com/rowlup/instagram-reel-scraper): Every reel of a profile's Reels tab: caption, hashtags, date, duration, audio, and play, like, comment and share counts.
- [Instagram Stories & Highlights Scraper](https://apify.com/rowlup/instagram-story-scraper): A profile's current stories and every item of its highlights, with media links, mentions and links.
- [Instagram Hashtag Scraper](https://apify.com/rowlup/instagram-hashtag-scraper): The posts of a hashtag, or of a keyword search, as Instagram's grid shows them.
- [Instagram Tagged Posts Scraper](https://apify.com/rowlup/instagram-tagged-scraper): The posts other accounts tagged a profile in, from its Tagged tab.
- [Instagram Location Scraper](https://apify.com/rowlup/instagram-place-scraper): A place with its address, phone and coordinates, then its recent posts.
- [Instagram Reel Transcript Scraper](https://apify.com/rowlup/instagram-reel-transcript-scraper): Transcripts of Instagram reels: the spoken text, its opening hook, timed segments and language, with each reel’s link, caption and counts.
- [Instagram Search Scraper](https://apify.com/rowlup/instagram-search-scraper): Instagram's search for a text: the matching users, hashtags and places.
- [Instagram Similar Accounts Scraper](https://apify.com/rowlup/instagram-related-profiles-scraper): About 80 profiles Instagram suggests as similar to a profile.
- [Instagram Audio Reels Scraper](https://apify.com/rowlup/instagram-audio-scraper): An audio or song page: the audio, then the reels that use it.
- [Instagram About This Account Scraper](https://apify.com/rowlup/instagram-about-account-scraper): The "About this account" sheet of a profile: when it joined, its country and how often it changed its username.

# Actor input Schema

## `targets` (type: `array`):

Post or reel links, or shortcodes.

## `limit` (type: `integer`):

Default: 1 for profile and post, 2,000 for likers, stories and highlight items, every comment up to 10,000 top-level a post, 100 otherwise. A target the limit cut while Instagram had more is named when the run ends. With Comment replies, replies come on top: up to this many per comment thread, each charged as a reply.

## `sort` (type: `string`):

comments: both, newest or top (the web app's ranking). Each sort hides comments the other lists, so both reads newest, then top for what newest hid. The limit counts a post's top-level comments across the two, each once.

## `replies` (type: `boolean`):

comments: also each comment's replies, one request per thread. Replies come on top of Rows per target: up to that many per thread, each charged as a reply.

## `newOnly` (type: `boolean`):

Only rows no earlier run delivered for the same kind and target. Posts, likers and newest comments stop paging at the first row seen before; other lists are read to their end and filtered, going through at most 1,000 rows delivered before per target. Profile and post rows always come again.

## `use` (type: `integer`):

How many of the service's accounts the scrape spreads over: more accounts, more rows an hour.

## `maxRequests` (type: `integer`):

Stop after this many requests to Instagram, a cap on the run's requests. To cap what a run is charged, set Maximum cost per run in the run options.

## `wait` (type: `boolean`):

When every account's request budget is spent, wait for a slot to free instead of stopping. A stopped run is continued by running again with the same targets and options: the targets it left unfinished are resumed from where they stopped.

## Actor input object example

```json
{
  "targets": [
    "https://www.instagram.com/p/Dfc1mYxFevS/"
  ],
  "limit": 10000,
  "sort": "both",
  "replies": false,
  "newOnly": false,
  "use": 1,
  "wait": false
}
```

# Actor output Schema

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

Every row the run delivered.

# 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 = {
    "targets": [
        "https://www.instagram.com/p/Dfc1mYxFevS/"
    ],
    "limit": 10000
};

// Run the Actor and wait for it to finish
const run = await client.actor("rowlup/instagram-comment-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 = {
    "targets": ["https://www.instagram.com/p/Dfc1mYxFevS/"],
    "limit": 10000,
}

# Run the Actor and wait for it to finish
run = client.actor("rowlup/instagram-comment-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 '{
  "targets": [
    "https://www.instagram.com/p/Dfc1mYxFevS/"
  ],
  "limit": 10000
}' |
apify call rowlup/instagram-comment-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rowlup/instagram-comment-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/WrXe3fzdguNPd4pbF/builds/pesAwJs3Gu3MBmmaz/openapi.json
