Linkedin profile post scraper (NO COOKIE) 2$/1000 posts
Pricing
$2.00 / 1,000 results
Linkedin profile post scraper (NO COOKIE) 2$/1000 posts
Scrape LinkedIn posts data for a given LinkedIn profile including post content, reactions, comments count, and media attachments
Pricing
$2.00 / 1,000 results
Rating
0.0
(0)
Developer

unli
Actor stats
0
Bookmarked
5
Total users
4
Monthly active users
11 days ago
Last modified
Categories
Share
LinkedIn Profile Posts Scraper Actor
π Apify Actor to scrape ALL posts from a LinkedIn profile via n8n webhook
This actor extracts comprehensive data from all posts published by a LinkedIn profile by calling your n8n webhook endpoint. It's designed to work seamlessly with your existing n8n workflow for LinkedIn profile posts extraction.
π― Features
- β Scrapes ALL posts from a LinkedIn profile (not just one)
- β Configurable maximum posts limit (default: 50, max: 200)
- β Extracts complete post data (title, content, author, engagement)
- β Retrieves author information (name, profile URL, followers)
- β Captures engagement metrics (reactions, comments)
- β Extracts hashtags from post content
- β Gets media/images from posts
- β Retrieves top comments for each post
- β Captures published date
- β Multiple retry attempts with different user agents
- β Comprehensive error handling and logging
- β Dataset views for easy data visualization
- β Aggregate statistics (total reactions, comments)
π₯ Input
{"profileUrl": "https://www.linkedin.com/in/cloudwithraj/","maxPosts": 50}
Input Parameters
| Field | Type | Required | Description |
|---|---|---|---|
profileUrl | String | Yes | Full URL of the LinkedIn profile to scrape posts from |
maxPosts | Integer | No | Maximum number of posts to scrape (default: 50, max: 200) |
π€ Output
The actor returns an array of posts scraped from the profile:
[{"postIndex": 1,"activityId": "7388952726245629952","url": "https://www.linkedin.com/posts/cloudwithraj_...","title": "Post title","author": {"name": "Author Name","url": "https://www.linkedin.com/in/authorname","followers": "10K followers"},"content": {"text": "Post content text...","hashtags": ["#amazon", "#tech", "#news"]},"engagement": {"reactions": 1234,"comments": 56},"media": {"images": ["https://media.licdn.com/..."]},"publishedDate": "2024-12-01T10:30:00.000Z","topComments": [{"author": "Commenter Name","text": "Comment text...","time": "2h ago"}],"scrapedAt": "2024-12-01T15:45:00.000Z","source": "linkedin-profile-posts-scraper","profileUrl": "https://www.linkedin.com/in/cloudwithraj/","username": "cloudwithraj"},{"postIndex": 2,...}]
π¨ Dataset Views
The actor provides 3 pre-configured dataset views:
1. Overview
Basic information for quick analysis:
- Post Index (#)
- Activity ID
- Title
- Author
- Post text
- Reactions & Comments
- Published date
- Post URL
2. Detailed View
Complete post information including:
- All overview fields
- Author profile URL and followers
- Hashtags
- Media/images
- Top comments
- Scraping metadata
- Profile URL and username
3. Engagement Metrics
Focus on engagement data:
- Post Index
- Activity ID
- Author
- Reactions & Comments count
- Hashtags
- Published date
π Usage
On Apify Platform
- Go to Apify Console
- Create a new Actor
- Upload all files from this directory
- Build and run the actor
- Provide a LinkedIn post URL in the input
Local Development
# Install Apify CLInpm install -g apify-cli# Initialize project (if not already)apify init# Run locallyapify run -p# Push to Apify platformapify push
Via API
curl -X POST https://api.apify.com/v2/acts/YOUR_ACTOR_ID/runs \-H "Authorization: Bearer YOUR_API_TOKEN" \-H "Content-Type: application/json" \-d '{"profileUrl": "https://www.linkedin.com/in/username/","maxPosts": 50}'
π§ Technical Details
Architecture
- Webhook Integration: Calls n8n webhook at
https://eliasse-n8n.onrender.com/webhook/1305b7f8-0602-48f6-85df-0f7f7497e54b - HTTP Client: Uses axios with retry logic
- Error Handling: Multiple retry attempts with different user agents
- Timeout: 180 seconds per request (3 minutes - profile scraping takes longer)
- Data Validation: Only includes non-empty fields in output
- Bulk Processing: Handles multiple posts from a single profile
Webhook Payload
{"profileUrl": "https://www.linkedin.com/in/username/","username": "username","maxPosts": 50,"timestamp": "2024-12-01T15:45:00.000Z","source": "linkedin-profile-posts-scraper","version": "1.0.0","requestType": "profile_posts_scraping"}
Retry Logic
The actor implements smart retry logic:
- Tests multiple payload formats
- Tries different user agents
- Maximum 3 attempts per configuration
- 2-second delay between retries
β οΈ Limitations
- Requires valid LinkedIn profile URL (linkedin.com/in/username)
- Profile posts must be publicly accessible (or semi-public)
- Depends on n8n webhook availability
- Maximum 200 posts per profile (configurable)
- Some data may not be available for all posts
- Rate limiting may apply
- Scraping time increases with number of posts
π Data Quality
The actor ensures data quality by:
- Validating URL format before processing
- Filtering out empty/null/"Not specified" values
- Providing structured nested data (author, content, engagement, media)
- Including metadata for tracking (scrapedAt, source, postIndex)
- Aggregate statistics (total reactions, comments across all posts)
- Post indexing for easy reference
π Privacy & Ethics
- Only scrapes publicly accessible posts
- Respects LinkedIn's robot.txt and ToS
- No authentication required
- Data is stored securely in Apify datasets
π Error Handling
The actor handles various error scenarios:
- Invalid URL format β Returns error with helpful message
- Webhook timeout β Retries with exponential backoff
- Network errors β Logs detailed error info
- Empty response β Returns error item to dataset
π Logs
The actor provides detailed logging:
π€ LinkedIn Profile Posts Scraper Actor Starting...π Input received: {...}π Scraping posts for profile: cloudwithraj (max: 50 posts)π Attempt 1: Testing payload formatβ Success with payload format and user agent: Mozilla/5.0...π Received data for processing: 12456 charactersπ° Processing 25 posts from profileβ Processed 25 posts from profileπ Sample post: {...}β Saved 25 posts to datasetπ Final Summary: {"profileUrl": "https://www.linkedin.com/in/cloudwithraj/","username": "cloudwithraj","totalPostsScraped": 25,"postsWithContent": 25,"postsWithEngagement": 23,"totalReactions": 15234,"totalComments": 456,"errors": 0,"maxPosts": 50}π LinkedIn Profile Posts Scraper Actor Finished
π Version History
v1.0.0 (2024-12-01)
- Initial release
- Profile posts scraping functionality (all posts from a profile)
- Configurable max posts limit (1-200)
- Webhook integration with n8n
- Multiple dataset views
- Comprehensive error handling
- Aggregate statistics
π€ Support
For issues or questions:
- Check the actor logs in Apify Console
- Verify the profile URL is valid and accessible (linkedin.com/in/username)
- Ensure n8n webhook is online and responding
- Check if profile has public posts available
Made with β€οΈ for LinkedIn profile data extraction