# LinkedIn Profile Comments

Extract LinkedIn profile comments and their social activities like likes and reactions, requiring no input

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

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

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `profiles` | array | Yes | LinkedIn profile URLs to scrape comments from. One per line. |
| `maxResults` | integer | No | Comments per profile. Use 0 for all. |
| `postedLimit` | string | No | Only comments within this time window. |

## Example

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

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/linkedin/profile-comments/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "profiles": [
        "..."
    ]
}},
)
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 |
|-------|--------------|------|
| `comment` | Comment | text |
| `commentUrl` | Comment URL | url |
| `commentedAt` | Commented At | text |
| `edited` | Edited | boolean |
| `isReply` | Is Reply | text |
| `mentions` | Mentions | object_array |
| `commentReactions` | Comment Reactions | object_array |
| `commentReplies` | Comment Replies | number |
| `commenterName` | Commenter Name | text |
| `commenterUrl` | Commenter URL | url |
| `commenterPhoto` | Commenter Photo | image |
| `commenterHeadline` | Commenter Headline | text |
| `onOwnPost` | On Own Post | boolean |
| `postUrl` | Post URL | url |
| `postText` | Post Text | text |
| `postAuthor` | Post Author | text |
| `postAuthorUrl` | Post Author URL | url |
| `postAuthorType` | Post Author Type | text |
| `postAuthorHeadline` | Post Author Headline | text |
| `postDate` | Post Date | text |
| `postMediaUrl` | Post Media URL | url |
| `postMediaType` | Post Media Type | text |
| `postReactions` | Post Reactions | number |
| `postComments` | Post Comments | number |
| `postShares` | Post Shares | number |
