# Instagram Comments Scraper: Thousands per Post (`luzivanlt/instagram-comments-scraper`) Actor

Instagram comments from any post or reel, page after page: 92,943 from one post in a single run. $0.40 per 1,000 comments. Text, likes, timestamp, author, verified badge and profile picture, plus the post's own like and comment counts. No login needed.

- **URL**: https://apify.com/luzivanlt/instagram-comments-scraper.md
- **Developed by:** [Luzi](https://apify.com/luzivanlt) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 0 monthly users, 91.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.28 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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: Thousands per Post

Instagram comments from any public post or reel, read as far as Instagram serves the list without a login: one reel showing 174,718 comments gave 92,943 rows in one run. One row per comment. Text, likes, exact time, author, verified badge and profile picture, plus the post's own like and comment counts on every row. No Instagram account, login or cookies needed.

Tested end to end on 2026-11-15: 140 comments from three reels in 5 seconds, 1,704 from one reel in 38 seconds, 92,943 from a reel showing 174,718 in 29 minutes.

### What does this Actor do?

You give it one or more post or reel links. It opens each post's comment list and reads it from newest to oldest, 24 comments at a time, until the list ends or your per-post limit is reached. Each comment becomes one row in your results, in the order Instagram lists it.

Instagram serves comments to logged-out visitors only up to a point, and its own comment count also counts replies, which this Actor does not read. So expect fewer rows than the number under the post. Two measured examples: a reel showing 174,718 comments returned 92,943 rows in 29 minutes, and 9,225 or 11,380 in shorter runs; a reel showing 4,052 returned 1,704. The site decides where the list ends, and it can differ between runs.

Each comment comes with:

- the comment text exactly as written, with emoji and mentions
- when it was written, to the second, and its place in the list
- how many accounts liked the comment
- the author's username and account id, the verified badge, and a link to their profile picture
- the post it belongs to: link, code, id, and the post's own like and comment counts when the run read it

### Why use it?

- **Thousands of comments from one post.** It reads past the first screen and keeps going: 92,943 rows from a single reel in one 29-minute run.
- **Every comment costs the same $0.0004.** No per-post fee, no tier of "first 15 free": 1,000 comments is $0.40 whatever the post.
- **Six and a half times under the $2.60 per 1,000 that `apify` charges.** A run that saved 92,943 comments cost $0.0061 per 1,000 to run, which is why the price can sit there.
- **The post's own numbers ride on every row.** Like and comment counts as Instagram shows them, so a row is usable without a second run.
- **Up to 50 links in one run.** Four posts are read at the same time: four posts at 250 comments each took 8 seconds, against 34 seconds two at a time.
- **Export as JSON, CSV or Excel**, or read the rows through Apify's API, schedules and integrations.

### How to use it

1. Paste **Post or reel links**, one per line: `https://www.instagram.com/reel/DUrk3XbjO-4/`, `instagram.com/p/DUu_zHCAEEd/`, or just the code.
2. Set **Maximum comments per post** if a post is huge. Leave it at 0 to read every comment Instagram serves.
3. Press Start. Rows appear in the dataset as each post finishes, so a long post does not hold the others back.

Run it with no input and it reads 50 comments from one reel, so you can see the row shape in a few seconds.

#### Links that work

A post link, a reel link, an IGTV link, a share link with extra parameters, or the short code on its own. A profile, hashtag or story link, or a link to another site, stops the run before anything is read and names the line. A link given twice is read once.

### Input

| Field | What it does | Default |
| --- | --- | --- |
| **Post or reel links** (`postUrls`) | Up to 50 Instagram post or reel links, one per line, or short codes. | Empty: the sample reel |
| **Maximum comments per post** (`maxCommentsPerPost`) | Stop after this many comments for each post, 0 to 10,000. 0 reads every comment Instagram serves. Comments left out are not charged. | 0 |

Give at least one link, or leave both fields alone to run the sample.

```json
{
  "postUrls": "https://www.instagram.com/reel/DUrk3XbjO-4/",
  "maxCommentsPerPost": 500
}
```

### Output

One row per comment.

```json
{
  "commentId": "17949155040332933",
  "text": "I hope the dye is for animals",
  "timestamp": "2026-10-04T17:15:06.000Z",
  "likesCount": 0,
  "ownerUsername": "jul14n.v1b3",
  "ownerId": "20755294664",
  "ownerPk": "20755294664",
  "ownerIsVerified": false,
  "ownerProfilePicUrl": "https://scontent.../profile.jpg",
  "postShortCode": "DUrk3XbjO-4",
  "postId": "3831318042412642232",
  "postUrl": "https://www.instagram.com/reel/DUrk3XbjO-4/",
  "postCommentsCount": 4052,
  "postLikesCount": 1099990,
  "position": 1,
  "scrapedAt": "2026-11-15T15:21:29.334Z"
}
```

| Field | What it holds |
| --- | --- |
| `commentId` | Instagram's own id for the comment; it stays the same across runs |
| `text` | The comment as written, with emoji and mentions |
| `timestamp` | When the comment was written, ISO 8601 |
| `likesCount` | How many accounts liked the comment, 0 when nobody has |
| `ownerUsername` | The account that wrote the comment |
| `ownerId` | Instagram's id for that account |
| `ownerPk` | The account's second id, which some tools ask for |
| `ownerIsVerified` | True when the account shows the verified badge |
| `ownerProfilePicUrl` | Link to the author's profile picture; the link expires after a few hours |
| `postShortCode` | The code of the post, such as DUrk3XbjO-4 |
| `postId` | Instagram's own id for the post |
| `postUrl` | Link to the post |
| `postCommentsCount` | The post's own comment count when the run read it, which also counts replies |
| `postLikesCount` | The post's own like count; empty when the poster hides likes |
| `position` | The comment's place in Instagram's list, 1 is the newest |
| `scrapedAt` | When the row was saved, ISO 8601 |

These can be empty: `postLikesCount` on a post whose poster hides likes, `ownerProfilePicUrl` on an account without a picture, and `text` on a comment that is a GIF, which Instagram stores with an empty text and an attachment this row does not carry. `likesCount` is 0 rather than empty when nobody has liked the comment, and `ownerIsVerified` is false rather than empty.

### How much does it cost?

You pay for what you get:

- **$0.40 per 1,000 comments** ($0.0004 each), charged per comment saved to your results. A comment found once is charged once.
- **$0.001 per run** that saves at least one comment. A run that saves nothing costs nothing.
- **Not charged:** comments past your per-post limit, posts that could not be read, and replies, which this Actor does not read.

A run of one reel that saves 1,000 comments costs $0.401: 1,000 × $0.0004 plus the $0.001 run fee. A big reel that saves 9,200 comments costs $3.68. Three small reels that save 140 comments together cost $0.057.

Plan discounts lower the comment price to $0.36 per 1,000 on Bronze, $0.32 on Silver and $0.28 on Gold. The run fee is the same on every plan.

### How long does a run take?

Measured on 2026-11-15:

- 1 comment: about 3 seconds.
- 140 comments from three reels: about 5 seconds.
- 1,000 comments from four reels: about 10 seconds.
- 1,704 comments from one reel: 38 seconds.
- 9,225 comments from one reel: 3.4 minutes.
- 92,943 comments from one reel: 29 minutes, the stop being the run's own time limit.
- 50 comments with the default settings: 7 seconds.

Time grows with the number of comments, about 45 to 55 a second. A run stops 90 seconds before its time limit, saves everything it has read and says so, so a post with more comments than one run can reach is better read with a per-post limit or on a schedule.

### Good to know

- **Instagram's comment count includes replies.** This Actor saves top-level comments only. A post showing 174,718 comments gave 9,225 rows in one run, and 11,380 in another. When the gap is wide, the run says so in its summary.
- **The list ends where Instagram stops serving it to a logged-out visitor.** It is not a fixed number and it can move between runs.
- **Private posts and deleted posts** cannot be read. The run says which link failed and does not charge for it.
- **Newest first.** Rows follow Instagram's own order for the post at the time of the run.
- **Comments change.** A comment can be deleted or hidden between two runs, so two runs of the same post can differ.
- **Huge posts:** set **Maximum comments per post** to keep a run short and the bill small. Comments left out by the limit are not charged. If a list is still running when the run's time limit comes, the rows read so far are saved and charged, and the summary says the list was cut short.
- **Scheduling:** run it daily on a fixed list to collect new comments; `commentId` is stable, so you can drop rows you already have.

### FAQ

**Does it need an Instagram login or cookies?** No. It reads what Instagram shows to a logged-out visitor.

**Can it read replies to a comment?** No. Instagram shows replies to a logged-in session only: its public comment list reports no reply count at all, and asking for a comment's replies answers the login page. The post's own comment count includes those replies, which is why the row count can be below it.

**Why did I get fewer comments than the post shows?** Instagram's count includes replies, and it stops serving the list to logged-out visitors at some point. Both effects are measured, and the run summary tells you when it happens.

**Can I read comments from several posts in one run?** Yes, up to 50 links, four at a time.

**Can I run it on a schedule or through the API?** Yes. The Actor takes a short code, a post link or a reel link, so it works from a task, a schedule, or an Apify API call.

# Actor input Schema

## `postUrls` (type: `string`):

One per line: a post link (instagram.com/p/DUrk3XbjO-4/), a reel link (instagram.com/reel/DUrk3XbjO-4/) or just the code. Up to 50 lines, and a link given twice is read once. A profile, hashtag or other site stops the run before anything is read, naming the line.

## `maxCommentsPerPost` (type: `integer`):

Stop after this many comments for each post, 0 to 10,000. 0 reads every comment the post has, which can be tens of thousands. Comments left out by the limit are never charged.

## Actor input object example

```json
{
  "postUrls": "https://www.instagram.com/reel/DUrk3XbjO-4/",
  "maxCommentsPerPost": 50
}
```

# Actor output Schema

## `comments` (type: `string`):

One row per comment in the default dataset; open the link for the overview view.

# 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 = {
    "postUrls": "https://www.instagram.com/reel/DUrk3XbjO-4/",
    "maxCommentsPerPost": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("luzivanlt/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 = {
    "postUrls": "https://www.instagram.com/reel/DUrk3XbjO-4/",
    "maxCommentsPerPost": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("luzivanlt/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 '{
  "postUrls": "https://www.instagram.com/reel/DUrk3XbjO-4/",
  "maxCommentsPerPost": 50
}' |
apify call luzivanlt/instagram-comments-scraper --silent --output-dataset

```

## MCP server setup

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