# Reddit Comments

Extract every comment from a Reddit post — the full threaded discussion flattened to one row per comment, at any reply depth.

**Pricing:** $2.9 / 1k results

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

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `inputs` | array | Yes | One Reddit post URL per line (e.g. https://www.reddit.com/r/technology/comments/1ub7r1y/...). |
| `maxResults` | integer | No | Maximum comments per post. Use 0 for all. |
| `includeComments` | boolean | No | Fetch the comment tree for each post. On by default for this agent. |

## Example

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

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/reddit/comments/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "inputs": [
        "..."
    ]
}},
)
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 |
|-------|--------------|------|
| `commentUrl` | Comment URL | url |
| `commentId` | Comment ID | text |
| `comment` | Comment | text |
| `depth` | Depth | number |
| `author` | Author | text |
| `authorFlair` | Author Flair | text |
| `isOp` | Is OP | boolean |
| `score` | Score | number |
| `posted` | Posted | text |
| `edited` | Edited | text |
| `parentId` | Parent ID | text |
| `postTitle` | Post Title | text |
| `postUrl` | Post URL | url |
| `community` | Community | text |
