> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Instagram Comments API

> Extract top Instagram comments (text, timestamps, likes, commenter details, and thread sizes) from post or reel URLs

`POST /v1/data/instagram/comments/run`

**Pricing:** $0.0005 per comment ($0.5 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**urls** `string` *required*

Instagram post or reel URL to get comments from. E.g. [https://www.instagram.com/p/ABC123/](https://www.instagram.com/p/ABC123/) or [https://www.instagram.com/reel/XYZ789/](https://www.instagram.com/reel/XYZ789/).

Format e.g. `https://www.instagram.com/p/dzcgyubjrsb/`.

**maxResults** `integer`

Total number of top-level comments to return. Replies inside threads are not returned; the Comment Replies column counts them. Use 0 for all. Capped at 10,000 per post.

Max `10000`.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/instagram/comments/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "urls": "https://www.instagram.com/p/DZcGyUBjrSb/",
    "maxResults": 100
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/instagram/comments/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "urls": "https://www.instagram.com/p/DZcGyUBjrSb/",
    "maxResults": 100
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/instagram/comments/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "urls": "https://www.instagram.com/p/DZcGyUBjrSb/",
  "maxResults": 100
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one comment, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `postUrl` | Post URL | url |
| `comment` | Comment | text |
| `commentUrl` | Comment URL | url |
| `commentedAt` | Commented At | text |
| `likes` | Likes | number |
| `commentReplies` | Comment Replies | number |
| `commenterId` | Commenter ID | text |
| `commenterUsername` | Commenter Username | text |
| `commenterName` | Commenter Name | text |
| `commenterUrl` | Commenter URL | url |
| `commenterVerified` | Commenter Verified | boolean |
| `commenterPrivate` | Commenter Private | boolean |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "instagram/comments",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "commenterId": "36667314020",
      "commenterUrl": "https://www.instagram.com/play.100200/",
      "commentedAt": "2026-06-11T10:31:39Z",
      "comment": "Respect yamal 👏👏👏",
      "commenterPrivate": true,
      "commentReplies": 0,
      "commenterUsername": "play.100200",
      "postUrl": "https://www.instagram.com/p/DZcGyUBjrSb/",
      "commentUrl": "https://www.instagram.com/p/DZcGyUBjrSb/c/17947263159197050/",
      "commenterVerified": false,
      "likes": 17,
      "commenterName": null
    }
  ]
}
```

## Related APIs

For who liked the post use [`instagram/likers`](https://docs.mindcase.co/apis/instagram/likers); for the post itself use [`instagram/posts`](https://docs.mindcase.co/apis/instagram/posts).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.