# Reddit User Activity

Extract a Reddit user's activity feed — their posts and comments in one table, newest first.

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

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

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `inputs` | array | Yes | One per line. Reddit profile URLs (https://www.reddit.com/user/spez) or bare usernames (e.g. 'spez', 'u/spez'). |
| `maxResults` | integer | No | Maximum items (posts + comments) per user. Use 0 for all. |

## Example

```bash
curl -X POST https://api.mindcase.co/api/v1/agents/reddit/users/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/users/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 |
|-------|--------------|------|
| `type` | Type | text |
| `redditUrl` | Reddit URL | url |
| `title` | Title | text |
| `text` | Text | text |
| `author` | Author | text |
| `community` | Community | text |
| `score` | Score | number |
| `posted` | Posted | text |
