AS
Apify Store
/harvestapi/linkedin-post-search
Search LinkedIn Posts
Search LinkedIn Posts with advanced filters by target profiles or companies. No cookies or account required.
liveverifiedasyncdegraded · 6.7s~30s typical
linkedinpostssearch
$0.0020
per result + $0.01 call
plus $0.001 platform fee per run
Usage-based actor: event charges passed through at cost plus 25%
Bring your own Apify Store key: provider portion drops to $0.
$Set up https://cracked-ai-pearl.vercel.app/SKILL.md, then use Cracked to run apify /harvestapi/linkedin-post-search for me.
Input
| Field | Type | Description |
|---|---|---|
| searchQueries | array | Queries to search LinkedIn posts. The same query as you would use in the LinkedIn search bar. |
| maxPosts | integer | Maximum number of posts to scrape per each search query. If you set this to 0, it will scrape all posts. |
| postedLimit | string (any | 1h | 24h | week | month | 3months) | Fetch posts no older than X time. Options: '1h', '24h', 'week', 'month'. |
| postedLimitDate | string | Scrape posts from now up to and including this date. It supports the [Date time string format](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format). For example, "2011-10-10", or "2011-10-10T14:48:00.000+09:00" or a timestamp: "628021800000" |
| sortBy | string (relevance | date) | Sort by 'relevance' or 'date'. |
| authorUrls | array | List of LinkedIn profile or company URLs to scrape. Example: `https://www.linkedin.com/in/williamhgates` will fetch posted or re-posted content by Bill Gates. |
| authorsCompanies | array | Scrape posts of profile-authors who assigned to LinkedIn Company Names of these companies. Example: `Google` will fetch posts of Google employees or ex-employees in some cases. |
| mentioningMember | array | List of LinkedIn profile URLs of members mentioned in posts. Example: `https://www.linkedin.com/in/williamhgates` will fetch posts mentioning Bill Gates. |
| mentioningCompany | array | List of LinkedIn Company Names mentioned in posts. Example: `https://www.linkedin.com/company/google` will fetch posts mentioning Google. |
| contentType | string (all | videos | images | jobs | live_videos | documents) | Filter posts by content type. For example, if you choose 'Videos', it will scrape only posts containing videos. |
| authorsIndustryId | array | Scrape posts of profile-authors who assigned to LinkedIn Industry IDs of these industries. Full list: https://github.com/HarvestAPI/linkedin-industry-codes-v2/blob/main/linkedin_industry_code_v2_all_eng.csv |
| authorKeywords | string | Scrape posts of profile-authors whose profiles contain at least one of these keywords in the headline or job title sections. |
| profileScraperMode | string (short | main) | Choose the mode for scraping LinkedIn profiles. The Short mode provides basic information, while the Full mode includes full detailed profile data. default "short" |
| startPage | integer | The page number to start scraping from. default 1 |
| scrapePages | integer | The number of search pages to scrape. Each page contains 100 posts |
| scrapeReactions | boolean | Scrape reactions of posts. |
| maxReactions | integer | Maximum number of reactions to scrape per post. Default is 10. |
| reactionsProfileScraperMode | string (short | main) | Choose the mode for scraping LinkedIn profiles. The Short mode provides basic information, while the Full mode includes full detailed profile data. default "short" |
| postNestedReactions | boolean | Whether to add reactions items inside post items. In a case of hundreds of reactions, the Actor might hit the max item size limit and won't be able to save a post. |
| scrapeComments | boolean | Scrape comments of posts. |
| commentsPostedLimit | string (any | 1h | 24h | week | month | 3months) | Fetch comments no older than X time. Options: '1h', '24h', 'week', 'month'. |
| maxComments | integer | Maximum number of comments to scrape per post. Default is 10. |
| commentsProfileScraperMode | string (short | main) | Choose the mode for scraping LinkedIn profiles. The Short mode provides basic information, while the Full mode includes full detailed profile data. default "short" |
| postNestedComments | boolean | Whether to add comments items inside post items. In a case of hundreds of comments, the Actor might hit the max item size limit and won't be able to save a post. |
Call it
curl
curl https://cracked-ai-pearl.vercel.app/v1/run \
-H "Authorization: Bearer ck_live_..." -H "content-type: application/json" \
-d '{"provider":"apify","endpoint":"/harvestapi/linkedin-post-search","input":{"keywords":"AI agents","maxResults":20},"wait":false}'poll
curl "https://cracked-ai-pearl.vercel.app/v1/runs/<runId>?wait=30" -H "Authorization: Bearer ck_live_..."cli
npx cracked-ai run -p apify -e /harvestapi/linkedin-post-search -i '{"keywords":"AI agents","maxResults":20}' -w 120mcp
run_tool({ provider: "apify", endpoint: "/harvestapi/linkedin-post-search", input: {"keywords":"AI agents","maxResults":20}, wait: false })Try it
Runs against your signed-in workspace balance. Sign in if you have not.