Facebook Pixel
APILinkedIn Search

Search LinkedIn posts (V2 - RSC endpoint with auto-pagination)

Search for LinkedIn posts using the RSC endpoint with enhanced filtering options and automatic pagination. Automatically handles LinkedIn pagination internally - specify the total count you want (max 50) and the API will fetch multiple pages as needed (max 10 pages, 10 results per page). Supports filtering by date, content type, author, and more.

POST/search/posts/v2

Search LinkedIn posts (V2 - RSC endpoint with auto-pagination)

Search for LinkedIn posts using the RSC endpoint with enhanced filtering options and automatic pagination. Automatically handles LinkedIn pagination internally - specify the total count you want (max 50) and the API will fetch multiple pages as needed (max 10 pages, 10 results per page). Supports filtering by date, content type, author, and more.

Authentication requiredSearch

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/search/posts/v2' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{"accountId":"acc_12345","keywords":"","count":10,"start":0,"filters":{"sortBy":"example_value","datePosted":["2024-01-15"],"contentType":["default"],"postedBy":["example_value"],"fromMember":["example_value"],"fromOrganization":["example_value"],"mentionsMember":["example_value"],"mentionsOrganization":["example_value"],"authorCompany":["Acme Inc"],"authorIndustry":["Technology"],"authorJobTitle":["Senior Developer"]}}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID to use. If not provided, uses the default account.
keywordsstringNoSearch keywords for post content
countnumberNoTotal number of posts to return. API will automatically paginate (10 per page) to collect this many.
startnumberNoStarting offset (0-indexed) for pagination.
filtersobjectNoOptional filters to narrow down search results

Example

{
  "accountId": "acc_12345",
  "keywords": "",
  "count": 10,
  "start": 0,
  "filters": {
    "sortBy": "example_value",
    "datePosted": [
      "2024-01-15"
    ],
    "contentType": [
      "default"
    ],
    "postedBy": [
      "example_value"
    ],
    "fromMember": [
      "example_value"
    ],
    "fromOrganization": [
      "example_value"
    ],
    "mentionsMember": [
      "example_value"
    ],
    "mentionsOrganization": [
      "example_value"
    ],
    "authorCompany": [
      "Acme Inc"
    ],
    "authorIndustry": [
      "Technology"
    ],
    "authorJobTitle": [
      "Senior Developer"
    ]
  }
}

Responses

StatusDescription
200Posts retrieved successfully