# Instagram Comments Scraper & Export (`maximedupre/instagram-comments-export`) Actor

Export public comments and replies from Instagram posts, Reels, and profiles. Get the text, date, likes, commenter details, and post link for each one. Filter by likes, words, or date, and add the accounts that liked each comment.

- **URL**: https://apify.com/maximedupre/instagram-comments-export.md
- **Developed by:** [Maxime Dupré](https://apify.com/maximedupre) (community)
- **Categories:** Social media, Marketing, For creators
- **Features:** Limited permissions
- **Stats:** 13 total users, 1 monthly users, 2.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 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

### 💬 Export public comments and replies from Instagram posts and Reels

Instagram Comments Export is for marketers, creators, brand teams, and researchers who need Instagram comments in a table. Paste post links, Reel links, or profile links. You get each comment and each reply as its own row, with the text, date, likes, reply count, commenter details, and the post it came from. You can also add the accounts that liked each comment.

- Export Instagram comments to Excel or CSV so you can read a whole thread in one sheet.
- Pick a fair winner for a giveaway by exporting every comment on the giveaway post.
- Find the top comments on a Reel to see what your audience agrees with.
- Keep only comments that contain your brand name, a product, or a question word.
- Track new comments on a profile's latest posts by reading only comments posted after a date.

#### 📋 What data you get from each comment

- **Comment:** the comment ID, text, posted date and time in UTC, like count, and reply count.
- **Reply threads:** each reply is its own row, and `parentCommentId` links it to the comment it answers.
- **GIFs and stickers:** a link to the GIF or sticker attached to a comment.
- **Commenter:** username, user ID, full name, profile picture, verified status, and private status.
- **Post:** the link to the post or Reel and the username of the account that owns it.
- **Likers (optional):** the accounts that liked each comment or reply, with username, user ID, full name, and verified status.

#### 🚀 How to export Instagram comments

1. Choose **Find comments from**: **Post and Reel links** or **Profile links**.
2. Paste your links. For profiles, set how many of the newest posts to read.
3. Pick **Newest first** or **Top comments first**, and set your limits and filters.
4. Click **Start**. When the run ends, download your comments as Excel, CSV, JSON, or another format from the **Output** tab.

The Actor reads every comment page it can reach on each post, and saves each comment only once. To get all available comments, leave **Max comments** empty or set it to 0.

#### ⚙️ Input

**Input fields**

| Field | Type | What it does |
| --- | --- | --- |
| `findBy` | string | Required. `postLinks` reads the comments of exact posts and Reels. `profileLinks` reads the comments of each profile's latest posts. Only the links for this choice are used. The form prefills `profileLinks`. |
| `postUrls` | array | Links to Instagram feed posts or Reels, such as `https://www.instagram.com/p/SHORTCODE/` or `https://www.instagram.com/reel/SHORTCODE/`. Used with `postLinks`. |
| `profileUrls` | array | Links to public Instagram profiles, such as `https://www.instagram.com/instagram/`. Used with `profileLinks`. The form prefills the `instagram` profile. |
| `postsPerProfile` | integer | How many of the newest posts to read from each profile. Minimum 1. Default 3. |
| `sort` | string | `newest` gets the newest comments first. `top` gets comments in the ranked order that Instagram shows. Default `newest`. |
| `maxItems` | integer | The most comment and reply rows to save in the whole run. Empty or 0 means all available comments. The form prefills 20. |
| `maxCommentsPerPost` | integer | The most comment and reply rows to save from each post. Empty or 0 means all available comments from each post. |
| `minLikes` | integer | Keep only comments and replies with at least this many likes. Empty keeps all. |
| `keywords` | array | Keep only comments and replies that contain at least one of these words or phrases. Case does not matter. Empty keeps all. |
| `postedAfter` | string | Keep only comments and replies posted after this date, such as `2026-01-31`, or within a recent period, such as `7 days`. Dates use UTC. |
| `includeLikers` | boolean | Add the accounts that liked each comment or reply. Default `false`. |
| `maxLikersPerComment` | integer | The most liker accounts to save for each comment or reply. 0 means all available likers. Default 10. Used only when `includeLikers` is on. |

The filters work on replies too. The per-post and run limits count only the rows that pass your filters.

**Example input**

```json
{
  "maxItems": 20,
  "findBy": "profileLinks",
  "profileUrls": [
    {
      "url": "https://www.instagram.com/instagram/"
    }
  ],
  "postsPerProfile": 3,
  "sort": "newest",
  "includeLikers": false,
  "maxLikersPerComment": 10
}
```

#### 🧾 Output

**Output fields**

Each row is one comment or one reply. Fields with no value are left out.

| Field | Type | What it does |
| --- | --- | --- |
| `id` | string | The Instagram ID of the comment or reply. |
| `text` | string | The comment or reply text. Left out for a comment with only a GIF, sticker, or photo. |
| `postedAt` | string | When the comment or reply was posted, in UTC. |
| `likeCount` | number | How many accounts liked the comment or reply. |
| `replyCount` | number | How many replies the comment has. Instagram shows this number for top-level comments. |
| `parentCommentId` | string | For a reply, the ID of the comment it answers. Top-level comments do not have it. |
| `gifUrl` | string | Link to the GIF or sticker attached to the comment. |
| `owner.username` | string | The commenter's Instagram username. |
| `owner.id` | string | The commenter's Instagram user ID. |
| `owner.fullName` | string | The full name on the commenter's profile. |
| `owner.profilePicUrl` | string | Link to the commenter's profile picture. |
| `owner.isVerified` | boolean | True when the commenter's account is verified. |
| `owner.isPrivate` | boolean | True when the commenter's account is private. |
| `likers` | array | The accounts that liked the comment or reply. Only when `includeLikers` is on. |
| `likers[].username` | string | The liker's Instagram username. |
| `likers[].id` | string | The liker's Instagram user ID. |
| `likers[].fullName` | string | The full name on the liker's profile. |
| `likers[].isVerified` | boolean | True when the liker's account is verified. |
| `postUrl` | string | Link to the post or Reel the comment belongs to. |
| `postOwnerUsername` | string | The username of the account that owns the post or Reel. |

**Example comment with likers**

```json
{
  "id": "17996232786030677",
  "text": "No",
  "postedAt": "2026-10-08T16:49:30.000Z",
  "likeCount": 200594,
  "replyCount": 150,
  "owner": {
    "username": "alwy_lbs",
    "id": "1583318340",
    "fullName": "ᴀʟ",
    "profilePicUrl": "https://scontent-arn2-1.cdninstagram.com/v/t51.82787-19/838578915_18645851431022341_6060108212571226446_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=109&ig_cache_key=GOOy_zEFrxSXTT5CAE5BvL5P1BlUbmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=Ip9668j_hnoQ7kNvwESp9ye&_nc_oc=Adovb3L99bKq0kPAdnXQmzjX9wJk9L24UjoqF9p-P9ro_plAMs7hNG7vplbab7OQc0Q&_nc_zt=24&_nc_ht=scontent-arn2-1.cdninstagram.com&_nc_gid=QmCXjOADk8-ALntjc8C0hQ&_nc_ss=7c6a8&oh=00_AQRuMua-Z_46zgQJKh59d0Bn2SoD_7tBEy_DD0mkaL2Mig&oe=6AFA566C",
    "isVerified": false,
    "isPrivate": false
  },
  "postUrl": "https://www.instagram.com/reel/DePXzh9CsL8/",
  "postOwnerUsername": "khaby00",
  "likers": [
    {
      "username": "_zyc_777_",
      "id": "71738148681",
      "fullName": "๏ＨＵＳＫＹ๏",
      "isVerified": false
    },
    {
      "username": "lil_chris_arsenal",
      "id": "76100269623",
      "fullName": "lil Chris",
      "isVerified": false
    },
    {
      "username": "_halcoach",
      "id": "61885267034",
      "fullName": "___Nolk______",
      "isVerified": false
    },
    {
      "username": "eu_.alissuu",
      "id": "37903703362",
      "fullName": "🐺🌙",
      "isVerified": false
    },
    {
      "username": "dofff97",
      "id": "16326227021",
      "fullName": "A",
      "isVerified": false
    }
  ]
}
```

#### 💳 Pricing

This Actor uses pay-per-event pricing. You pay only for what is saved.

| Event | What you pay for | Free | Bronze | Silver | Gold and higher |
| --- | --- | --- | --- | --- | --- |
| Comment | One saved comment or reply | $0.0014 | $0.00125 | $0.00115 | $0.0009 |
| Comment liker | One liker account saved on a comment or reply | $0.00035 | $0.00035 | $0.0003 | $0.00025 |

For example, 1,000 comments cost $1.40 on the Free plan. Comments that your filters skip are not charged. Liker accounts are charged only when **Include likers** is on. If you set a maximum cost for the run, the Actor stops when it reaches that limit.

#### 🔌 Integrations

You can send your comments to Google Sheets, Slack, Zapier, Make, webhooks, and other tools with Apify integrations. You can also start runs and read results with the Apify API. Watch how integrations work:

https://www.youtube.com/watch?v=bNACk1_S_6w\&list=PLObrtcm1Kw6MUrlLNDbK9QRg8VDJg0gOW\&index=4

#### ❓ FAQ

##### Can I export all comments with no limit?

Yes. Leave **Max comments** and **Max comments per post** empty, or set them to 0, to get every comment the Actor can reach on each post. Instagram's reply count can be higher than the number of replies it lets anyone see, so a few replies can be missing.

##### How do I export Instagram comments for a giveaway?

Paste the giveaway post link, choose **Post and Reel links**, and leave the limits empty. Each comment and reply is saved once, with the commenter's username, so you can pick a winner from the list. Use **Words or phrases** to keep only comments that contain a required tag or word.

##### Can I export Instagram comments to Excel or Google Sheets?

Yes. Download the results as Excel or CSV from the **Output** tab, or send them to Google Sheets with the Apify integration.

##### Does it get replies to comments?

Yes. Replies are saved as their own rows. Each reply has `parentCommentId`, which is the ID of the comment it answers.

##### What happens with private posts or profiles?

The Actor reads public posts only. It skips a private post, or a profile with no public posts, writes a warning in the log, and continues with your other links.

##### Why does a comment have no text?

A comment with only a GIF, sticker, or photo has no text. The `text` field is left out, and `gifUrl` holds the GIF or sticker link when there is one.

##### Is it free?

No. You pay per saved comment and per saved liker account, as shown in Pricing. A free Apify plan includes monthly credit that you can use for this Actor.

##### Do I need an Instagram account?

No. You only paste links. You do not give any Instagram login, cookies, or API key.

### 📝 Changelog

**v0.0** (11-11-2026)

- Initial release.

### 🆘 Support

For issues, questions, or feature requests, [file a ticket](https://console.apify.com/actors/maximedupre~instagram-comments-export/issues) and I'll fix or implement it in less than 24h 🫡

### 🔗 Related Actors

- [Instagram Posts & Reels Comments Scraper](https://apify.com/maximedupre/instagram-reels-comments-scraper): get comments by post link, shortcode, media ID, or username.
- [Instagram Likes Scraper](https://apify.com/maximedupre/scrape-instagram-likes): get the accounts that liked a public Instagram post.
- [Instagram Post & Reel Content Scraper](https://apify.com/maximedupre/instagram-post-content-scraper): get the captions, counts, and media links of a profile's posts and Reels.
- [Instagram Engagement Scraper](https://apify.com/maximedupre/instagram-engagement-scraper): compare engagement rates of public Instagram profiles.
- [Facebook Post Comments Scraper](https://apify.com/maximedupre/facebook-post-comments-scraper): export comments and replies from Facebook posts, Reels, and Pages.

**Made with ❤️ by Maxime Dupré**

# Actor input Schema

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

The most comment and reply rows to save in this run. Leave it empty or set 0 to get all available comments.

## `findBy` (type: `string`):

Pick Post and Reel links to read the comments of exact posts. Pick Profile links to read the comments of each profile's latest posts.

## `postUrls` (type: `array`):

Links to Instagram feed posts or Reels, such as https://www.instagram.com/p/SHORTCODE/ or https://www.instagram.com/reel/SHORTCODE/. Use complete links.

## `profileUrls` (type: `array`):

Links to public Instagram profiles, such as https://www.instagram.com/instagram/. Use complete links.

## `postsPerProfile` (type: `integer`):

How many of the newest posts to read from each profile.

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

Get the newest comments first, or get Instagram's top comments first. Top comments use the same ranked order that Instagram shows.

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

The most comment and reply rows to save from each post. Leave it empty or set 0 to get all available comments from each post.

## `minLikes` (type: `integer`):

Keep only comments with at least this many likes. Leave it empty to keep all comments.

## `keywords` (type: `array`):

Keep only comments that contain at least one of these words or phrases. Put one word or phrase in each entry. Leave it empty to keep all comments.

## `postedAfter` (type: `string`):

Keep only comments posted after this date. Pick a date such as 2026-01-31, or type a recent period such as 7 days. Dates use UTC.

## `includeLikers` (type: `boolean`):

Add the accounts that liked each comment or reply. Each saved liker account is charged.

## `maxLikersPerComment` (type: `integer`):

The most liker accounts to save for each comment or reply, where available. Set 0 to get all likers. Used only when Include likers is on.

## Actor input object example

```json
{
  "maxItems": 20,
  "findBy": "profileLinks",
  "profileUrls": [
    {
      "url": "https://www.instagram.com/instagram/"
    }
  ],
  "postsPerProfile": 3,
  "sort": "newest",
  "includeLikers": false,
  "maxLikersPerComment": 10
}
```

# Actor output Schema

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

The comments and replies saved in this run.

# 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 = {
    "maxItems": 20,
    "findBy": "profileLinks",
    "profileUrls": [
        {
            "url": "https://www.instagram.com/instagram/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("maximedupre/instagram-comments-export").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 = {
    "maxItems": 20,
    "findBy": "profileLinks",
    "profileUrls": [{ "url": "https://www.instagram.com/instagram/" }],
}

# Run the Actor and wait for it to finish
run = client.actor("maximedupre/instagram-comments-export").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 '{
  "maxItems": 20,
  "findBy": "profileLinks",
  "profileUrls": [
    {
      "url": "https://www.instagram.com/instagram/"
    }
  ]
}' |
apify call maximedupre/instagram-comments-export --silent --output-dataset

```

## MCP server setup

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

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/YzPD7B9oN02Ud1kdr/builds/U9fiIH450BzH3D5qq/openapi.json
