Search posts by keyword
Search LinkedIn posts by keywords with filtering options. Find relevant content for engagement, monitor industry discussions, or discover trending topics. Filter by date posted, sort by relevance or recency, and target posts by author job titles.
/posts/searchCode Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/posts/search' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{"keywords":"software engineer"}'Parameters
No parameters.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID to use. If not provided, uses the default account. |
keywords | string | Yes | Search keywords to find in post content |
count | number | No | Number of posts to return per page |
start | number | No | Pagination offset (0-indexed) |
datePosted | string | No | Filter by when post was published |
sortBy | string | No | Sort order: relevance (best match) or date_posted (newest first) |
authorJobTitles | array | No | Filter by author job titles (e.g., ["CEO", "VP Marketing"]) |
Example
{
"keywords": "software engineer"
}Responses
| Status | Description |
|---|---|
| 200 | Search results retrieved successfully |
200 Response Parameters
| Name | Type | Description |
|---|---|---|
posts | array | |
totalResults | number |
200 Example
{
"posts": [],
"totalResults": 0
}Get reactions from a post (v2 - with vanity names)
Retrieve reactions from a LinkedIn post using the SDUI endpoint. Returns vanity names (actorPublicIdentifier) and proper profile URLs. Uses cursor-based pagination via pageToken instead of offset-based start.
Scrape LinkedIn post details
Extract detailed information from a LinkedIn post URL including content, author, engagement metrics, and media. Uses caching to reduce API calls. Supports both authenticated and public scraping with proxy rotation for reliability. Use forceRefresh to bypass cache.
