> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# LinkedIn Post Comments API

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

`POST /v1/data/linkedin/post-comments/run`

**Pricing:** $0.002 per comment ($2.00 per 1,000). Plus a flat \$0.001 search fee per run, charged even when nothing is found.

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**posts** `string` *required*

LinkedIn post URL to scrape comments from.

Format e.g. `https://www.linkedin.com/posts/satyanadella_to-mark-the-broad-rollout-of-agent-mode-in-activity-7452924970042826753-r6bz`.

**maxResults** `integer`

Number of comments to return. Use 0 for all.

**postedLimit** `string`

Only comments within this time window.

Allowed values: `any` (Any time), `24h` (Past 24 hours), `week` (Past week), `month` (Past month).

**includeReplies** `boolean`

Also fetch replies to each top-level comment.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/linkedin/post-comments/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "posts": "https://www.linkedin.com/posts/satyanadella_to-mark-the-broad-rollout-of-agent-mode-in-activity-7452924970042826753-r6bz",
    "maxResults": 10,
    "includeReplies": false
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/linkedin/post-comments/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "posts": "https://www.linkedin.com/posts/satyanadella_to-mark-the-broad-rollout-of-agent-mode-in-activity-7452924970042826753-r6bz",
    "maxResults": 10,
    "includeReplies": False
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/linkedin/post-comments/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "posts": "https://www.linkedin.com/posts/satyanadella_to-mark-the-broad-rollout-of-agent-mode-in-activity-7452924970042826753-r6bz",
  "maxResults": 10,
  "includeReplies": false
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one comment, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `commenterName` | Commenter Name | text |
| `commenterHeadline` | Commenter Headline | text |
| `commenterUrl` | Commenter URL | url |
| `commenterProfileId` | Commenter Profile ID | text |
| `commenterHandle` | Commenter Handle | text |
| `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 |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "linkedin/post-comments",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "commenterUrl": "https://www.linkedin.com/in/mr-vaibhav-bhardwaj",
      "commentedAt": "2026-06-02T05:25:03.451Z",
      "comment": "🚀 Hi everyone!\nI'm the creator of MotionCraft, an open-source screen recorder and video editor built for creators and developers.\n🔗 MotionCraft Repository: h...",
      "commentReactions": [],
      "commentId": "7467446161952583681",
      "commenterPhoto": "https://media.licdn.com/dms/image/v2/D5603AQFRtDXt_gkEqA/profile-displayphoto-crop_800_800/B56ZzjPhiOHwAM-/0/1773339025395?e=1788393600&v=beta&t=bqAkQI5tCXxM...",
      "commenterHeadline": "ERPNext Developer | AI Automation Engineer | CRM Customization | Business Process Automation | Data Analytics | Power BI | Python | SQL",
      "commentUrl": "https://www.linkedin.com/feed/update/urn:li:ugcPost:7452924815130165248?commentUrn=urn%3Ali%3Acomment%3A%28ugcPost%3A7452924815130165248%2C746744616195258368...",
      "postUrl": "https://www.linkedin.com/posts/satyanadella_to-mark-the-broad-rollout-of-agent-mode-in-activity-7452924970042826753-r6bz",
      "commenterProfileId": "ACoAADshdRABEsLINsIF-KAcQMig_frcw03ZEFM",
      "isAuthor": false,
      "commenterType": "profile",
      "commenterName": "Vaibhav Bhardwaj",
      "commenterHandle": "mr-vaibhav-bhardwaj",
      "mentions": [],
      "commenterFollowers": 3518
    }
  ]
}
```

## Related APIs

For the posts themselves use [`linkedin/posts`](https://docs.mindcase.co/apis/linkedin/posts); for who reacted use [`linkedin/post-reactions`](https://docs.mindcase.co/apis/linkedin/post-reactions).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.