linkedin-cli
v1.0.0
Published
LinkedIn data extraction CLI - Fetch profiles, companies, jobs, and posts. Professional networking OSINT tool.
Maintainers
Readme
linkedin-cli
LinkedIn data extraction CLI. Fetch profiles, companies, jobs, and posts.
Installation
npm install -g linkedin-cliSetup
LinkedIn requires authentication. Export your session cookie:
linkedin-cli auth
# Follow prompts to enter cookie from browserOr set environment variable:
export LINKEDIN_COOKIE="your-li_at-cookie-value"Usage
# Profile 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 20Commands
profile <username>
Get LinkedIn profile data.
linkedin-cli profile satyanadella
linkedin-cli profile username --experience
linkedin-cli profile username --education
linkedin-cli profile username --fullOptions:
--experience- Include work experience--education- Include education history--skills- Include skills & endorsements--full- Include everything
company <name>
Get company information.
linkedin-cli company microsoft
linkedin-cli company google --employees
linkedin-cli company startup-name --jobsOptions:
--employees- List employees (limited)--jobs- Show open positions--about- Company details and stats
jobs <query>
Search for jobs.
linkedin-cli jobs "react developer"
linkedin-cli jobs "data scientist" --location "New York"
linkedin-cli jobs "devops" --remote
linkedin-cli jobs "product manager" --experience entryOptions:
--location <place>- Filter by location--remote- Remote jobs only--experience <level>- entry, associate, mid, senior, director--posted <time>- Past 24h, week, month--limit <n>- Number of results
posts <username>
Get user's posts and activity.
linkedin-cli posts satyanadella
linkedin-cli posts username --limit 50
linkedin-cli posts username --reactionsOptions:
--limit <n>- Number of posts (default: 20)--reactions- Include reaction counts
search <query>
Search people.
linkedin-cli search "software engineer"
linkedin-cli search "CTO" --company google
linkedin-cli search "recruiter" --location "Austin"Options:
--company <name>- Filter by company--location <place>- Filter by location--limit <n>- Number of results
Output Formats
# JSON (default)
linkedin-cli profile username
# Table view
linkedin-cli jobs "developer" -o table
# Save to file
linkedin-cli company microsoft --save company.jsonExample Output
{
"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:
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
