# LinkedIn Post Comments

Extract LinkedIn post comments and replies, including likes and reactions, from a list of post URLs

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

**Endpoint:** `POST /api/v1/agents/linkedin/post-comments/run`

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `posts` | array | Yes | LinkedIn post URLs to scrape comments from. One per line. |
| `maxResults` | integer | No | Comments per post. Use 0 for all. |
| `postedLimit` | string | No | Only comments within this time window. |
| `includeReplies` | boolean | No | Also fetch replies to each top-level comment. |

## Example

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

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/linkedin/post-comments/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "posts": [
        "..."
    ]
}},
)
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 |
|-------|--------------|------|
| `commenterName` | Commenter Name | text |
| `commenterHeadline` | Commenter Headline | text |
| `commenterUrl` | Commenter URL | url |
| `commenterPhoto` | Commenter Photo | image |
| `commenterType` | Commenter Type | text |
| `commenterFollowers` | Commenter Followers | number |
| `isAuthor` | Is Author | boolean |
| `comment` | Comment | text |
| `commentUrl` | Comment URL | url |
| `commentedAt` | Commented At | text |
| `commentReactions` | Comment Reactions | object_array |
| `commentId` | Comment ID | text |
| `mentions` | Mentions | object_array |
| `postUrl` | Post URL | url |
