> ## 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 Reactions API

> Extract reactions from LinkedIn posts and comments, providing likes and appreciations

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

**Pricing:** $0.002 per reaction ($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 reactions 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 reactions to return. Use 0 for all.

**reactionTypeFilter** `string[]`

Filter to specific reaction types. Leave empty for all.

Allowed values: `LIKE` (Like), `PRAISE` (Praise (Celebrate)), `EMPATHY` (Empathy (Support)), `APPRECIATION` (Appreciation (Love)), `INTEREST` (Interest (Insightful)), `ENTERTAINMENT` (Entertainment (Funny)).

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/linkedin/post-reactions/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "posts": "https://www.linkedin.com/posts/reidhoffman_ten-years-ago-if-youd-told-me-a-pope-would-activity-7455254577534107648-o-Gf",
    "maxResults": 10
  }
}'
```

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

r = requests.post(
    "https://api.mindcase.co/v1/data/linkedin/post-reactions/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "posts": "https://www.linkedin.com/posts/reidhoffman_ten-years-ago-if-youd-told-me-a-pope-would-activity-7455254577534107648-o-Gf",
    "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/post-reactions/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/reidhoffman_ten-years-ago-if-youd-told-me-a-pope-would-activity-7455254577534107648-o-Gf",
  "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 reaction, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `reactorName` | Reactor Name | text |
| `reactorUrl` | Reactor URL | url |
| `reactorProfileId` | Reactor Profile ID | text |
| `reactorHandle` | Reactor Handle | text |
| `reactorHeadline` | Reactor Headline | text |
| `reactorPhoto` | Reactor Photo | image |
| `reactorLocation` | Reactor Location | text |
| `reactionType` | Reaction Type | text |
| `postUrl` | Post URL | url |
| `postUrn` | Post URN | text |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "linkedin/post-reactions",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "reactorUrl": "https://www.linkedin.com/in/reid-linney-4a86494",
      "reactorLocation": "El Dorado Hills, California, United States",
      "reactorHandle": "reid-linney-4a86494",
      "reactionType": "LIKE",
      "postUrl": "https://www.linkedin.com/posts/reidhoffman_ten-years-ago-if-youd-told-me-a-pope-would-activity-7455254577534107648-o-Gf",
      "postUrn": "urn:li:ugcPost:7455201626673336320",
      "reactorHeadline": "Author (Reidr Daniels); Executive-at-Large",
      "reactorProfileId": "ACoAAADOi4ABh6q2UNfB2UqZN09QvOfB-A9pYlY",
      "reactorName": "Reid Linney",
      "reactorPhoto": "https://media.licdn.com/dms/image/v2/C4D03AQEsQs0esjwrVw/profile-displayphoto-shrink_200_200/profile-displayphoto-shrink_200_200/0/1536332684440?e=1788393600..."
    }
  ]
}
```

## Related APIs

For the posts themselves use [`linkedin/posts`](https://docs.mindcase.co/apis/linkedin/posts); for comment text use [`linkedin/post-comments`](https://docs.mindcase.co/apis/linkedin/post-comments).


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