# Instagram comments scraper

**Use case:** 

Export the comments of any public Instagram post or reel: comment text, author, likes and date. Use it to read audience feedback, find questions, run giveaways or study how people react to a campaign.

## Input

```json
{
  "resultsType": "comments",
  "directUrls": [
    "https://www.instagram.com/p/DZxvMgyH8yR/"
  ],
  "resultsLimit": 50,
  "searchType": "hashtag",
  "searchLimit": 10,
  "skipPinnedPosts": false,
  "isNewestComments": false,
  "includeNestedComments": false,
  "addParentData": false,
  "includeTopPosts": false,
  "addProfileStatistics": false,
  "enrichPosts": true,
  "extractContacts": true,
  "addRelatedProfiles": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "maxConcurrency": 8,
  "docIds": {
    "post": "27130156389949648"
  },
  "probe": false
}
```

## Output

```json
{
  "postUrl": {
    "label": "Post",
    "format": "string"
  },
  "ownerProfilePicUrl": {
    "label": "Picture",
    "format": "string"
  },
  "ownerUsername": {
    "label": "Author",
    "format": "string"
  },
  "text": {
    "label": "Comment",
    "format": "string"
  },
  "likesCount": {
    "label": "Likes",
    "format": "integer"
  },
  "repliesCount": {
    "label": "Replies",
    "format": "integer"
  },
  "timestamp": {
    "label": "Posted",
    "format": "string"
  },
  "commentUrl": {
    "label": "Link",
    "format": "string"
  }
}
```

## How it works

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

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

### 2. Start the "Instagram comments scraper" task

The Fast Instagram Scraper Actor will start running based on the input automatically. You can also change all the input fields, like content to scrape, instagram urls, usernames or hashtags, and more, to match your specific use case.

### 3. Receive the "Instagram comments scraper" 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, picture, author, 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 "Instagram comments scraper" task via API](https://apify.com/solutionssmart/fast-instagram-scraper.md).

## FAQ

### What data does the Instagram comments scraper extract?

The Instagram comments scraper extracts comment text, author username, author profile picture, likes count, replies count, timestamp, and a direct URL of the comment.

### Do I need to log into Instagram to use this scraper?

No login is required to use the Instagram comments scraper; it works with public Instagram posts and reels.

### How can I use the output data from this scraper?

The output data can be used to analyze audience feedback, find questions, run giveaways, or study reactions to campaigns.

### What is the cost of running the Instagram comments scraper?

The cost follows Apify's usage-based pricing model, with detailed information on pricing based on results processed.

### Can I run this task automatically?

Yes, the Instagram comments scraper can be scheduled to run automatically in the Apify Console.

### What input does the scraper require to collect comments?

The scraper requires a direct URL of a public Instagram post or reel as input to collect comments.

### What is the expected output format of the scraped comments?

The output is a structured dataset containing the specified fields, which can be downloaded as a spreadsheet.

## About this Actor

This example demonstrates how to use [Fast Instagram Scraper](https://apify.com/solutionssmart/fast-instagram-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/solutionssmart/fast-instagram-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/solutionssmart/fast-instagram-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`).
