Pricing
$22.00/month + usage
Linkedin Mutual Connection Analyzer
A LinkedIn Connection Analyzer that analyzes LinkedIn profiles and determines connection degrees between you and target profiles.
Pricing
$22.00/month + usage
Rating
2.4
(2)
Developer
Actor stats
3
Bookmarked
84
Total users
3
Monthly active users
5 months ago
Last modified
Categories
Share
LinkedIn Connection Analyzer
A LinkedIn Connection Analyzer that analyzes LinkedIn profiles and determines connection degrees between you and target profiles. This tool provides comprehensive profile data extraction along with sophisticated connection degree analysis.
๐ Features
- Connection Degree Analysis: Accurately determines 1st, 2nd, 3rd degree connections or if profiles are out of network
- Comprehensive Profile Scraping: Extracts detailed profile information including experience, education, skills, and contact details
- Cookie-Based Authentication: Uses browser cookies for seamless LinkedIn authentication
- Robust Error Handling: Comprehensive logging and error management
- Apify Integration: Built as an Apify Actor for easy deployment and scaling
๐ What Gets Extracted
Profile Information
- Basic Info: Name, headline, summary, location, industry
- Professional Data: Work experience, education history, skills
- Contact Information: Email, phone, social media links (when available)
- Visual Assets: Profile picture and background image URLs
- Accomplishments: Certifications, publications, projects, etc.
Connection Analysis
- Connection Degree: 1st, 2nd, 3rd degree, or "Not connected"
- Connection Confidence: Multiple validation methods for accuracy
๐ง Configuration
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
profile_url | String | โ | LinkedIn profile URL to analyze |
cookies | Array | โ | Browser cookies from EditThisCookie extension |
Cookie Setup
- Install EditThisCookie Extension (Chrome/Firefox)
- Login to LinkedIn in your browser
- Export Cookies:
- Navigate to LinkedIn.com
- Click EditThisCookie extension
- Click "Export" button
- Copy the JSON array
- Use in Input: Paste the cookies array as the
cookiesparameter
Sample Input
{"profile_url":"https://www.linkedin.com/in/john-doe","cookies":[{"name":"li_at","value":"your-li-at-cookie-value","domain":".linkedin.com","path":"/","secure":true,"httpOnly":true},{"name":"JSESSIONID","value":"your-jsessionid-value","domain":".linkedin.com","path":"/","secure":true}]}
๐ฏ Usage Examples
Basic Profile Analysis
# Input{"profile_url":"https://www.linkedin.com/in/jane-smith","cookies":[/* your cookies array */]}# Output includes connection degree and full profile data
Supported URL Formats
https://www.linkedin.com/in/usernamehttps://linkedin.com/in/username/https://www.linkedin.com/profile/view?id=usernamehttps://linkedin.com/pub/name/id/id/username
๐ Output Format
{"profile_url":"https://www.linkedin.com/in/john-doe","profile_id":"john-doe","connection_degree":"2nd Degree Connection","basic_info":{"firstName":"John","lastName":"Doe","headline":"Software Engineer at Tech Company","summary":"Experienced software engineer...","location":"San Francisco, CA","industry":"Technology","profile_picture":"https://...","background_image":"https://..."},"experience":[{"title":"Software Engineer","company":"Tech Company","duration":"2020 - Present","description":"..."}],"education":[{"school":"University Name","degree":"Bachelor of Science","field":"Computer Science","years":"2016 - 2020"}],"skills":["Python","JavaScript","React"],"contact_info":{"email":"john@example.com","phone":"+1234567890"},"connection_analysis":{"degree":"2nd Degree Connection","connection_related_fields":{}}}
โ ๏ธ Important Notes
Rate Limits
- LinkedIn has strict rate limiting
- Recommended: 1-2 requests per minute
- Use delays between requests for large batches
Cookie Management
- Cookies expire periodically (typically 24-48 hours)
- Monitor authentication status
- Refresh cookies when needed
LinkedIn Terms of Service
- Respect LinkedIn's Terms of Service
- Use for legitimate networking purposes
- Avoid aggressive scraping patterns
๐จ Troubleshooting
Common Issues
Authentication Failed
Error: Authentication failed: li_at cookie not found
Solution: Ensure your cookies array includes the li_at cookie
Profile Not Found
Error: Could not extract profile IDfromURL
Solution: Verify the LinkedIn URL format is correct
Rate Limited
Error: Too many requests
Solution: Add delays between requests and reduce request frequency
Debug Mode
Enable debug logging by setting:
logging.basicConfig(level=logging.DEBUG)
๐ Best Practices
- Respect Rate Limits: Space out requests appropriately
- Monitor Cookie Expiration: Refresh cookies regularly
- Handle Errors Gracefully: Implement retry logic for failed requests
- Validate Inputs: Always verify profile URLs before processing
- Log Everything: Use comprehensive logging for debugging
๐ License
This project is for educational and research purposes. Please ensure compliance with LinkedIn's Terms of Service and applicable laws in your jurisdiction.
