# Collect Instagram comments for AI sentiment analysis

**Use case:** 

Download the comments of a post or reel — text, author, likes and time — ready to paste into ChatGPT or Claude, or to send to them straight through the Apify MCP server. Ask what people love, complain about or want next. The example gets 200 comments of one reel. No login.

## Input

```json
{
  "urls": [
    "https://www.instagram.com/reel/DezCqjpDeri/"
  ],
  "maxCommentsPerPost": 200,
  "includeReplies": true,
  "officialFieldNames": false,
  "addSummaryRow": false,
  "includeRaw": false
}
```

## Output

```json
{
  "postShortCode": {
    "label": "Post"
  },
  "ownerUsername": {
    "label": "Author"
  },
  "text": {
    "label": "Text"
  },
  "likes": {
    "label": "Likes",
    "format": "number"
  },
  "createdAt": {
    "label": "Time",
    "format": "date"
  },
  "isReply": {
    "label": "Reply",
    "format": "boolean"
  },
  "input": {
    "label": "Input"
  },
  "error": {
    "label": "Not returned"
  },
  "message": {
    "label": "Why"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Instagram Comments Scraper Actor is ready to run with the inputs already set for "Collect Instagram comments for AI sentiment analysis". [Sign up or log in](https://console.apify.com/create-task-from-example/yAByIftrmfDYDZW6W) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Collect Instagram comments for AI sentiment analysis" task

The Instagram Comments Scraper Actor will start running based on the input automatically. You can also change all the input fields, like post or reel urls, max comments per post, and more, to match your specific use case.

### 3. Receive the "Collect Instagram comments for AI sentiment analysis" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as post, author, text, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Collect Instagram comments for AI sentiment analysis" task via API](https://apify.com/instagram-data-api/instagram-comments-scraper.md).

## FAQ

### How do I analyze the comments with AI?

Download the run as CSV or JSON and give it to ChatGPT or Claude, or connect the Apify MCP server so the assistant runs this task and reads the comments itself.

### How much does it cost?

$0.29 per 1,000 comments on the Starter plan, plus $0.0005 per run. This example (200 comments) costs about $0.06.

## About this Actor

This example demonstrates how to use [Instagram Comments Scraper](https://apify.com/instagram-data-api/instagram-comments-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/instagram-data-api/instagram-comments-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/instagram-data-api/instagram-comments-scraper.md

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`).
