# Scrape Instagram Comment Threads

**Use case:** 

Scrape full Instagram comment threads including nested replies, with author, text, likes, and timestamps. Requires your cookies.

## Input

```json
{
  "instagramUrl": "https://www.instagram.com/p/C01uDmFRcRy/",
  "cookies": "<YOUR_SECRET>",
  "maxDepth": 2,
  "sortBy": "top",
  "includeReplies": true
}
```

## Output

```json
{
  "pk": {
    "label": "Comment ID",
    "format": "text"
  },
  "user.is_verified": {
    "label": "Verified Account",
    "format": "boolean"
  },
  "user.id": {
    "label": "User ID",
    "format": "text"
  },
  "user.pk": {
    "label": "User PK",
    "format": "text"
  },
  "user.is_unpublished": {
    "label": "Unpublished Account",
    "format": "boolean"
  },
  "user.profile_pic_url": {
    "label": "Profile Picture URL",
    "format": "image"
  },
  "user.username": {
    "label": "Username",
    "format": "text"
  },
  "user.fbid_v2": {
    "label": "Facebook ID v2",
    "format": "text"
  },
  "is_covered": {
    "label": "Is Covered",
    "format": "boolean"
  },
  "child_comment_count": {
    "label": "Child Comment Count",
    "format": "number"
  },
  "restricted_status": {
    "label": "Restriction Status",
    "format": "text"
  },
  "has_translation": {
    "label": "Has Translation",
    "format": "boolean"
  },
  "has_liked_comment": {
    "label": "Has Liked Comment",
    "format": "boolean"
  },
  "text": {
    "label": "Comment Content",
    "format": "text"
  },
  "giphy_media_info": {
    "label": "GIF Information",
    "format": "json"
  },
  "created_at": {
    "label": "Creation Date",
    "format": "date"
  },
  "parent_comment_id": {
    "label": "Parent Comment ID",
    "format": "text"
  },
  "comment_like_count": {
    "label": "Like Count",
    "format": "number"
  },
  "post_url": {
    "label": "Post URL",
    "format": "link"
  },
  "comment_url": {
    "label": "Comment URL",
    "format": "link"
  }
}
```

## About this Actor

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