> ## 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 Profile Comments API

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

`POST /v1/data/linkedin/profile-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`.

**profiles** `string` *required*

LinkedIn profile URL to scrape comments from.

Format e.g. `https://www.linkedin.com/in/satyanadella`.

**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).

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/linkedin/profile-comments/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "profiles": "https://www.linkedin.com/in/satyanadella",
    "maxResults": 10
  }
}'
```

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

r = requests.post(
    "https://api.mindcase.co/v1/data/linkedin/profile-comments/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "profiles": "https://www.linkedin.com/in/satyanadella",
    "maxResults": 10
}},
)
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/profile-comments/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "profiles": "https://www.linkedin.com/in/satyanadella",
  "maxResults": 10
} }),
});
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 |
| - | - | - |
| `comment` | Comment | text |
| `commentUrl` | Comment URL | url |
| `commentId` | Comment ID | text |
| `commentedAt` | Commented At | text |
| `edited` | Edited | boolean |
| `isReply` | Is Reply | text |
| `mentions` | Mentions | object\_array |
| `commentReactions` | Comment Reactions | object\_array |
| `commentReplies` | Comment Replies | number |
| `commenterUrl` | Commenter URL | url |
| `onOwnPost` | On Own Post | boolean |
| `postUrl` | Post URL | url |
| `postId` | Post ID | text |
| `postText` | Post Text | text |
| `postAuthor` | Post Author | text |
| `postAuthorUrl` | Post Author URL | url |
| `postAuthorProfileId` | Post Author Profile ID | text |
| `postAuthorHandle` | Post Author Handle | text |
| `postAuthorType` | Post Author Type | text |
| `postAuthorHeadline` | Post Author Headline | text |
| `postAuthorAvatar` | Post Author Avatar | image |
| `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 |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "linkedin/profile-comments",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "commenterUrl": "https://www.linkedin.com/in/satyanadella",
      "postAuthorHandle": "michaelabbott",
      "commentedAt": "2026-07-09T18:45:43.939Z",
      "comment": "Thanks for having me, michael. Great to chat with your students about the industry and career growth!",
      "postComments": 27,
      "postAuthorUrl": "https://www.linkedin.com/in/michaelabbott",
      "commentId": "7481056009390575619",
      "commentReplies": 1,
      "postAuthor": "michael abbott",
      "postReactions": 558,
      "postAuthorAvatar": "https://media.licdn.com/dms/image/v2/D5603AQFEn9lyMIxU_g/profile-displayphoto-crop_800_800/B56Z8f5kWEIUAI-/0/1782946615488?e=1788393600&v=beta&t=Oo3gDbVmD1gE...",
      "postText": "one of the privileges of teaching cs153 (Frontier Systems) at Stanford Online is getting to bring people into the room who have actually built the future.\n\ns...",
      "postAuthorProfileId": "ACoAAAAASCQB-MBBdNKe5_AxzChZElEyIq4-z1c",
      "edited": false,
      "commentUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7477760679408599040?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7477760679408599040%2C7481056009390575...",
      "postUrl": "https://www.linkedin.com/posts/michaelabbott_one-of-the-privileges-of-teaching-cs153-activity-7477760679408599040-MXGW",
      "postMediaUrl": null,
      "postShares": 5,
      "postAuthorHeadline": "curious",
      "postMediaType": null,
      "onOwnPost": false,
      "mentions": [
        {
          "name": "michael abbott",
          "handle": "michaelabbott",
          "url": "https://www.linkedin.com/in/michaelabbott",
          "type": "PROFILE_MENTION",
          "id": "ACoAAAAASCQB-MBBdNKe5_AxzChZElEyIq4-z1c"
        }
      ],
      "isReply": false,
      "postId": "7481056020991983616",
      "postAuthorType": "profile"
    }
  ]
}
```

## Related APIs

For comments under one post use [`linkedin/post-comments`](https://docs.mindcase.co/apis/linkedin/post-comments); for what the member reacted to use [`linkedin/profile-reactions`](https://docs.mindcase.co/apis/linkedin/profile-reactions).


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