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/searchSearch 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.
Code 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 |
Get reactions from a post
Retrieve reactions (likes, celebrates, etc.) from a LinkedIn post with pagination. Returns reactor profile information, reaction type, and timestamps. Useful for finding engaged users who reacted to content.
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.
