linkedin-cli LinkedIn data extraction CLI. Fetch profiles, companies, jobs, and posts.
Installation ``bash npm install -g linkedin-cli`
Setup LinkedIn requires authentication. Export your session cookie:
`bash linkedin-cli authFollow prompts to enter cookie from browser `
Or set environment variable: `bash export LINKEDIN_COOKIE="your-li_at-cookie-value"`
Usage `bashProfile lookup linkedin-cli profile satyanadella
Company info linkedin-cli company microsoft
Job search linkedin-cli jobs "software engineer" --location "San Francisco"
Posts from a user linkedin-cli posts elonmusk --limit 20
`
Commands
$3 Get LinkedIn profile data.
`
bash linkedin-cli profile satyanadella linkedin-cli profile username --experience linkedin-cli profile username --education linkedin-cli profile username --full`
Options: -
--experience
- Include work experience - --education
- Include education history - --skills
- Include skills & endorsements - --full
- Include everything
$3 Get company information.
`
bash linkedin-cli company microsoft linkedin-cli company google --employees linkedin-cli company startup-name --jobs`
Options: -
--employees
- List employees (limited) - --jobs
- Show open positions - --about
- Company details and stats
$3 Search for jobs.
`
bash linkedin-cli jobs "react developer" linkedin-cli jobs "data scientist" --location "New York" linkedin-cli jobs "devops" --remote linkedin-cli jobs "product manager" --experience entry`
Options: -
--location
- Filter by location - --remote - Remote jobs only - --experience - entry, associate, mid, senior, director - --posted - Past 24h, week, month - --limit - Number of results
$3 Get user's posts and activity.
`bash linkedin-cli posts satyanadella linkedin-cli posts username --limit 50 linkedin-cli posts username --reactions`Options: -
--limit - Number of posts (default: 20) - --reactions - Include reaction counts
$3 Search people.
`bash linkedin-cli search "software engineer" linkedin-cli search "CTO" --company google linkedin-cli search "recruiter" --location "Austin"`Options: -
--company - Filter by company - --location - Filter by location - --limit - Number of results
Output Formats
`bashJSON (default) linkedin-cli profile username
Table view linkedin-cli jobs "developer" -o table
Save to file linkedin-cli company microsoft --save company.json`
Example Output
`json { "profile": { "name": "Satya Nadella", "headline": "Chairman and CEO at Microsoft", "location": "Greater Seattle Area", "connections": "500+", "followers": "10M", "about": "...", "experience": [ { "title": "Chairman and CEO", "company": "Microsoft", "duration": "10 yrs", "location": "Redmond, Washington" } ] } }`
Rate Limiting LinkedIn has strict rate limits. Built-in delays help avoid blocks:
`bash linkedin-cli search "developer" --delay 3000 # 3s between requests``
⚠️ Important Notes - Requires valid LinkedIn session cookie - Respect LinkedIn's Terms of Service - Use reasonable rate limits - For personal/research use only
Why linkedin-cli? - Powerful - Profiles, companies, jobs, posts - Structured data - Clean JSON output - Scriptable - Automate research workflows - Multiple formats - JSON, CSV, table output
---
Built by LXGIC Studios
🔗 GitHub · Twitter