---
title: "Search posts, every filter typed"
method: POST
path: "/v1/actions/search_linkedin_posts"
tags: ["Search"]
---

# Search posts, every filter typed

`POST /v1/actions/search_linkedin_posts`

## Request

- Base URL: `https://api.heyreagent.com`
- URL: `https://api.heyreagent.com/v1/actions/search_linkedin_posts`
- Auth: HTTP bearer

Search posts on LinkedIn, with each LinkedIn filter as its own typed input.

At most 49 rows per call: LinkedIn's page size for this search.

LinkedIn returns at most 1,000 rows for one search; narrow the filters to reach the rest.

Docs: https://heyreagent.com/docs/actions/search_linkedin_posts

## Request body

- object
  - `keywords` string: Words to search for.
  - `sortBy` 'relevance' | 'date': Order (default relevance).
  - `datePosted` 'past_day' | 'past_week' | 'past_month': How recent.
  - `contentType` 'videos' | 'images' | 'live_videos' | 'collaborative_articles' | 'documents' | 'jobs': Only posts with this kind of content.
  - `postedBy` object: Who posted it: given people, given company pages, you, your 1st-degree connections, or people you follow.
    - `member` string[]: People: ids from lookup_search_ids type PEOPLE.
    - `company` string[]: Company pages: ids from lookup_search_ids type COMPANY.
    - `me` boolean
    - `firstConnections` boolean
    - `peopleYouFollow` boolean
  - `mentioning` object: Posts that mention these people or company pages.
    - `member` string[]: People: ids from lookup_search_ids type PEOPLE.
    - `company` string[]: Company pages: ids from lookup_search_ids type COMPANY.
  - `author` object: Who the author is: their industry, their company, or words in their headline.
    - `industry` string[]: Ids from lookup_search_ids type INDUSTRY.
    - `company` string[]: Ids from lookup_search_ids type COMPANY.
    - `keywords` string: Words in the author's headline.
  - `limit` number: How many to return (1–49, default 10).
  - `cursor` string: nextCursor from the previous call, to get the next page. Keep the other arguments the same.
  - `connectionId` string: Which of your LinkedIn accounts to act from (its id from list_linkedin_accounts). Omit to use your first live one.

## Response `200`

It worked. Inside result: returned, nextCursor, results[].type, results[].id, results[].socialId, results[].shareUrl, results[].title, results[].text, results[].date, results[].parsedDatetime, results[].reactionCounter, results[].commentCounter, results[].repostCounter, results[].impressionsCounter, results[].userReacted, results[].isRepost, results[].repostId, results[].repostParsedDatetime.

- Worked
  - `ok` true, required
  - `result` object, required: What was asked for. A field that does not apply is left out, or is null.

## Other responses

- `default`: It did not work. The message says why, in plain English.

---

[API](https://skmtc.dev/heyreagent/apis/heyreagent-api.md) · [All operations](https://skmtc.dev/heyreagent/apis/heyreagent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/heyreagent/apis/heyreagent-api/revisions/917360c5f841?raw)
