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

# LinkedIn Post Comments

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

`$1.7 / 1k comments`

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

## Endpoint

`POST /api/v1/agents/linkedin/post-comments/run`

## Parameters

<ParamField body="posts" type="array" required>
  **List** · LinkedIn post URLs to scrape comments from. One per line.
</ParamField>

<ParamField body="maxResults" type="integer" default={100}>
  **Number** · Comments per post. Use 0 for all.
</ParamField>

<ParamField body="postedLimit" type="string">
  **Dropdown** · Only comments within this time window.

  **Options:** `any`, `1h`, `24h`, `week`, `month`

  *Legend: `any` = Any time, `1h` = Past hour, `24h` = Past 24 hours, `week` = Past week, `month` = Past month*
</ParamField>

<ParamField body="includeReplies" type="boolean">
  **Toggle** · Also fetch replies to each top-level comment.
</ParamField>

## Response columns

| Field           | Display name    | Type    |
| --------------- | --------------- | ------- |
| `sourcePostUrl` | Source Post URL | url     |
| `commentUrl`    | Comment URL     | url     |
| `commentText`   | Comment Text    | text    |
| `author`        | Author          | text    |
| `authorTitle`   | Author Title    | text    |
| `authorUrl`     | Author URL      | url     |
| `authorType`    | Author Type     | text    |
| `isPostAuthor`  | Is Post Author  | boolean |
| `posted`        | Posted          | text    |
| `likes`         | Likes           | number  |
| `replies`       | Replies         | number  |
| `reactions`     | Reactions       | number  |
| `shares`        | Shares          | number  |
| `edited`        | Edited          | boolean |
| `pinned`        | Pinned          | boolean |
| `contributed`   | Contributed     | boolean |
| `authorAvatar`  | Author Avatar   | url     |

## Example

<CodeGroup>
  ```bash curl theme={null}
  curl -X POST https://api.mindcase.co/api/v1/agents/linkedin/post-comments/run \
    -H "Authorization: Bearer mk_live_abc123def456" \
    -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 requests

  resp = requests.post(
      "https://api.mindcase.co/api/v1/agents/linkedin/post-comments/run",
      headers={"Authorization": "Bearer mk_live_abc123def456"},
      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
  }},
  )
  data = resp.json()
  ```
</CodeGroup>

### Example response

```json Response theme={null}
{
  "job_id": "job_7f3a2b1c",
  "status": "completed",
  "data": [
    {
      "sourcePostUrl": "https://www.linkedin.com/posts/satyanadella_to-mark-the-broad-rollout-of-agent-mode-in-activity-7452924970042826753-r6bz",
      "commentUrl": "https://www.linkedin.com/feed/update/urn:li:ugcPost:7452924815130165248?commentUrn=urn%3Ali%3Acomment%3A%28ugcPost%3A7452924815130165248%2C7456715305940127744%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287456715305940127744%2Curn%3Ali%3AugcPost%3A7452924815130165248%29",
      "commentText": "Agent mode in excel is amazing. Thank you \ud83d\ude4f",
      "author": "Geethy Panicker",
      "authorTitle": "SVP, Head of Risk Appetite & Risk Strategy, Risk Governance, Enterprise Risk | Operational Risk| COO| Futurist |Intnl\u2019 Speaker | Digital Risk| AI transformation | Climate risk | MBA| MIT | Oxford| LBS | Cornell| SCR GARP",
      "authorUrl": "https://www.linkedin.com/in/geethy-panicker",
      "authorType": "profile",
      "isPostAuthor": false,
      "posted": "2026-05-03T14:44:28.007Z",
      "likes": 0,
      "replies": 0,
      "reactions": null,
      "shares": 0,
      "edited": false,
      "pinned": false,
      "contributed": false,
      "authorAvatar": null
    }
  ]
}
```
