# Instagram Comments Scraper API — No Login, $0.50/1K (`funny_ground/instagram-comments-scraper-fast`) Actor

Export public Instagram Reel and video-post comments with author, likes, timestamp, and thread fields. No login or residential proxy. Reply extraction is best-effort when Instagram exposes threads anonymously. $0.50 per 1,000 results.

- **URL**: https://apify.com/funny\_ground/instagram-comments-scraper-fast.md
- **Developed by:** [Coor Yu](https://apify.com/funny_ground) (community)
- **Categories:** Social media, AI
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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 — $0.50 per 1K

Export public Instagram Reel and video-post comments as structured rows. The Actor is HTTP-only: it does not launch a browser or require an Instagram login. When proxy rotation is enabled, it is explicitly restricted to Apify's DEFAULT non-residential data-center pool.

### What you get

- One dataset row per top-level comment or reply.
- Text, timestamp, likes, reply count, author ID/username/name/avatar, and verified status.
- Reel, regular post, and legacy IGTV URL support.
- ID-based de-duplication and exact top-level per-post limits when Instagram exposes enough public rows.
- Public-page hydration first, anonymous Relay cursor pagination, and bounded non-residential session rotation.

### Pricing

- Result fee: `$0.0005` per dataset row — `$0.50 per 1,000 comments or replies`.
- A small Actor start event and normal Apify platform/proxy usage may also apply; see the Pricing tab.
- Rows that are not written to the dataset are not charged as results.

### Example input

```json
{
  "postUrls": ["https://www.instagram.com/reel/DYSAVzbNlby/"],
  "commentsPerPost": 100,
  "includeReplies": false,
  "repliesPerComment": 20,
  "sortOrder": "popular",
  "proxy": { "useApifyProxy": true },
  "maxConcurrency": 4
}
```

`commentsPerPost=0` and `repliesPerComment=0` mean all rows Instagram exposes to the anonymous session. Replies are best effort because Instagram often restricts its public child-comment endpoint. Private, deleted, age/region-restricted, filtered, or login-only comments cannot be returned.

### No-residential guarantee

- No Playwright/Puppeteer/browser image is installed.
- Residential proxy groups and custom proxy URLs are ignored by the Actor.
- Proxy-enabled runs use only Apify's DEFAULT non-residential data-center pool.
- Disabling proxy uses direct Apify cloud egress, also non-residential, but may reduce reliability.

### Reliability and cost controls

- Cookies and CSRF tokens stay within one short-lived data-center session.
- Short pages, login walls, and soft blocks rotate to a fresh non-residential session and merge unique rows toward the requested limit.
- Opaque cursors are followed sequentially; multiple posts run concurrently.
- HTTP retries, timeouts, page caps, and duplicate-page detection prevent runaway spend.
- A complete run that produces zero valid rows fails instead of reporting a misleading success.

Scrape only public data and comply with applicable laws and platform terms. Avoid collecting or processing personal data without a lawful purpose.

# Actor input Schema

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

Public instagram.com/reel, /p, or /tv URLs.

## `commentsPerPost` (type: `integer`):

Maximum top-level comments per Reel/post. 0 = all available comments.

## `includeReplies` (type: `boolean`):

Best effort: request child-comment threads when Instagram exposes its public reply endpoint. Top-level comments are still returned if replies require login.

## `repliesPerComment` (type: `integer`):

Maximum replies per selected top-level comment. 0 = all available replies.

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

Use Instagram's popular/ranked or recent ordering when the endpoint supports it.

## `proxy` (type: `object`):

Recommended for Instagram. Only Apify's DEFAULT non-residential data-center pool is used. Residential groups and custom proxy URLs are ignored.

## `maxConcurrency` (type: `integer`):

Global concurrency across posts and reply threads.

## `maxSessionRotations` (type: `integer`):

Fresh non-residential sessions used after a short page, login wall, or soft block; unique rows are merged toward the requested limit.

## `maxRequestRetries` (type: `integer`):

Maximum retries in one non-residential proxy session before rotating to another session.

## `requestTimeoutSecs` (type: `integer`):

Maximum time to wait for each Instagram request before retrying it.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.instagram.com/reel/DYSAVzbNlby/"
  ],
  "commentsPerPost": 100,
  "includeReplies": false,
  "repliesPerComment": 20,
  "sortOrder": "popular",
  "proxy": {
    "useApifyProxy": true
  },
  "maxConcurrency": 4,
  "maxSessionRotations": 3,
  "maxRequestRetries": 1,
  "requestTimeoutSecs": 20
}
```

# Actor output Schema

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

The default dataset containing one Instagram comment or reply per row.

# 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 = {
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("funny_ground/instagram-comments-scraper-fast").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 = { "proxy": { "useApifyProxy": True } }

# Run the Actor and wait for it to finish
run = client.actor("funny_ground/instagram-comments-scraper-fast").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 '{
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call funny_ground/instagram-comments-scraper-fast --silent --output-dataset

```

## MCP server setup

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

```

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/n7OBk9koj5l6qicOI/builds/McaNmt54jtipIym70/openapi.json
