# Instagram Comments

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

**Pricing:** $1.6 / 1k comments

**Endpoint:** `POST /api/v1/agents/instagram/comments/run`

**Auth:** `Authorization: Bearer mk_live_...`

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `urls` | array | Yes | Instagram post or reel URLs to get comments from, one per line. E.g. https://www.instagram.com/p/ABC123/ or https://www.instagram.com/reel/XYZ789/. |
| `maxResults` | integer | No | Top-level comments per post (replies inside threads are not returned; the Comment Replies column counts them). |

## Example

```bash
curl -X POST https://api.mindcase.co/api/v1/agents/instagram/comments/run \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{"urls":["..."]}}'
```

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/instagram/comments/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "urls": [
        "..."
    ]
}},
)
data = resp.json()
```

## Get the results

`run` is async and returns a `job_id`. Poll until `status` is `completed`, then read the rows:

```bash
# 1) check status
curl https://api.mindcase.co/api/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/api/v1/jobs/JOB_ID/results \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"
```

Full API reference (auth, jobs, balance, endpoints): https://mindcase.co/skills.md

## Response columns

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