# Instagram Comments Scraper - Post & Reel Comments (`dami_studio/instagram-comments-scraper`) Actor

Pull every comment from any Instagram post or reel - cheapest at $0.40/1k. Returns text, likes, reply counts, author, verified badge and timestamp. Bulk URLs, export JSON/CSV/Excel or send to Notion. Failed and empty runs are never charged.

- **URL**: https://apify.com/dami\_studio/instagram-comments-scraper.md
- **Developed by:** [Dami's Studio](https://apify.com/dami_studio) (community)
- **Categories:** Social media, Lead generation
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.40 / 1,000 result returneds

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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 — Post & Reel Comments

Scrape every comment from any **Instagram post or reel** — text, like count, reply count, author, verified badge, and timestamp. Flat JSON/CSV/Excel export or one-click Notion delivery. **Pay per comment — failed or empty runs cost nothing.**

### Why it wins

- 💸 **$0.40 / 1,000 comments** — the same account-pool method the expensive incumbents charge multiples for, at a fraction of the price.
- 🔄 **Account-pool rotation, built in** — drop in a few throwaway `sessionid` cookies and the actor rotates them across fresh **residential** IPs automatically, exactly how the paid services stay unblocked.
- 🧹 **Clean, flat records** — no nested GraphQL soup. One row per comment, ready for a sheet or a database.
- 📬 **Notion delivery built in** — pipe results straight into a Notion data source, no glue code.
- 🎯 **Post URL or shortcode** — paste `/p/`, `/reel/`, or `/tv/` links, or bare shortcodes. Both work.

> Instagram gates comments behind a login — there is **no keyless path** for this data (the paid services use account pools too). This actor does the same, with **your** sessionid cookies.

### ⚠️ Requires a logged-in `sessionid` cookie

**Get the cookie (about 1 minute):** log in to instagram.com with a **throwaway account** → press `F12` → **Application** → **Cookies** → copy the `sessionid` value → paste it into `sessionCookies`. Add a few accounts (one per line) for higher throughput and lower block rates.

### Input

| Field | Type | Description |
|---|---|---|
| `postUrls` | array | Instagram post / reel / TV URLs (`/p/…`, `/reel/…`, `/tv/…`). |
| `shortcodes` | array | Or bare post shortcodes (e.g. `Bt_RWejnzWS`). |
| `maxComments` | integer | Cap on total comments returned (1–5000, default 100). Charged per comment. |
| `sessionCookies` | array | **Required.** One or more `sessionid` cookies — the actor rotates them. |
| `proxyConfiguration` | object | Residential proxy (preconfigured, required by Instagram). |
| `notionConnector` | string | Optional Notion connector ID for delivery. |
| `notionParentId` | string | Optional Notion data-source ID. |

### Output

One flat record per comment:

```json
{
  "type": "comment",
  "id": "17912345678901234",
  "mediaId": "1234567890123456789",
  "text": "this is unreal 🔥",
  "likeCount": 42,
  "replyCount": 3,
  "createdAt": "2026-06-20T14:08:31.000Z",
  "ownerUsername": "real_user",
  "ownerId": "9876543210",
  "ownerVerified": false
}
````

### Pricing

**$0.40 per 1,000 comments** (pay-per-result). Failed or empty runs are **not** charged.

### FAQ

**Do I really need a cookie?** Yes. Instagram comments are login-gated — there is no keyless route. Use a throwaway account; the actor never touches your main login.

**Can I pass several accounts?** Yes — add one `sessionid` per line in `sessionCookies`. The actor rotates accounts and residential IPs to spread load and avoid blocks.

**Posts or reels?** Both. Reels and IGTV (`/reel/`, `/tv/`) work exactly like feed posts (`/p/`).

**Will I be charged if a post is private or returns nothing?** No. You only pay for comments actually returned.

**How do I get results into Notion?** Set `notionConnector` and `notionParentId` and the actor delivers each run automatically.

***

Want posts, profiles, hashtags, or locations too? Pair this with the companion **Instagram Scraper** and **Instagram Hashtag Scraper**.

# Actor input Schema

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

Instagram post/reel URLs to scrape comments from.

## `shortcodes` (type: `array`):

Or bare post shortcodes.

## `maxComments` (type: `integer`):

Charged per comment.

## `sessionCookies` (type: `array`):

This data is login-gated — no keyless path (this is how the paid services do it). Add throwaway-account sessionid cookies; the actor rotates them. From a logged-in instagram.com: F12 → Application → Cookies → copy sessionid. One per line.

## `proxyConfiguration` (type: `object`):

Residential proxy required (preconfigured).

## `notionConnector` (type: `string`):

Optional Notion delivery.

## `notionParentId` (type: `string`):

Optional Notion data-source id.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.instagram.com/p/Bt_RWejnzWS/"
  ],
  "shortcodes": [
    "Bt_RWejnzWS"
  ],
  "maxComments": 100,
  "sessionCookies": [
    "sessionid=12345%3AAbCd...%3A12%3A..."
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Results in the default dataset.

# 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/p/Bt_RWejnzWS/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dami_studio/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/p/Bt_RWejnzWS/"] }

# Run the Actor and wait for it to finish
run = client.actor("dami_studio/instagram-comments-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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/p/Bt_RWejnzWS/"
  ]
}' |
apify call dami_studio/instagram-comments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=dami_studio/instagram-comments-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Instagram Comments Scraper - Post & Reel Comments",
        "description": "Pull every comment from any Instagram post or reel - cheapest at $0.40/1k. Returns text, likes, reply counts, author, verified badge and timestamp. Bulk URLs, export JSON/CSV/Excel or send to Notion. Failed and empty runs are never charged.",
        "version": "0.1",
        "x-build-id": "xA10ctgnqisskJ3HA"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/dami_studio~instagram-comments-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-dami_studio-instagram-comments-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/dami_studio~instagram-comments-scraper/runs": {
            "post": {
                "operationId": "runs-sync-dami_studio-instagram-comments-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/dami_studio~instagram-comments-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-dami_studio-instagram-comments-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "postUrls": {
                        "title": "Post URLs",
                        "type": "array",
                        "description": "Instagram post/reel URLs to scrape comments from.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "shortcodes": {
                        "title": "Shortcodes",
                        "type": "array",
                        "description": "Or bare post shortcodes.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxComments": {
                        "title": "Max comments",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Charged per comment.",
                        "default": 100
                    },
                    "sessionCookies": {
                        "title": "Instagram session cookies (REQUIRED)",
                        "type": "array",
                        "description": "This data is login-gated — no keyless path (this is how the paid services do it). Add throwaway-account sessionid cookies; the actor rotates them. From a logged-in instagram.com: F12 → Application → Cookies → copy sessionid. One per line.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "proxyConfiguration": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "Residential proxy required (preconfigured).",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    },
                    "notionConnector": {
                        "title": "Notion connector ID (optional)",
                        "type": "string",
                        "description": "Optional Notion delivery."
                    },
                    "notionParentId": {
                        "title": "Notion data-source ID (optional)",
                        "type": "string",
                        "description": "Optional Notion data-source id."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
