linkedin-api
LinkedIn API for Python
What it is and what it does
linkedin-api is a Python wrapper around LinkedIn's internal Voyager API endpoints, allowing you to programmatically search profiles, retrieve contact information, manage connections, send and read messages, and interact with job postings and posts—all without needing LinkedIn's official developer API access. It works by authenticating with a valid LinkedIn user account and replicating the HTTP requests the LinkedIn website makes internally.
The library uses requests, beautifulsoup4, and lxml to handle HTTP communication and HTML parsing. It requires Python 3.10 or later. The project explicitly warns that it is not officially supported by LinkedIn and may violate LinkedIn's Terms of Service, so use carries legal and account-risk considerations. Maintenance is dormant as of the fact sheet date, meaning no active development or support is occurring.
Use it for:
- Bulk extract profile data and contact information for recruitment or sales prospecting workflows
- Automate connection requests and message sending for outreach campaigns
- Search and monitor job postings on LinkedIn programmatically for job aggregation or alerting
- Build internal tools to retrieve and analyze your own network and connection data
- Integrate LinkedIn profile lookups into third-party applications without official API approval
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides direct HTTP access to LinkedIn's internal Voyager API for profile search, messaging, job discovery, and connection management without requiring official API credentials.
No—install only if you accept significant risk. The library is dormant (645 days since last release), explicitly violates LinkedIn's Terms of Service, and may trigger account challenges or bans. No active maintenance means compatibility breaks from LinkedIn's side will go unfixed. Use only for low-stakes personal automation or when official API access is genuinely unavailable and the account risk is acceptable.
Install
linkedin-api on PyPI
pip
pip install linkedin-apiuv
uv add linkedin-apipoetry
poetry add linkedin-apiInstalling linkedin-api
Before you install
Low install friction with three common dependencies (requests, beautifulsoup4, lxml). Maintenance is dormant—last release was 645 days ago—so expect no active bug fixes or feature updates.
License in practice
MIT license permits commercial and private use with minimal restrictions, requiring only license and copyright notice retention.
Quickstart
pip install linkedin-api
from linkedin_api import Linkedin
api = Linkedin('user@example.com', 'password')
profile = api.get_profile('profile-slug')
connections = api.get_profile_connections('profile-id')
Requires Python >= 3.10. LinkedIn may challenge authentication with 2FA, rate-limiting, or IP-based verification; the library does not handle Challenge URLs and will fail in those cases.
Verify before relying
- Whether LinkedIn's Terms of Service enforcement against this library has changed since last release
- Current rate-limit thresholds and whether Challenge detection has been improved
- Compatibility with recent LinkedIn UI or authentication changes not yet reflected in the codebase
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — requests, beautifulsoup4, lxml |
| Maintenance | dormant — 645 days since the last release |
| First released | |
| Downloads | 105,287/month — #12,709 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: linkedin_api-2.3.1-py3-none-any.whl
Keywords: linkedin, api, automation, scraper, bot, data, sdk, ai, integration, profiles, network, company
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
linkedin-api-clientProvides a Python client for LinkedIn's Rest.li…
unclear · top 5,000 on PyPI
proxycurl-pyA Python client for the Proxycurl API that…
unclear · top 15,000 on PyPI
python-jobspyScrapes job postings from LinkedIn, Indeed,…
unclear · top 15,000 on PyPI
scrapinghubA Python client library for communicating with…
permissive · top 15,000 on PyPI
klaviyo-apiPython client library for the Klaviyo marketing…
permissive · top 15,000 on PyPI
spider-clientPython SDK for the Spider Cloud API that…
permissive · top 15,000 on PyPI
klaviyoA deprecated client library for integrating…
permissive · top 15,000 on PyPI
firecrawlA Python SDK for web scraping, crawling,…
permissive · top 5,000 on PyPI
instaloaderDownloads public and private Instagram…
permissive · top 15,000 on PyPI
wapi-pythonA Python client library for accessing Volue…
unclear · top 15,000 on PyPI