Apify Store
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

FieldTypeDescription
searchQueriesarrayQueries to search LinkedIn posts. The same query as you would use in the LinkedIn search bar.
maxPostsintegerMaximum number of posts to scrape per each search query. If you set this to 0, it will scrape all posts.
postedLimitstring (any | 1h | 24h | week | month | 3months)Fetch posts no older than X time. Options: '1h', '24h', 'week', 'month'.
postedLimitDatestringScrape 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"
sortBystring (relevance | date)Sort by 'relevance' or 'date'.
authorUrlsarrayList 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.
authorsCompaniesarrayScrape 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.
mentioningMemberarrayList of LinkedIn profile URLs of members mentioned in posts. Example: `https://www.linkedin.com/in/williamhgates` will fetch posts mentioning Bill Gates.
mentioningCompanyarrayList of LinkedIn Company Names mentioned in posts. Example: `https://www.linkedin.com/company/google` will fetch posts mentioning Google.
contentTypestring (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.
authorsIndustryIdarrayScrape 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
authorKeywordsstringScrape posts of profile-authors whose profiles contain at least one of these keywords in the headline or job title sections.
profileScraperModestring (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"
startPageintegerThe page number to start scraping from. default 1
scrapePagesintegerThe number of search pages to scrape. Each page contains 100 posts
scrapeReactionsbooleanScrape reactions of posts.
maxReactionsintegerMaximum number of reactions to scrape per post. Default is 10.
reactionsProfileScraperModestring (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"
postNestedReactionsbooleanWhether 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.
scrapeCommentsbooleanScrape comments of posts.
commentsPostedLimitstring (any | 1h | 24h | week | month | 3months)Fetch comments no older than X time. Options: '1h', '24h', 'week', 'month'.
maxCommentsintegerMaximum number of comments to scrape per post. Default is 10.
commentsProfileScraperModestring (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"
postNestedCommentsbooleanWhether 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 120
mcp
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.