> ## 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 Search

> Search LinkedIn posts, including author, content, and date, using configurable filters to target specific profiles or companies

`$1.4 / 1k posts`

Search LinkedIn posts, including author, content, and date, using configurable filters to target specific profiles or companies

## Endpoint

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

## Parameters

<ParamField body="queries" type="array" required>
  **List** · Keywords to search LinkedIn posts for. One per line.
</ParamField>

<ParamField body="maxResults" type="integer" default={50}>
  **Number** · Posts per query. Use 0 for all.
</ParamField>

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

  <Accordion title="Show all 8 options">
    `any`, `1h`, `24h`, `week`, `month`, `3months`, `6months`, `year`

    *Legend: `any` = Any time, `1h` = Past hour, `24h` = Past 24 hours, `week` = Past week, `month` = Past month, `3months` = Past 3 months, `6months` = Past 6 months, `year` = Past year*

    [View all 8 as a structured list →](/agents/linkedin/post-search/values#postedlimit)
  </Accordion>
</ParamField>

<ParamField body="sortBy" type="string">
  **Dropdown** · Sort order for results.

  **Options:** `relevance`, `recent`

  *Legend: `relevance` = Relevance, `recent` = Most recent*
</ParamField>

<ParamField body="authors" type="array">
  **List** · Filter posts to specific authors. One per line — accepts profile URLs, company names ('Google', 'Stripe'), or keywords matching headlines/titles ('data scientist').
</ParamField>

<ParamField body="mentioning" type="array">
  **List** · Filter posts that mention specific people or companies. One per line — accepts profile URLs (linkedin.com/in/...), company URLs (linkedin.com/company/...), or company names.
</ParamField>

<ParamField body="contentType" type="string">
  **Dropdown** · Filter to a specific media type.

  **Options:** `all`, `videos`, `images`, `jobs`, `live_videos`, `documents`, `collaborative_articles`
</ParamField>

## Response columns

| Field               | Display name        | Type    |
| ------------------- | ------------------- | ------- |
| `searchQuery`       | Search Query        | text    |
| `postUrl`           | Post URL            | url     |
| `postText`          | Post Text           | text    |
| `posted`            | Posted              | text    |
| `author`            | Author              | text    |
| `authorTitle`       | Author Title        | text    |
| `authorUrl`         | Author URL          | url     |
| `authorHandle`      | Author Handle       | text    |
| `authorType`        | Author Type         | text    |
| `likes`             | Likes               | number  |
| `comments`          | Comments            | number  |
| `shares`            | Shares              | number  |
| `reactions`         | Reactions           | number  |
| `type`              | Type                | text    |
| `postedAtTimestamp` | Posted At Timestamp | integer |
| `authorDetails`     | Author Details      | text    |
| `jobDetails`        | Job Details         | object  |
| `articleDetails`    | Article Details     | object  |
| `contentAttributes` | Content Attributes  | array   |
| `authorAvatar`      | Author Avatar       | url     |
| `videoThumbnail`    | Video Thumbnail     | url     |
| `videoUrl`          | Video URL           | url     |

## Example

<CodeGroup>
  ```bash curl theme={null}
  curl -X POST https://api.mindcase.co/api/v1/agents/linkedin/post-search/run \
    -H "Authorization: Bearer mk_live_abc123def456" \
    -H "Content-Type: application/json" \
    -d '{
    "params": {
      "queries": [
        "AI agents"
      ],
      "maxResults": 10,
      "scrapeReactions": false,
      "maxReactions": 5,
      "postNestedReactions": false,
      "maxComments": 10
    }
  }'
  ```

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

  resp = requests.post(
      "https://api.mindcase.co/api/v1/agents/linkedin/post-search/run",
      headers={"Authorization": "Bearer mk_live_abc123def456"},
      json={"params": {
      "queries": [
          "AI agents"
      ],
      "maxResults": 10,
      "scrapeReactions": false,
      "maxReactions": 5,
      "postNestedReactions": false,
      "maxComments": 10
  }},
  )
  data = resp.json()
  ```
</CodeGroup>

### Example response

```json Response theme={null}
{
  "job_id": "job_7f3a2b1c",
  "status": "completed",
  "data": [
    {
      "searchQuery": "AI agents",
      "postUrl": "https://www.linkedin.com/posts/shastap_aiagents-activity-7456084515224965121-EZ9S",
      "postText": "Agentic AI: Building Data-First AI Agents! #aiagents",
      "posted": "2026-05-01T20:57:55.781Z",
      "author": "Shasta P.",
      "authorTitle": "Sugar Pop (wax melts) \ud83c\udf6dWhere Fragrance Meets Fun \ud83c\udf6d",
      "authorUrl": "https://www.linkedin.com/in/shastap?miniProfileUrn=urn%3Ali%3Afsd_profile%3AACoAABKGH90BFXkXD4DN9lVEDr8qMpwSXJ4TLT0",
      "authorHandle": "shastap",
      "authorType": "profile",
      "likes": 1,
      "comments": 0,
      "shares": 0,
      "reactions": null,
      "type": "post",
      "postedAtTimestamp": 1777669075781,
      "authorDetails": {
        "id": "ACoAABKGH90BFXkXD4DN9lVEDr8qMpwSXJ4TLT0",
        "universalName": null,
        "publicIdentifier": "shastap",
        "type": "profile",
        "name": "Shasta P.",
        "linkedinUrl": "https://www.linkedin.com/in/shastap?miniProfileUrn=urn%3Ali%3Afsd_profile%3AACoAABKGH90BFXkXD4DN9lVEDr8qMpwSXJ4TLT0",
        "info": "Sugar Pop (wax melts) \ud83c\udf6dWhere Fragrance Meets Fun \ud83c\udf6d",
        "website": null,
        "websiteLabel": null,
        "avatar": {
          "url": "https://media.licdn.com/dms/image/v2/D5603AQFWG2kD9eHYJg/profile-displayphoto-crop_800_800/B56ZyGwTGtGoAI-/0/1771787337440?e=1779321600&v=beta&t=6nwzTsDha2ZYYw8q1pXBQbdGyYfg08dQwnzLPwj5FrE",
          "width": 800,
          "height": 800,
          "expiresAt": 1779321600000
        },
        "urn": "310779869"
      },
      "jobDetails": null,
      "articleDetails": null,
      "contentAttributes": [],
      "authorAvatar": "https://media.licdn.com/dms/image/v2/D5603AQFWG2kD9eHYJg/profile-displayphoto-crop_800_800/B56ZyGwTGtGoAI-/0/1771787337440?e=1779321600&v=beta&t=6nwzTsDha2ZYYw8q1pXBQbdGyYfg08dQwnzLPwj5FrE",
      "videoThumbnail": "https://media.licdn.com/dms/image/v2/D560DAQFL4bRud3pXew/learning-public-crop_144_256/learning-public-crop_144_256/0/1721841126629?e=1778310000&v=beta&t=R19GHMeXxcghhxkpr93jW54j32LcBvUa-evpBHTMmLE",
      "videoUrl": "https://dms.licdn.com/playlist/vid/v2/D4D0DAQEXQd47yB0k3g/mp4-720p-30fp-crf28/mp4-720p-30fp-crf28/0/1721773860868?e=1778310000&v=beta&t=4_gFhYWO8znobxdyfDKi48ROBZiCdspfmaldaxAcxVw"
    }
  ]
}
```
