---
title: "Search LinkedIn posts"
method: POST
path: "/api/v1/platform/scrapers/linkedin/keyword-posts"
tags: ["Scrapers"]
---

# Search LinkedIn posts

`POST /api/v1/platform/scrapers/linkedin/keyword-posts`

Search LinkedIn posts by keyword.

## Request body

- PlatformLinkedInKeywordPostsDto
  - `keyword` string, required
  - `config` LinkedInKeywordPostsConfigBodyDto
    - `limit` number
    - `sortBy` 'relevance' | 'recent'
    - `dateFilter` 'past-24h' | 'past-week' | 'past-month'
    - `matchMode` 'exact' | 'broad' — Use exact to search the keyword as a quoted phrase, or broad to let LinkedIn match related terms.

## Response `200`

LinkedIn posts matching a keyword.

- object
  - `data` LinkedInPostResponseDto[], required
    - `activityId` string, required
    - `postUrl` string, nullable
    - `text` string, required
    - `postedAt` string, nullable
    - `authorName` string, nullable
    - `authorHeadline` string, nullable
    - `authorProfileUrl` string, nullable
    - `authorProfileUsername` string, nullable
    - `totalReactions` number, nullable
    - `commentsCount` number, nullable
    - `repostsCount` number, nullable
    - `isReshare` boolean, nullable
    - `repostedBy` LinkedInRepostedByResponseDto
      - `name` string, required
      - `publicIdentifier` string, required
    - `contentType` string, nullable
    - `contentData` object
    - `hashtags` string[], nullable
  - `meta` PublicResponseMetaDto, required
    - `requestId` string, required

## Other responses

- `400` — The request body or parameters are invalid.
- `401` — Authentication is required.
- `402` — The organization does not have enough credits for this request.
- `500` — An unexpected error occurred.
- `502` — The upstream service could not complete the request.

---

[API](https://skmtc.dev/thehog/apis/the-hog-api.md) · [All operations](https://skmtc.dev/thehog/apis/the-hog-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/thehog/the-hog-api/revisions/f5056017668a/schema)
