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"}'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.
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 the list of people who reposted a post
Retrieve the list of people who reposted a LinkedIn post, via the SDUI RepostList endpoint (parsed from RSC). Returns each reposter's name, vanity name (actorPublicIdentifier), profile URL and profile picture, plus a repostType ("simple" = plain repost, "quote" = repost with commentary). Uses cursor-based pagination: pass the returned pagination.token together with nextStartIndex to fetch the next page.
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.
