Search LinkedIn posts
Changed onSearch LinkedIn posts by keywords, author, date range, and more.
Request
- Base URLhttps://api.harvestapi.io
- URLhttps://api.harvestapi.io/linkedin/post-search
- AuthAPI key in header X-API-Key
Query parameters
Keywords to search for in posts
Filter posts by author's profile URL(s) or public identifier(s) or profile ID(s) (comma-separated). Note: LinkedIn returns fewer results per profile when using post search. To extract all posts by a profile, use the /linkedin/profile-posts endpoint
Filter posts by this company URL(s) or company ID(s) (comma-separated). Note: LinkedIn returns fewer results per company when using post search. To extract all posts by a company, use the /linkedin/company-posts endpoint
List of LinkedIn companies where authors of posts work (comma-separated). It supports company URLs and IDs.
List of LinkedIn industry IDs of authors' companies (comma-separated). It supports industry IDs. Full list of industry IDs: https://github.com/HarvestAPI/linkedin-industry-codes-v2/blob/main/linkedin_industry_code_v2_all_eng.csv
Filter posts mentioning this LinkedIn profile URL or ID (comma-separated). It supports profile URLs and IDs.
Filter posts mentioning this LinkedIn company URL or ID (comma-separated). It supports company URLs and IDs.
Filter by content type. Supported values: 'videos', 'images', 'live_videos', 'documents', 'collaborative_articles', 'jobs'
Filter by keywords in authors' profiles
Group LinkedIn URL or Group ID
Filter posts by maximum posted date. Supported values: '24h', 'week', 'month'. This parameter will be sent to LinkedIn, the filtering will be done on their side
Post-Filter posts by maximum posted date. Supported values: '1h', '24h', 'week','month', '3months', '6months', 'year'. This parameter will be applied after receiving results from LinkedIn, the filtering will be done on our side
Sort by field. Supported values: 'relevance', 'date'
Page number for pagination
Required if it was returned by the previous page. Otherwise the page will always be 1 (on LinkedIn side). Doesn't apply for all queries, usually profile posts return this token
Response
Post search response
Changes
- breaking
the
response's property type changed fromstringtointegerfor status - warning
deleted the
queryrequest parametercompanyId - warning
deleted the
queryrequest parameterprofileId
- breaking