# Export Instagram comments to CSV or Excel

**Use case:** 

Download the comments of any public post or reel — author, text, likes and time — then export CSV, Excel or JSON. Paste one link or many. The example exports up to 300 comments from a National Geographic reel. No login needed.

## Input

```json
{
  "urls": [
    "https://www.instagram.com/reel/DehZj9wggt0/"
  ],
  "maxCommentsPerPost": 300,
  "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 "Export Instagram comments to CSV or Excel". [Sign up or log in](https://console.apify.com/create-task-from-example/Keeh5e5aAxlGqsmev) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Export Instagram comments to CSV or Excel" 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 "Export Instagram comments to CSV or Excel" 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 "Export Instagram comments to CSV or Excel" task via API](https://apify.com/instagram-data-api/instagram-comments-scraper.md).

## FAQ

### Which formats can I download?

CSV, Excel, JSON, XML or HTML from the run's Storage tab, or through the Apify API.

### How much does it cost?

$0.29 per 1,000 comments on the Starter plan and from $0.19 on Business, plus $0.0005 per run. This example (300 comments) costs about $0.09.

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