> ## 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 Posts Group API

> Posts from LinkedIn groups with post text, author name and author URL. Pass the group URLs.

`POST /v1/data/linkedin/posts-group/run`

**Pricing:** $0.008 per post ($8.00 per 1,000).

## Request

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

**urls** `string[]` *required*

One or more urls. One request reads them all.

**maxResults** `integer` (default: 100)

How many posts to return in total. Defaults to 100; use 0 for all.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/linkedin/posts-group/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "urls": [
      "https://www.linkedin.com/groups/12871280/"
    ],
    "maxResults": 10
  }
}'
```

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

r = requests.post(
    "https://api.mindcase.co/v1/data/linkedin/posts-group/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "urls": [
        "https://www.linkedin.com/groups/12871280/"
    ],
    "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/posts-group/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "urls": [
    "https://www.linkedin.com/groups/12871280/"
  ],
  "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 post, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `postUrl` | Post URL | url |
| `postId` | Post ID | text |
| `groupId` | Group ID | text |
| `groupUrl` | Group URL | url |
| `postText` | Post Text | text |
| `authorName` | Author Name | text |
| `authorUrl` | Author URL | url |
| `authorProfileId` | Author Profile ID | text |
| `authorHandle` | Author Handle | text |
| `authorAvatar` | Author Avatar | image |
| `authorType` | Author Type | text |
| `authorHeadline` | Author Headline | text |
| `reactions` | Reactions | number |
| `comments` | Comments | number |
| `shares` | Shares | number |
| `reactionTypes` | Reaction Types | object\_array |
| `postedDate` | Posted Date | text |
| `isPinned` | Is Pinned | boolean |
| `articleUrl` | Article URL | url |
| `postMediaUrl` | Post Media URL | url |
| `postMediaType` | Post Media Type | text |
| `job` | Job | object |
| `repost` | Repost | object |
| `mentions` | Mentions | object\_array |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "linkedin/posts-group",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "authorHeadline": "Investment Banking | Financial Modelling | Valuation | Equity Research | Corporate Finance | Financial analyst",
      "reactionTypes": [
        {
          "type": "LIKE",
          "count": 2
        },
        {
          "type": "APPRECIATION",
          "count": 1
        }
      ],
      "job": null,
      "groupId": "12871280",
      "isPinned": true,
      "groupUrl": "https://www.linkedin.com/groups/12871280/",
      "authorAvatar": "https://media.licdn.com/dms/image/v2/D4E35AQHfsT-nT72ytg/profile-framedphoto-shrink_800_800/B4EaFkEwA8KgAY-/0/1792680329826?e=1794142800&v=beta&t=4z18pr7QXsP...",
      "authorType": "profile",
      "articleUrl": null,
      "postText": "Hello ECS Ambassadors International Community! 🌍\nThank you Joe S. and the @ECS  Ambassadors team for inviting me to be part of this great platform! 🙏\nI am Pr...",
      "authorHandle": "priya-chapke-01a51a176",
      "postedDate": "2026-10-30T23:17:35.091Z",
      "authorName": "Priya Chapke",
      "shares": 0,
      "postUrl": "https://www.linkedin.com/feed/update/urn:li:groupPost:12871280-7522036577787637761",
      "postMediaUrl": "https://media.licdn.com/dms/image/v2/D4E22AQGvYXPiDvG0_A/feedshare-shrink_1280/B4EaGOkaCRKMAM-/0/1793393271809?e=1795046400&v=beta&t=FcFhqaNCwhmF85VYp8sDFJua...",
      "postMediaType": "image",
      "comments": 0,
      "authorUrl": "https://www.linkedin.com/in/priya-chapke-01a51a176",
      "reactions": 4,
      "mentions": [
        {
          "text": "Joe S.",
          "start": 59,
          "length": 6
        }
      ],
      "repost": null,
      "authorProfileId": "ACoAACm5MJYBkuhLAdXWON_E-pZq-FGjk7f0d5M",
      "postId": "7522074252137787392"
    }
  ]
}
```

## Related APIs

For posts from profiles and companies use [`linkedin/posts`](https://docs.mindcase.co/apis/linkedin/posts).


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