# Instagram Comments Scraper Lowcost (0.3$/1K 🤑) (`sones/instagram-comments-scraper-lowcost`) Actor

Scrape the comments of Instagram posts and reels without login: text, date, likes and commenter username, newest first. $0.30 per 1,000 comments.

- **URL**: https://apify.com/sones/instagram-comments-scraper-lowcost.md
- **Developed by:** [Samy](https://apify.com/sones) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 3 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 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?

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

## Instagram Comments Scraper Lowcost

Get the comments of Instagram posts and reels for **$0.30 per 1,000 comments**. This Instagram Comments Scraper takes post or reel URLs and returns each comment's text, date, likes and the commenter's username, newest first, as JSON, CSV or Excel. You don't need an Instagram account, cookies or the Instagram API.

### What can you do with Instagram comments?

- **Export Instagram comments to CSV or Excel** for a report or a spreadsheet.
- **Sentiment analysis and AI**: feed clean comment text to your model or an LLM.
- **Giveaways and contests**: list the entries of a giveaway post and pick a winner.
- **Brand and community monitoring**: follow customer questions and complaints under your posts or a competitor's.
- **Influencer vetting**: check whether an influencer's comments look like a real audience.
- **An Instagram comments API**: call the Actor from your code, Make, Zapier or n8n and get comments as JSON.

### What you get

One row per comment, ready to export as JSON, CSV or Excel:

- The comment's text, its ID and its own link.
- When it was posted, and how many likes it has.
- The commenter's public username, and whether they have a verified badge.
- The GIF of a GIF comment.
- Whether Instagram hides it behind a warning as possibly offensive.
- The post it is on, the entry you typed for it, and when it was scraped.

Comments come newest first, as Instagram shows them to logged-out visitors.

### How the price compares

Apify's own Instagram Comments Scraper costs $2.60 per 1,000 comments on the free plan. This Actor costs $0.30 per 1,000 comments. It reads the same comment list a logged-out visitor sees, about 22 comments per light request. In our tests, 1,200 comments from 4 posts took 30 seconds.

You pay only for the comments you get. A post that does not exist costs nothing.

### How to use it

1. Open the Actor's **Input** tab.
2. Paste your posts or reels, one per line, such as `https://www.instagram.com/p/DfSi56IFwZK/` or `https://www.instagram.com/reel/Dfp2916y8mk/`.
3. Set **Maximum comments per post**.
4. Click **Start**.
5. Open the **Output** tab when the run finishes, and export the comments in the format you need.

Repeated posts are scraped once. Lines that are not a post, such as a profile URL, are skipped and counted in the run log.

### Input

```json
{
    "directUrls": [
        "https://www.instagram.com/p/DfSi56IFwZK/",
        "https://www.instagram.com/reel/Dfp2916y8mk/"
    ],
    "resultsLimit": 50
}
```

| Field          | Type             | Description                                                                                                   |
| -------------- | ---------------- | ------------------------------------------------------------------------------------------------------------- |
| `directUrls`   | array of strings | Required. Post or reel URLs (`/p/…`, `/reel/…`, `/reels/…`, `/tv/…`, or `/username/p/…`), or bare shortcodes. |
| `resultsLimit` | integer          | Optional, `50` by default. The most comments to get from each post, newest first. From 1 to 100,000.          |

The field names are those of Apify's Instagram Comments Scraper, so your saved inputs work here too.

### Output

```json
{
    "id": "18642485728006653",
    "postUrl": "https://www.instagram.com/p/DfSi56IFwZK/",
    "commentUrl": "https://www.instagram.com/p/DfSi56IFwZK/c/18642485728006653/",
    "text": "Stunning",
    "timestamp": "2026-11-16T20:37:22.000Z",
    "likesCount": 0,
    "ownerUsername": "science_fan",
    "ownerIsVerified": false,
    "gifUrl": null,
    "isHidden": false,
    "postShortcode": "DfSi56IFwZK",
    "input": "https://www.instagram.com/p/DfSi56IFwZK/",
    "scrapedAt": "2026-11-16T22:47:51.000Z"
}
```

| Field             | Description                                                                      |
| ----------------- | -------------------------------------------------------------------------------- |
| `id`              | The comment's Instagram ID.                                                      |
| `postUrl`         | The post the comment is on.                                                      |
| `commentUrl`      | The comment's own link.                                                          |
| `text`            | The comment's text. Empty for a comment that is only a GIF.                      |
| `timestamp`       | When the comment was posted, ISO 8601 in UTC.                                    |
| `likesCount`      | How many likes the comment has.                                                  |
| `ownerUsername`   | The commenter's public username.                                                 |
| `ownerIsVerified` | Whether the commenter has a verified badge.                                      |
| `gifUrl`          | The GIF of a GIF comment, `null` otherwise. The link expires after a few days.   |
| `isHidden`        | `true` when Instagram hides the comment behind a warning, as possibly offensive. |
| `postShortcode`   | The post's shortcode, the code in its URL.                                       |
| `input`           | The line you typed for this post.                                                |
| `scrapedAt`       | When the comment was scraped, ISO 8601 in UTC.                                   |

The dataset's **Overview** tab shows the post, commenter, text, date and likes. Exports always contain every field.

Each run also saves a `RUN_SUMMARY` record in its key-value store. It lists every post you asked for with its result: `scraped`, `without_items` (a post without public comments), `not_found` (the post does not exist, was deleted, or belongs to a private account), `not_scraped` or `stopped_at_spending_limit`.

### Pricing

| What      | Price                                                                             |
| --------- | --------------------------------------------------------------------------------- |
| Comment   | $0.30 per 1,000 comments                                                          |
| Run start | $0.005 per run start (per GB of memory, at least one; runs use 512 MB by default) |

For example, 1,000 comments cost $0.305: $0.30 for the comments and $0.005 for the run start at the default 512 MB. Posts that do not exist cost nothing.

### Limits

- The Actor gets what Instagram shows a logged-out visitor: the top-level comments, newest first. Replies to comments are not shown to logged-out visitors, so they are not included.
- Instagram's comment count includes replies, so a post can show more comments than the Actor gets. On a post with 958 comments, the Actor got all 759 top-level ones.
- Commenters are given by their public username and verified badge only: no profile picture, ID or other details.
- Posts of private accounts are not visible to logged-out visitors. They are reported as not found.
- GIF links expire a few days after the run.

### FAQ

#### Do I need an Instagram account?

No. The Actor never logs in.

#### Can I get the most relevant comments instead of the newest?

No. Logged-out visitors see the newest first, and that is the order the Actor gets.

#### Am I charged for posts that do not exist?

No. They are listed in the run log and in `RUN_SUMMARY` as not found, and they are not in the dataset.

#### The run stopped with "Instagram changed how it serves comments". What now?

Instagram's answers no longer looked the way the Actor expects, so it stopped instead of exporting wrong data. The comments exported before that stay in your dataset. Try again later, and report it in the **Issues** tab if it keeps happening.

#### What if the run is interrupted?

The run saves its progress. When Apify moves or restarts it, it resumes where it stopped, and it never exports or charges a comment twice.

#### How do I export Instagram comments to Excel?

Run the Actor, open the **Output** tab and choose **Export**: CSV, Excel, JSON or XML. Every comment is one row.

#### Is there an Instagram comments API?

Instagram's official API only gives comments on your own business account's posts. This Actor works as an Instagram comments API for any public post: send the URLs with one HTTP request and get the comments back as JSON (see [Run it from the API](#run-it-from-the-api)).

#### Can I scrape the comments of a reel?

Yes. Reels and posts are read the same way: paste a `/reel/` or `/p/` link.

#### How many comments can I get from one post?

All the top-level comments Instagram shows a logged-out visitor, up to your limit: 759 of a NASA post with 958 comments (the rest were replies) in our tests.

### Also from this author

- [Instagram Profile Scraper Lowcost](https://apify.com/sones/instagram-user-scraper-lowcost): profile details, followers, bio and links, $0.20 per 1,000 profiles.
- [Instagram Reels Views Tracker Lowcost](https://apify.com/sones/instagram-reels-views-tracker-lowcost): the views, likes and comments of a profile's reels, day after day, with the change since the last run.
- [Instagram Posts Scraper Lowcost](https://apify.com/sones/instagram-posts-scraper-lowcost): every post of a profile with captions and media, $0.30 per 1,000 posts.

### Run it from the API

```bash
curl -X POST "https://api.apify.com/v2/acts/sones~instagram-comments-scraper-lowcost/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "directUrls": ["https://www.instagram.com/p/DfSi56IFwZK/"], "resultsLimit": 100 }'
```

### Is it legal?

The Actor reads only what Instagram shows anyone who is not logged in. Comments and usernames can still be personal data. Collect only what you have a legitimate reason to process, follow the rules that apply to you (such as the GDPR in the EU) and Instagram's terms, and ask a lawyer if you are unsure. Read more in [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/) on the Apify blog.

# Actor input Schema

## `directUrls` (type: `array`):

One post or reel per line: a URL such as https://www.instagram.com/p/DfSi56IFwZK/ or https://www.instagram.com/reel/Dfp2916y8mk/, or just its shortcode. Repeated posts are scraped once, and lines that are not a post are skipped.

## `resultsLimit` (type: `integer`):

The most comments to get from each post, newest first.

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

Leave on automatic. Choose 'Own proxies' and enter their URLs only if you want every request to go through proxy servers of your own.

## Actor input object example

```json
{
  "directUrls": [
    "https://www.instagram.com/p/DfSi56IFwZK/",
    "https://www.instagram.com/reel/Dfp2916y8mk/"
  ],
  "resultsLimit": 5,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (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 = {
    "directUrls": [
        "https://www.instagram.com/p/DfSi56IFwZK/",
        "https://www.instagram.com/reel/Dfp2916y8mk/"
    ],
    "resultsLimit": 5,
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("sones/instagram-comments-scraper-lowcost").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 = {
    "directUrls": [
        "https://www.instagram.com/p/DfSi56IFwZK/",
        "https://www.instagram.com/reel/Dfp2916y8mk/",
    ],
    "resultsLimit": 5,
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("sones/instagram-comments-scraper-lowcost").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 '{
  "directUrls": [
    "https://www.instagram.com/p/DfSi56IFwZK/",
    "https://www.instagram.com/reel/Dfp2916y8mk/"
  ],
  "resultsLimit": 5,
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call sones/instagram-comments-scraper-lowcost --silent --output-dataset

```

## MCP server setup

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

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/PCFCchOYT8duyco0h/builds/NlDxP6GbC79QI0u8d/openapi.json
