# 🏯 Instagram Comments Scraper (Pay Per Result) (`apidojo/instagram-comments-scraper`) Actor

The Instagram Comments Scraper is the perfect tool for extracting comments from Instagram posts quickly and affordably. Priced at just $0.50 per 1,000 comments, it offers impressive speeds, processing 100 to 200 comments per second!

- **URL**: https://apify.com/apidojo/instagram-comments-scraper.md
- **Developed by:** [API Dojo](https://apify.com/apidojo) (community)
- **Categories:** Social media, Lead generation, AI
- **Stats:** 1,730 total users, 97 monthly users, 100.0% runs succeeded, 66 bookmarks
- **User rating**: 4.42 out of 5 stars

## Pricing

$0.50 / 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/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

[comment]: <> "internal-ad-start"

<p><strong>Check out our newest actor:</strong></p>

<table>
  <tr>
    <td style="width: 100px;">
      <img src="https://images.apifyusercontent.com/pDgHQrmAKP4yQ6-q3IoWMMmvtkhRHuhz9k1NMrBkwBE/rs:fill:128:128/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vWGdpZmtoNDhqaTVBNTVCcFotYWN0b3ItWlNCdUdjQU9jVFpqSFVWeXYteFE2N0pGUkljSy1pbnN0YWdyYW0tbG9nby5qcGVn.jpeg" alt="Instagram Hashtag Scraper" style="width: 100px;">
    </td>
    <td style="padding-left: 16px;">
      <a href="https://apify.com/apidojo/instagram-hashtag-scraper?fpr=yhdrb&fp_sid=top_ihs" target="_blank" style="text-decoration: none; color: inherit;">
        <strong>Instagram Hashtag Scraper</strong>
      </a>
      <br />
      <a href="https://apify.com/apidojo/instagram-hashtag-scraper?fpr=yhdrb&fp_sid=top_ihs" target="_blank" style="text-decoration: none; color: inherit;">
        Best posts & reels hashtag scraper! <strong>$0.016 / hashtag</strong> gets you <strong>60 items FREE</strong>, then <strong>$0.0004 / additional item</strong>. No authentication, no proxy needed. Perfect for content research and social media intelligence! Fast, reliable results in clean CSV format.
      </a>
    </td>
  </tr>
</table>

<p><em style="font-size: 13px; color: gray;">Built by us - the API Dojo team. Same quality, same support level. Scroll down to continue reading the documentation</em></p>

[comment]: <> "internal-ad-end"

![](https://www.dropbox.com/scl/fi/xoqibbjm2oafv971u4nt4/instagram-comments-scraper.jpg?rlkey=5xvcjqreg86e3nezoftryld58\&st=pugygegk\&dl=1)

## Instagram Comments Scraper: The radar on social media 📡

Introducing the Instagram Comments Scraper, your go-to tool for extracting comments from Instagram posts efficiently. This high-performance scraper excels at rapidly collecting comment data from any Instagram post, making it perfect for data analysts and businesses seeking comment insights. With blazing-fast performance of **100-200 comments per second** and cost-effective pricing at just **$0.50 per 1000 posts**, this tool delivers exceptional value for comprehensive comment analysis.

### ℹ️ Disclaimer

We are professionals specializing in data extraction. This actor is exceptionally fine-tuned for scraping [Instagram](https://instagram.com), providing you with a comprehensive suite of tools. Moreover, we provide top-tier maintenance and exceptional support. Pure data - at your fingertips. You name it, we get it.

#### Important Note About Usage

This scraper is designed to collect comment data from Instagram posts. Please respect the following rules:

- Each query or post must fetch **at least 10 comments**. Fetching fewer creates unnecessary overhead and may be blocked.
- Scraping posts with very few or no comments can trigger our **rate-limiter** and may result in your runs being stopped.
- These limits ensure stable performance and fair use for everyone.
- **Free users**: Limited to **5 runs per month**, each capped at **10 items**

### 🐉 Features and Functionality

- No Authentication, no cookies. Just pure data. 🛡️
- Almost free. **$0.50 per 1K results.** 💰
- No extra costs, no proxy needed. 🐉
- Simple Output, super fast. 💨
- Plug and play for AI tools like Flowise, Langchain, etc. 🧠

### 🆓 Demo Mode & Free Users

Users on the Free Plan can use the actor only in Demo Mode. **Free users can run the actor up to 5 times per month**, with each run capped at a maximum of 10 items — just enough to test it out. To use this actor without limitations, subscribe to a paid plan on Apify. [Subscribe here](https://apify.com/pricing?fpr=yhdrb).

### 👹 Competitors

Oooh yes, we love this part! 🔥 We're not here to brag, but give our tool a shot and see the magic happen! Just keep in mind that while we tested everything fairly (same inputs and resources), the actual speeds and costs might bounce around a bit in real-world use.

| Feature | 🏯 Instagram Comments Scraper | Apify Instagram Comments | Easy Instagram Comments
| ----- | ---- | ----------- | -------------|
| Is it Working | ✔️ | ✔️ | ✔️ |
| Comment information range | Unlimited | Unlimited | N/A |
| Price Per 100k Results (Post URL)  | $50 | $230 | Pay for Usage	 |
| Price Per 100k Results (Post ID)  | $50 | $230 | Pay for Usage |
| Comments Per Second (Post URL) | 100-200 | 48 | 99 |
| Comments Per Second (Post ID) | 100-200 | 51 | 112 |
| Pricing Plan  | $0.50 per 1k results | $2.30 per 1k results | Pay for Usage |
| Maximum Comments Total Limit  | ✔️ | ✔️ | ❌ |
| Scrape From Post URLs  | ✔️ | ✔️ | ✔️ |
| Scrape From Post IDs | ✔️ | ✔️ | ❌ |
| No Proxy Required | ✔️ | ✔️ | ❌ |

### 🎎 Who needs this?

The Instagram Comments Scraper is engineered to deliver outstanding efficiency.

- **Social Media Managers & Content Creators:** Track engagement patterns, identify trending topics, and understand audience sentiment across posts. This data helps in content planning, response management, and building stronger community engagement strategies. Perfect for optimizing posting schedules and content themes based on historical comment patterns.

- **Market Research Analysts:** Gather real-time consumer insights, track brand sentiment, and conduct competitor analysis through comment data. This enables detailed market segmentation, trend forecasting, and consumer behavior analysis, providing valuable inputs for strategic business decisions.

- **Marketing and Advertising Professionals:** Marketers and advertisers can use comments data to analyze trends, hashtags, and product reception. This helps in campaign optimization, influencer identification, and measuring brand sentiment across different demographics and regions.

- **Data Scientists & AI Researchers:** Access structured comment data for training sentiment analysis models, developing natural language processing algorithms, and creating predictive analytics tools. Perfect for building machine learning models that can automatically categorize comments, detect trends, or identify potential viral content.

- **Brand Protection & Reputation Managers:** Monitor brand mentions, track customer complaints, and identify potential PR issues before they escalate. Essential for maintaining brand integrity, managing crisis communications, and ensuring timely responses to customer concerns.

- **OSINT & Security Professionals:** Analyze comment patterns for security assessments, threat detection, and digital investigation purposes. Valuable for monitoring social movements, identifying coordinated activities, and gathering intelligence from public discourse.

- **Academic Researchers:** Study social behavior patterns, conduct linguistic analysis, and research digital communication trends. Useful for sociology, psychology, and communication studies focusing on social media impact and online interaction patterns.

- **E-commerce & Product Managers:** Track product feedback, identify customer pain points, and gather feature requests through comment analysis. Essential for product development, customer experience improvement, and competitive analysis.

### 🍜 Output Example

```
{
	"postId": "DOWP-SKcbxW",
	"type": "comment",
	"id": "18082843581850016",
	"userId": "35344407915",
	"message": "see you this weekend! ❤️‍🔥",
	"createdAt": "2025-09-09T06:28:25.000Z",
	"likeCount": 12,
	"replyCount": 0,
	"user": {
		"id": "36344407913",
		"username": "janedoe",
		"fullName": "Jane Doe",
		"isVerified": true,
		"isPrivate": false,
		"profilePicUrl": "https://scontent-vie1-1.cdninstagram.com/v/t51.2885-19/312703494_132238196273312_7753306379674188963_n.jpg?stp=dst-jpg_e0_s150x150_tt6&_nc_cat=100&ig_cache_key=GAl6oxKg8LYaRXgAAKP8P9MSR5lrbkLAAAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgLkMzIn0%3D&_nc_ohc=3sESud8CEDIQ7kNvwENEul-&_nc_oc=AdnP9xVZkwOCNwuURqeQVlfhQh-ZCyycrfaTuzp6g2fFNWYR0MNBAz-oOg0sElgeIj0&_nc_ad=z-m&_nc_cid=0&_nc_zt=24&_nc_ht=scontent-vie1-1.cdninstagram.com&oh=00_AfbKeAiUzRd-K2Ofcs7ttOzARVPSEhG9KTHHaWq8KfafJQ&oe=68E01C"
	},
	"isRanked": true
}
```

### 🍚 Input Parameters

| Field | Type | Description | Default value
| ----- | ---- | ----------- | -------------|
startUrls | array | [Instagram](https://instagram.com) URLs. Paste the URLs and get the results immediately. Only Post URLs are supported. | `[]` |
postIds | array | [Instagram](https://instagram.com) Post IDs. You can find the IDs from the posts. ID for `https://www.instagram.com/p/DC7Q4z5JPMX/` would be `DC7Q4z5JPMX`. | `[]` |
maxItems | number | Maximum number of items that you want to receive as output | `Infinity` |
customMapFunction | String | Function that takes each of the objects as argument and returns data that will be mapped by the function itself. This function is not intended for filtering, please don't use it for filtering purposes or you will get banned automatically. | `null` |

### 🔧 Troubleshooting

- **Getting Few Results?** Check "Maximum number of items on output" (`maxItems`) field, and "Maximum charged results" fields. These two fields enable you to handle the total number of results. Leaving both empty will result infinite results.
- **Are Some Outputs Missing?** Ensure that you review all fields, not just the overview. You can navigate to the "Storage" tab and select either "Download the results" or "Open in a New Tab."
- **Getting No Results?** Confirm that your parameters are not overly restrictive.
- **Not Receiving New Items After a Large Batch?** Examine the log for messages like "Logging is too fast, some lines were skipped." If you encounter this issue, consider scraping smaller amounts of data to avoid it.

### 📞 Contact and Feature Requests

If you need any sort of support, please send an email to <apidojo10@gmail.com>. You name it, we get it.

### 🈴 Other Actors you might want to check

- [Twitter Scraper Lite](https://apify.com/apidojo/twitter-scraper-lite?fpr=yhdrb)
- [Instagram Scraper](https://apify.com/apidojo/instagram-scraper?fpr=yhdrb)
- [Tweet Scraper](https://apify.com/apidojo/tweet-scraper?fpr=yhdrb)
- [TikTok User Scraper](https://apify.com/apidojo/tiktok-user-scraper?fpr=yhdrb)

# Actor input Schema

## `startUrls` (type: `array`):

Instagram post URLs. Paste the URLs, and get the results immediately. Only post URLs are supported.

## `postIds` (type: `array`):

Instagram Post IDs that you want to get from Instagram. You can get the post IDs from the URL of the post.

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

Maximum number of items that you want as output.

## `customMapFunction` (type: `string`):

Function that takes each of the objects as argument and returns data that will be mapped by the function itself. This function is not intended for filtering, please don't use it for filtering purposes or you will get banned automatically.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.instagram.com/p/DC7Q4z5JPMX/"
  ],
  "postIds": [
    "DCKDRSpiy3b"
  ],
  "maxItems": 1000,
  "customMapFunction": "(object) => { return {...object} }"
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {
    "startUrls": [
        "https://www.instagram.com/p/DC7Q4z5JPMX/"
    ],
    "postIds": [
        "DCKDRSpiy3b"
    ],
    "maxItems": 1000,
    "customMapFunction": (object) => { return {...object} }
};

// Run the Actor and wait for it to finish
const run = await client.actor("apidojo/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 = {
    "startUrls": ["https://www.instagram.com/p/DC7Q4z5JPMX/"],
    "postIds": ["DCKDRSpiy3b"],
    "maxItems": 1000,
    "customMapFunction": "(object) => { return {...object} }",
}

# Run the Actor and wait for it to finish
run = client.actor("apidojo/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 '{
  "startUrls": [
    "https://www.instagram.com/p/DC7Q4z5JPMX/"
  ],
  "postIds": [
    "DCKDRSpiy3b"
  ],
  "maxItems": 1000,
  "customMapFunction": "(object) => { return {...object} }"
}' |
apify call apidojo/instagram-comments-scraper --silent --output-dataset

```

## MCP server setup

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