# Instagram Comments Scraper · No Login (`nologin/instagram-comments-scraper`) Actor

Instagram comments scraper, no login, $0.75/1K vs Apify's $2.30 — every comment Instagram shows a visitor: text, likes, time, author. Newest or most liked first, a date filter, usernames → their latest posts. Commenter profiles with one tick; replies on paid plans. CSV, Excel, JSON.

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

## Pricing

from $0.65 / 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 — every comment Instagram shows, no login

**Paste post or reel links, codes or usernames — get one row per comment: text, likes, time, author and the post's own numbers. No login, no cookies. $0.75 per 1,000 comments on Starter (+ $1.75 per 1,000 posts read) vs $2.30 at Apify's Comments Scraper. 465 comments of 10 posts in 4.7–7.9 s on Apify's free plan (16 Nov 2026).**

![Instagram Comments Scraper output: the 12 newest comments of a natgeo reel with likes, time and the post's numbers, plus a free row for a post that doesn't exist](https://media.fypspy.com/nologin/instagram-comments-scraper/rows-v1.png)

- 📄 **Every comment Instagram shows a visitor**, newest first, ~24 a page — 113 comments of one post in 6 requests in our check of 16 Nov 2026.
- 🔥 **Most liked first** or **only comments newer than** a date — both with no login.
- 👤 **Commenter profiles** with one tick — followers, bio, category — + $2.05 per 1,000 commenters, free plan too.
- 💬 **Replies** and **hidden 18+ posts** on paid plans; a reply at a comment's price.
- 🔁 **Same input as Apify's Comments Scraper** — its output names on by default.
- 🔓 **Never charged:** posts that don't exist, broken links, private profiles, hidden posts without the box, duplicates.

**Try it:** press **Start** — the prefilled natgeo reel returns its 50 newest comments.

> 🆕 **New** — tried it? Tell us in a review.

### Why scrape Instagram comments?

- **Sentiment and feedback mining:** every comment Instagram shows on your or a competitor's posts — feed the text to ChatGPT or Claude.
- **Comment monitoring:** schedule it with *Only comments newer than* (e.g. 24 hours) — a quiet post costs one read; send new comments to Slack, Google Sheets or your CRM via n8n, Make or Zapier.
- **Find what people like most:** *Most liked first* gives a post's top comments with no login.
- **Lead and influencer discovery:** tick *Commenter profiles* — each commenter's followers, bio, category and account type in the same row.
- **Giveaways:** each comment with its author and time; *Replies* (paid plans) adds the replies.
- **Export to CSV, Excel or JSON** for a sheet, a CRM or an AI agent.

### What data can I scrape from Instagram comments?

| Data | What it is |
|---|---|
| Post link | Link to the post: with Apify-style field names (on by default) the link as you gave it, as Apify's Comments Scraper gives it; off — https://www.instagram.com/p/<code>/ |
| Place in post | Place of the comment among the post's comments as delivered: 1 — the newest (with “Most liked first”, the most liked) |
| Commenter | Username of the commenter |
| Comment | The comment's text |
| Comment likes | Likes of the comment |
| Time | When the comment was written (UTC, ISO 8601) |
| Commenter verified | True if the commenter has the blue check |
| Reply | True on a reply — replies come with “Replies” (paid plans), each a row of its own |

Up to 44 fields per row in total — the **Output** tab lists every one of them.

### Compared with Apify's Instagram Comments Scraper

| | This Actor | Apify's Instagram Comments Scraper (Starter) |
|---|---|---|
| Price per 1,000 comments (Starter) | $0.75 + $1.75 per 1,000 posts read | $2.30 |
| 100 comments of one post (Starter) | $0.0773 | $0.23 |
| natgeo's reel DehZj9wggt0, more than 15 asked | every comment Instagram shows a visitor — 113 read in our check | 15 of 17 asked (our run) |
| Order | newest first, or most liked first — no login | newest first (our run) |
| Commenter's full name and private flag | with *Commenter profiles* (no login) or *Replies* | null on 15 of 15 rows (our run) |
| Commenter profiles | + $2.05 per 1,000, no login | not in its input |

Their prices and fields as listed on Apify on 16 November 2026 — check their page for today's.

### How to scrape Instagram comments

1. Paste post or reel links, their codes or usernames, one per line — or upload a CSV.
2. Press **Start** — rows stream into the Output tab while the run goes.
3. Download them as JSON, CSV, Excel or HTML, or get them through the API.

Works with any public profile on [Instagram](https://www.instagram.com/) — no login, no cookies, no proxies to set up,
no Instagram account of yours.

**No input at hand?** Press **Start** with an empty input — you get a 3-row sample.

### Input example

```json
{
  "directUrls": [
    "https://www.instagram.com/reel/DehZj9wggt0/"
  ],
  "resultsLimit": 50,
  "sortOrder": "newest",
  "maxPostsPerProfile": 12,
  "includeCommenterProfiles": false,
  "includeHidden": false
}
```

### Output example: Instagram comments data

```json
{
  "postShortCode": "DehZj9wggt0",
  "postUrl": "https://www.instagram.com/reel/DehZj9wggt0/",
  "postCaption": "Keeping up with a pack of hunting wolves is just another day at the office for @bertiegregory and his team.\n\n#WolvesUpClose with Bertie Gregory premieres Friday, November 6 at 8/7c on National Geographic. Streaming on @DisneyPlus and @hulu.",
  "postOwnerUsername": "natgeo",
  "postLikes": 60076,
  "postCommentsCount": 520,
  "postTakenAt": "2026-10-15T19:00:02Z",
  "postType": "reel",
  "id": "18078607262732518",
  "position": 1,
  "commentUrl": "https://www.instagram.com/p/DehZj9wggt0/c/18078607262732518/",
  "parentId": null,
  "replyToId": null,
  "isReply": false,
  "text": "I enjoyed watching the documentary . Beautiful animals ❤️",
  "mentions": [],
  "hashtags": [],
  "isEdited": null,
  "createdAt": "2026-11-13T13:28:10Z",
  "likes": 0,
  "repliesCount": null,
  "isRanked": null,
  "ownerUsername": "viva••••••••",
  "ownerFullName": null,
  "ownerId": "7414327173",
  "ownerVerified": false,
  "ownerPrivate": null,
  "ownerProfilePicUrl": "https://scontent-lga3-3.cdninstagram.com/v/t51.82787-19/558324580_18306315271247174_468188522244649375_n.jpg",
  "ownerHasStory": null,
  "ownerFollowers": null,
  "ownerFollowing": null,
  "ownerBiography": null,
  "ownerExternalUrl": null,
  "ownerCategory": null,
  "ownerAccountType": null,
  "ownerIsBusiness": null,
  "owner": {
    "id": "7414327173",
    "username": "viva••••••••",
    "is_verified": false,
    "profile_pic_url": "https://scontent-lga3-3.cdninstagram.com/v/t51.82787-19/558324580_18306315271247174_468188522244649375_n.jpg",
    "full_name": null,
    "is_private": null
  },
  "replies": null,
  "inputUrl": "https://www.instagram.com/reel/DehZj9wggt0/",
  "scrapedAt": "2026-11-16T15:34:42Z",
  "notCollected": [
    "ownerFullName",
    "ownerPrivate",
    "ownerHasStory",
    "isEdited",
    "isRanked",
    "repliesCount",
    "replies",
    "ownerFollowers",
    "ownerFollowing",
    "ownerBiography",
    "ownerExternalUrl",
    "ownerCategory",
    "ownerAccountType",
    "ownerIsBusiness"
  ],
  "note": "Read with no login from the comment list Instagram shows logged-out visitors. Reply counts, the author's name, privacy and story come with “Replies” (a logged-in read, paid Apify plans); the author's followers, bio and category with “Commenter profiles” (no login)",
  "likesCount": 0,
  "timestamp": "2026-11-13T13:28:10Z"
}
```

Each row has up to 44 fields — the **Output** tab describes every one of them. Fields Instagram
doesn't show come as `null`, never as a fake `0`.

**Coming from Apify's Instagram Comments Scraper?** Its input works as it is — `directUrls`, `resultsLimit`,
`includeNestedComments` — and so does the Instagram Scraper's `isNewestComments`. *Apify-style field names* are on by
default: every row also carries `timestamp` and `likesCount`, with `owner` and `replies` as there, and `postUrl` is the
link as you gave it — your sheets, code and n8n flows keep working. Long list? Upload it as a CSV or TXT file in
*Or upload a list*.

### Limits

- Comments are what Instagram shows a logged-out visitor: every top-level comment, newest first, about 24 a page. Its counter includes replies and comments it hides from visitors, so a post can count more than it shows — the post's last row says so, free.
- Replies, the reply count, the commenter's full name and private flag and posts hidden from visitors (18+) need a logged-in read: paid Apify plans (*Replies*, *Hidden 18+ posts*). If our accounts can't take such a part in time, the post's comments still arrive and that part is not collected and not charged — a run never waits.
- *Most liked first* reads up to 2,000 newest comments of a post and gives the most liked of them — on a bigger post the older comments are not ranked.
- One post's pages are read one after another (Instagram's own cursor); many posts are read at the same time.
- A username gives its latest posts (*Max posts per profile*, 12 by default, up to 500), each a post read.
- Up to 50,000 inputs a run.
- **Free Apify plan:** every comment Instagram shows a logged-out visitor, newest first, no cap of ours — collected on Apify with no login and paid from your monthly Apify credit at the Free price; *Commenter profiles* works on it too. *Replies* and *Hidden 18+ posts* need a logged-in read and are for paid Apify plans: on the free plan the run leaves them out and says so.

### How much does it cost to scrape Instagram comments?

Pay per event: you pay for the rows you get, plus $0.0005 per run. No subscription to this Actor.

| Apify plan | Per 1,000 comments | What $5 of free credit gets you |
|---|---|---|
| Free | $1.50 | ≈ 3,300 comments |
| Starter | $0.75 | — |
| Business and higher | $0.65 | — |

Every event of this Actor on the Starter plan:

| Event | What it is | Price |
|---|---|---|
| Comment | Each comment or reply delivered — comments read with no login, replies with a login on paid Apify plans | $0.75 per 1,000 |
| Post read | Each post whose comments were read — with comments, with none in your dates, or with none at all. Once per post per run; missing, deleted, private and hidden posts are free | $1.75 per 1,000 |
| Add-on: commenter profile | Each commenter whose profile was read with no login — followers, following, bio, link, category, account type (only with “Commenter profiles”). Once per commenter per run | $2.05 per 1,000 |
| Add-on: hidden post | Each post Instagram hides from logged-out visitors (18+) read with a login — only with “Hidden 18+ posts” (paid Apify plans) | $0.70 per 1,000 |

**Typical jobs on Starter:**

- 15 comments of each of 100 posts ≈ $1.30
- 1,000 comments of 10 posts ≈ $0.77
- 50 comments of each of a profile's 12 latest posts ≈ $0.47
- 1,000 comments with each commenter's profile ≈ $2.82
- A daily check of 50 posts with no new comment ≈ $0.09

**Always free:** posts that don't exist, broken links, private profiles, posts hidden from visitors without the box, duplicates, and the free row at a post's end. Set **Maximum cost per run** in the run options to cap any run.

### Chain it with other Actors

Use the rows of an earlier run as the input: pick its dataset in *Or: dataset from another run* — we take the post links
(or the usernames). For example, get a brand's latest posts with
[Instagram Posts Scraper · No Login](https://apify.com/nologin/instagram-posts-scraper), then give its dataset to this
Actor — you get the comments of each post. Works with the datasets of Apify's own Instagram Actors too.

### Instagram comments API: Python, n8n, Make, Zapier and AI agents

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("nologin/instagram-comments-scraper").call(run_input={'directUrls': ['https://www.instagram.com/reel/DehZj9wggt0/'], 'resultsLimit': 50, 'sortOrder': 'newest', 'maxPostsPerProfile': 12, 'includeCommenterProfiles': False, 'includeHidden': False})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row)
```

**n8n, Make, Zapier or any HTTP client:** one request runs the Actor and returns the rows —
`POST https://api.apify.com/v2/acts/nologin~instagram-comments-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN`
with the input JSON as the body.

**AI agents (MCP)** — your agent gets this Actor as a tool:

- **Claude Code:** `claude mcp add --transport http apify "https://mcp.apify.com?tools=nologin/instagram-comments-scraper"`
- **Claude, Cursor, VS Code, n8n:** add `https://mcp.apify.com?tools=nologin/instagram-comments-scraper` as a remote MCP server and sign in to Apify.
- **Ask it:** *“Get the 100 newest comments of https://www.instagram.com/reel/DehZj9wggt0/ and summarize what people ask.”* · *“Get the comments of @natgeo's 5 latest posts with each commenter's followers.”*

### FAQ: scraping Instagram comments

**Coming from Apify's Instagram Comments Scraper?**
Its input works as it is: `directUrls` (post and reel links), `resultsLimit` (comments per post) and `includeNestedComments` (replies, paid plans) — and the Instagram Scraper's `isNewestComments`. *Apify-style field names* are on by default: rows also carry `timestamp`, `likesCount`, `owner` and `replies` with the same values, and `postUrl` is the link as you gave it — your sheets, code and n8n flows keep working. Change the Actor ID and run.

**Coming from another comments scraper?**
Its input works as it is: apidojo's `startUrls`, `postIds` (codes or media IDs), `fetchReplies` and `maxItems` (the run's total); scrapesmith's `postUrls`, `maxCommentsPerPost` and `sortOrder`; datadoping's `code_or_id_or_url`, `sort_by`, `max_comments`, `scrape_replies` and `max_replies`; automly's `resultsPerPost`, `commentsPostedAfter` and `includeCommenterProfiles`; supreme_coder's `urls` with usernames, `limitPerSource`, `maxPostsPerProfile` and `scrapeReplies`; yugenox's `maxComments`, `sort` and `newerThan`; memo23's `commentsSortOrder` and `includeReplies`; `urls` given as `{url}` items.

**How fast is it?**
On Apify, 16 Nov 2026: on the free plan (6 runs each) 40 comments of one reel in 3.3–5.6 s and 465 comments of 10 posts in 4.7–7.9 s; on paid plans 40 comments in 6.6–8.7 s and 465 in 7.6–8.5 s (one paid run took 22 s). Instagram gives a visitor about 24 comments a page and the pages of one post come one after another, so one big post takes longer than many small ones, which are read at the same time. Rows appear in the dataset while the run goes.

**How much does a run cost?**
On Starter: 100 comments of one post $0.0773 — Apify's Comments Scraper charges $0.23 for them; 15 comments of one post $0.0135; 50 comments of each of 10 posts $0.39; 20 comments of each of a profile's 12 latest posts $0.20. 1,000 comments of 10 posts ≈ $0.77; with each commenter's profile ≈ $2.82.

**What needs a login — and why?**
Instagram shows a logged-out visitor every top-level comment with its text, time, likes and author — that is read with no login, on every plan. Replies, the reply count, the commenter's full name and private flag and the few posts it hides from visitors (18+) are shown to logged-in users only: on paid Apify plans our accounts read them with *Replies* and *Hidden 18+ posts*, each at its price below. The free plan never uses an account: such a box is left out and the run says so. *Commenter profiles* brings the full name and more with no login.

**Why do I get fewer comments than the post shows?**
Instagram's counter includes the replies (and comments it hides from visitors), and the list a visitor is shown holds the top-level comments only. When the list ends below the counter, the post's last row is a free one that says how many Instagram counts and how many came — tick *Replies* (paid plans) for the rest. Fields Instagram doesn't show come as `null` and are named in `notCollected`, never as a fake `0`.

**Why is a post charged when no new comment came?**
To answer “nothing new” the post still has to be read. Each post read is charged once per run — $1.75 per 1,000 posts on Starter — with comments, with none in your dates, or with none at all, and a row says so. With *Only comments newer than* a quiet post costs one read: a daily check of 50 posts with nothing new is $0.09.

**What about private, missing or duplicate inputs?**
Each comes back as one free row with an `error` reason — a post that doesn't exist or was deleted, a broken link, a username nobody has, a private profile, a post hidden from visitors without *Hidden 18+ posts*: nothing is charged. Duplicates — the same post or username given twice — are removed before anything is read.

**Can I try it for free?**
Yes. On Apify's free plan every comment Instagram shows a visitor is read on Apify with no login and no cap of ours, paid from the monthly free credit Apify gives every account at the Free price: $1.50 per 1,000 comments + $1.95 per 1,000 posts read. *Commenter profiles* works there too; *Replies* and *Hidden 18+ posts* are for paid plans — the run leaves them out and says so.

**Can I get the commenters' profiles or emails?**
Profiles — tick *Commenter profiles*: each commenter's followers, following, full name, bio, link, category and account type in the same row, read with no login, once per commenter per run. Emails and phones: give this run's dataset to [Instagram Profile Scraper · No Login](https://apify.com/nologin/instagram-profile-scraper) with *Business email, phone & address*.

**How do I monitor new comments?**
Save the input as a Task with *Only comments newer than* (e.g. 24 hours) and add a Schedule: each run reads each post until its first older comment and returns only the new ones — a quiet post costs one post read. Send the rows to Slack, Google Sheets or your CRM through n8n, Make or Zapier.

**Do I need an Instagram account or cookies?**
No. You only paste usernames, links or keywords. Nothing to log in, no proxies to set up, nothing to install, and your own Instagram account is never involved.

**What am I charged for — and what's free?**
Only the events in the pricing table, plus $0.0005 per run. Rows with an `error` field are free, and duplicates are never returned or charged. Each run's `SUMMARY` record shows results and free rows.

**Can I cap what a run costs?**
Yes. Set **Maximum cost per run** in the run options — the run stops at your limit and `SUMMARY` shows `stoppedAtChargeLimit: true`.

**Can I use it from n8n, Make, Zapier or an AI agent?**
Yes, like any Apify Actor: REST API, webhooks, the n8n, Make and Zapier integrations, and the Apify MCP server for Claude, Cursor, VS Code and other MCP clients. Short timeout in your workflow or agent? Set *Return what's ready after (seconds)*: the run stops on time with what it has collected, and you pay only for that.

### For AI agents

```text
Actor:   nologin/instagram-comments-scraper
Does:    Scrape Instagram comments with no login: every comment Instagram shows on a post or reel — text, likes, time, author, newest or most liked first.
Input:   {"directUrls": ["https://www.instagram.com/reel/DehZj9wggt0/"], "resultsLimit": 50, "sortOrder": "newest", "maxPostsPerProfile": 12, "includeCommenterProfiles": false, "includeHidden": false}
Output:  one JSON row per result, up to 44 fields; main: postUrl, position, ownerUsername, text, likes, createdAt, ownerVerified, isReply
Free:    posts that don't exist, broken links, private profiles, posts hidden from visitors without the box, duplicates, and the free row at a post's end
Price:   event "result-comment" $0.75 per 1,000 on Starter + $0.0005 per run
Run:     POST https://api.apify.com/v2/acts/nologin~instagram-comments-scraper/run-sync-get-dataset-items?token=APIFY_TOKEN
```

### More Instagram Actors from us

**⭐ Recommended — the No Login line:** [All-in-one Instagram Scraper](https://apify.com/nologin/instagram-scraper) · [Profiles](https://apify.com/nologin/instagram-profile-scraper) · [Followers](https://apify.com/nologin/instagram-followers-scraper) · [Reels](https://apify.com/nologin/instagram-reels-scraper) · [Posts](https://apify.com/nologin/instagram-posts-scraper) · [Threads](https://apify.com/nologin/threads-scraper)

**Specialist tools:**

| Content | People | Stories |
|---|---|---|
| [Reel views checker](https://apify.com/instagram-data-api/instagram-reel-views-checker) · [Hashtags](https://apify.com/instagram-data-api/instagram-hashtag-scraper) · [Search](https://apify.com/instagram-data-api/instagram-search-scraper) · [Transcripts](https://apify.com/instagram-data-api/instagram-reels-transcript) · [Tagged posts](https://apify.com/instagram-data-api/instagram-tagged-scraper) · [Audio](https://apify.com/instagram-data-api/instagram-audio-scraper) · [Locations](https://apify.com/instagram-data-api/instagram-location-scraper) · [Hashtag stats](https://apify.com/instagram-data-api/instagram-hashtag-stats) |[Followers count](https://apify.com/instagram-data-api/instagram-followers-count-checker) · [Account age](https://apify.com/instagram-data-api/instagram-account-age-checker) · [Emails & phones](https://apify.com/instagram-data-api/instagram-email-phone-scraper) · [Similar accounts](https://apify.com/instagram-data-api/instagram-similar-accounts) · [Similar accounts with profiles](https://apify.com/instagram-data-api/instagram-lookalike-accounts) · [Likers](https://apify.com/instagram-data-api/instagram-likers-scraper) · [Engagement rate](https://apify.com/instagram-data-api/instagram-engagement-rate-calculator) · [Username checker](https://apify.com/instagram-data-api/instagram-username-checker) · [User ID](https://apify.com/instagram-data-api/instagram-user-id-finder) · [Follower checker](https://apify.com/instagram-data-api/instagram-follower-checker) | [Stories](https://apify.com/instagram-data-api/instagram-stories-scraper) · [Highlights](https://apify.com/instagram-data-api/instagram-highlights-scraper) |

What changed and when — see the **Changelog** tab.

# Changelog

This Actor's version history is a separate document: https://apify.com/nologin/instagram-comments-scraper/changelog.md

# Actor input Schema

## `directUrls` (type: `array`):

Any mix, one per line: a post or reel link, its code (<code>DehZj9wggt0</code>), a numeric media ID, or a username / profile link — its latest posts (Max posts per profile). Duplicates are removed before anything is read; a post that doesn't exist or a broken link is a free row.

## `inputFile` (type: `string`):

A CSV or TXT file: one username or link per line, or a table — we take the column named <code>username</code>, <code>url</code> or <code>link</code> (otherwise every cell). Added to the list above; duplicates are skipped.

## `resultsLimit` (type: `integer`):

How many comments to take from each post, in the order below. Empty — 100.

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

Newest first — the order Instagram shows a visitor. Most liked first — we read up to 2,000 newest comments of each post and give you the most liked of them. No login either way.

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

For a username or profile link: how many of its latest posts to read — each is a post read ($1.75 per 1,000, Starter).

## `newerThan` (type: `string`):

A date (<code>2026-11-01</code>) or a period (<code>7 days</code>, <code>24 hours</code>), in UTC. Reading a post stops at its first older comment, so a quiet post costs one read. Empty — no date limit.

## `includeCommenterProfiles` (type: `boolean`):

Each commenter's followers, following, full name, bio, link, category and account type in the same row — $2.05 per 1,000 commenters (Starter), once per commenter per run. Off — those fields are <code>null</code> and named in <code>notCollected</code>.

## `includeNestedComments` (type: `boolean`):

Each reply is a comment row of its own (<code>isReply</code>, <code>parentId</code>) at the comment's price, $0.75 per 1,000 (Starter); the rows also get the reply count and the commenter's full name and private flag.

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

With Replies: cap the replies taken under each comment. Empty — every reply Instagram shows, 0 — none.

## `includeHidden` (type: `boolean`):

The few posts Instagram hides from logged-out visitors (18+) are read with a login: the comments' price + $0.70 per 1,000 such posts (Starter). Off — they come back as free rows.

## `datasetId` (type: `string`):

Pick the dataset of an earlier run (or paste its ID). We take links and usernames from <code>url</code>, <code>inputUrl</code>, <code>profileUrl</code> or <code>username</code> — rows of any Instagram Actor.

## `officialFieldNames` (type: `boolean`):

On by default: each comment row also carries <code>timestamp</code> and <code>likesCount</code> with the same values, and <code>postUrl</code> is the post's link as you gave it — as in Apify's Instagram Comments Scraper (<code>owner</code> and <code>replies</code> are in every row anyway). Our own fields stay. Off — our names only, <code>postUrl</code> as <code>https://www.instagram.com/p/\<code>/</code>. No extra charge.

## `addSummaryRow` (type: `boolean`):

One free row at the end of the results: rows returned, what was charged (events and USD) and why the run stopped — for n8n, Make, Zapier and AI agents that read only the dataset. The same summary is always saved as SUMMARY in the run's key-value store.

## `includeRaw` (type: `boolean`):

Every row also gets <code>raw</code>: the whole object Instagram returned for it — every field it sends, untouched, for your own parsing or an AI agent. Heavy (about 30 KB a post), so it is added to the first 1,000 rows of a run. No extra charge.

## `returnWithinSecs` (type: `integer`):

Stop after this many seconds and return the results collected so far — you pay only for them. Handy for AI agents with a short tool timeout. Empty — run until everything is collected.

## Actor input object example

```json
{
  "directUrls": [
    "https://www.instagram.com/reel/DehZj9wggt0/"
  ],
  "resultsLimit": 50,
  "sortOrder": "newest",
  "maxPostsPerProfile": 12,
  "includeCommenterProfiles": false,
  "includeHidden": false,
  "officialFieldNames": true,
  "addSummaryRow": false,
  "includeRaw": false
}
```

# Actor output Schema

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

All rows of this run (JSON, CSV, Excel).

## `summary` (type: `string`):

What was returned, what was free and why (SUMMARY record).

# 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 = {
    "directUrls": [
        "https://www.instagram.com/reel/DehZj9wggt0/"
    ],
    "resultsLimit": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("nologin/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 = {
    "directUrls": ["https://www.instagram.com/reel/DehZj9wggt0/"],
    "resultsLimit": 50,
}

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

```

## MCP server setup

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