# Instagram Comments Scraper - Fast & Filterable (`orkait/instagram-comments-scraper`) Actor

Scrape Instagram comments from any post or reel. Add post URLs and export comment text, author username, verified status, likes, reply count and timestamps to JSON, CSV or Excel. Filter comments by likes, date or keyword and sort them server-side before you pay for a row.

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

## Pricing

$1.00 / 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 💬 Instagram Comments Scraper

**Every Instagram post is a focus group nobody transcribed.**

Scrape Instagram comments from posts and reels. Just add one or more Instagram post URLs to get comment text, comment IDs, reply counts, likes, timestamps, usernames and profile pictures. Export to JSON, CSV or Excel, or pull the data straight through the API.

### ✨ What makes this Instagram scraper different

| | Most Instagram scrapers | This one |
|---|---|---|
| **Filtering** | Returns everything, you filter afterwards | Filters **before** counting, so you pay for matches |
| **Sorting** | Whatever order the platform gave | Enforced with a stable tiebreaker, identical every run |
| **Missing data** | A silent `0` you cannot distinguish from a real zero | Named in `meta.fields_unavailable` |
| **Bad input** | Burns a run, then fails | Rejected before the request is made |

### 🎯 What can I do with Instagram Comments Scraper?

#### Measure how a launch actually landed

Point it at the launch post, sort by likes, and read the top 20 comments. That is your sentiment, in the audience's own words.

```json
{
  "targets": ["https://www.instagram.com/p/YOUR_POST/"],
  "limit": 100,
  "sortBy": "like_count",
  "sortOrder": "desc"
}
```

#### Find the people worth replying to

Filter for comments with real engagement and skip the emoji-only noise.

```json
{
  "targets": ["https://www.instagram.com/p/YOUR_POST/"],
  "filters": { "min_like_count": 5, "verified_authors_only": false }
}
```

#### Watch a competitor's audience

Run it on their posts on a schedule and diff the results to see what their customers keep asking for.

```json
{
  "targets": ["https://www.instagram.com/p/THEIR_POST/"],
  "filters": { "posted_after": "2026-08-01T00:00:00Z" }
}
```

### 🧾 What can Instagram Comments Scraper do?

- Scrape all Instagram comments from any public post or reel
- Get comment likes, reply counts and exact timestamps
- Extract the commenter's username, full name, ID and profile picture
- Filter Instagram comments by likes, date, keyword or verified authors
- Sort comments by newest, oldest or most liked
- Export Instagram comment data to JSON, CSV, Excel or an API feed

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

| Field | Description |
|---|---|
| `id` | Comment ID |
| `message` | The comment text |
| `like_count` | Likes on the comment |
| `reply_count` | Number of replies |
| `created_at` | When it was posted, UTC |
| `user.username` | Commenter username |
| `user.full_name` | Commenter display name |
| `user.id` | Commenter Instagram ID |
| `user.is_verified` | Whether the commenter is verified |
| `user.profilePicUrl` | Commenter profile picture |
| `post_url` | The post the comment belongs to |
| `post_id` | Instagram media ID |
| `url` | Direct link to the comment |

### ▶️ How to scrape Instagram comments

1. Add your Instagram post or reel URLs to **targets**
2. Set `limit`, and optionally **Sort by** and `filters`
3. Click **Start**
4. Download the dataset as JSON, CSV, Excel or XML, or pull it from the API

### ⬇️ Input

| Field | Required | Description |
|---|:--:|---|
| `targets` | yes | Instagram post or reel URLs. |
| `limit` | no | Max items per target, applied after filtering. Default 15, max 5000. |
| `sortBy` | no | Pick a field to order by. Leave empty for the default order. |
| `sortOrder` | no | Highest first or lowest first. Defaults to highest first. |
| `filters` | no | Applied before sorting and before the limit. |

```json
{
  "targets": [
    "https://www.instagram.com/p/Dbru79IAdH-/"
  ],
  "limit": 50,
  "sortBy": "like_count",
  "sortOrder": "desc",
  "filters": {
    "min_like_count": 10
  }
}
```

### 🎛️ How to filter and sort Instagram comments

| Filter | Effect |
|---|---|
| `min_like_count` | Only comments above an engagement floor |
| `min_reply_count` | Only comments that started a thread |
| `posted_after` / `posted_before` | Date window, naive values read as UTC |
| `verified_authors_only` | Only verified accounts |
| `text_contains` | Substring match on the comment body |
| `exclude_authors` | Drop bots or your own team |

Filters run before the row count, so a narrow filter costs less than a broad one.
Sorting is applied with a stable tiebreaker, so two identical runs return
identical order, and the sort you pick is applied server-side, not left to the platform.

### ⬆️ Output

One row per item, exportable as JSON, CSV, Excel or XML, or straight from the API.

#### 💬 Extracted Instagram comments data sample

```json
{
  "id": "18220240222333164",
  "message": "This is the real life action we didn't know we needed, I'm in\ud83d\udd25\ud83e\udd81",
  "like_count": 12,
  "reply_count": 0,
  "created_at": "2026-08-08T12:38:52Z",
  "user": {
    "id": "216244291",
    "username": "jdrodgir",
    "full_name": "Jose David Rodgir",
    "is_verified": false,
    "profilePicUrl": "https://scontent-atl3-3.cdninstagram.com/..."
  },
  "post_url": "https://www.instagram.com/p/Dbru79IAdH-/",
  "post_id": "3957463127796339198",
  "url": "https://www.instagram.com/p/Dbru79IAdH-/c/18220240222333164/"
}
```

### 🛡️ Why results stay reliable when Instagram changes

Instagram changes what it returns. When a field stops being available it does not
vanish from the schema: it comes back empty and `meta.fields_unavailable` names
it. You branch on that instead of guessing why a number is zero.

### ❓ FAQ

#### How many Instagram comments can I scrape?

Up to 5000 per post URL per run. Raise `limit` to widen the set, then let filters and sorting keep only what you need.

#### Can I scrape Instagram comment replies?

Reply counts come back on every comment. If the serving path cannot supply them, `meta.fields_unavailable` says so rather than quietly returning zero.

#### Can I scrape Instagram comments by keyword?

Yes. `filters.text_contains` keeps only comments containing a phrase, and `filters.exclude_authors` drops accounts you do not want.

#### Can I scrape comments from Instagram reels?

Yes. Reel URLs work exactly like post URLs.

#### How do I get the most liked Instagram comments?

Set **Sort by** to Likes. Sorting runs server-side, so repeat runs return identical order.

#### Can I scrape comments from multiple Instagram posts at once?

Add as many post URLs to `targets` as you need. Each is fetched and its comments returned with `post_url` and `post_id` attached.

### 🔗 Scrape more from Instagram

- 👤 [Instagram Profile Scraper](https://apify.com/orkait/instagram-profile-scraper)
- 🎬 [Instagram Reels Scraper](https://apify.com/orkait/instagram-reels-scraper)
- 📸 [Instagram Posts Scraper](https://apify.com/orkait/instagram-posts-scraper)
- 🔍 [Instagram Search Scraper](https://apify.com/orkait/instagram-search-scraper)

# Actor input Schema

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

One or more Instagram post or reel URLs.

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

Maximum items returned per target, after filtering.

## `sortBy` (type: `string`):

Which field to order results by. Leave empty for the default (Newest first).

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

Highest first, or lowest first.

## `filters` (type: `object`):

Applied before sorting and before the limit. Accepts: min\_like\_count, min\_reply\_count, posted\_after, posted\_before, verified\_authors\_only, text\_contains, exclude\_authors.

## Actor input object example

```json
{
  "targets": [
    "https://www.instagram.com/p/Dbru79IAdH-/"
  ],
  "limit": 15,
  "sortOrder": "desc",
  "filters": {}
}
```

# Actor output Schema

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

Every comment returned by this run, one row each.

# 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/Dbru79IAdH-/"
    ],
    "limit": 15
};

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

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

```

## MCP server setup

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