linkedin-api-client
Official Python client library for LinkedIn APIs
What it is and what it does
This is the official Python client library for LinkedIn APIs, built on top of the requests HTTP library. It abstracts away the complexity of LinkedIn's Rest.li protocol by handling request formatting, proper headers, parameter encoding, and OAuth2 token management (both 2-legged and 3-legged flows). The library provides methods for standard REST operations (get, batch_get, finder, create, update, delete, etc.) and utilities for token generation and inspection.
The package is currently in beta and dormant—the last release was 2023-06-29 and the last commit 2024-04-21. It supports Python 3.7 through 3.11 and has no known security vulnerabilities. The library handles URL encoding of complex query parameters and supports versioned API calls.
Use it for:
- Fetch LinkedIn member profiles using 3-legged OAuth tokens with the r_liteprofile scope.
- Search and manage LinkedIn ad accounts via the Advertising APIs with complex query criteria.
- Implement Sign In With LinkedIn authentication flows by exchanging authorization codes for access tokens.
- Build batch operations to create, update, or delete multiple LinkedIn resources in a single call.
- Integrate LinkedIn data into Python applications without manually constructing Rest.li protocol requests.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python client for LinkedIn's Rest.li APIs, handling request formatting, OAuth2 authentication, and response parsing to simplify integration with LinkedIn's API endpoints.
Yes, if you are building a LinkedIn integration and need official API support. The low install friction and single dependency make it easy to add. However, the beta status, dormant maintenance (no updates since 2024-04-21), and proprietary license with unclear terms warrant caution in production. Verify that the current API surface matches your use case and review the license before deploying commercially.
Install
linkedin-api-client on PyPI
pip
pip install linkedin-api-clientuv
uv add linkedin-api-clientpoetry
poetry add linkedin-api-clientInstalling linkedin-api-client
Before you install
Low install friction with a single dependency (requests). Maintenance is dormant—last release was 2023-06-29 and last commit 2024-04-21—but the repository remains active and the package supports current Python versions (3.7–3.11).
License in practice
Licensed as Proprietary with unclear treatment. No SPDX identifier is available, so the exact terms and redistribution rights are not standardized; review the repository directly before use in commercial or open-source contexts.
Quickstart
pip install linkedin-api-client
from linkedin_api_client import RestliClient
restli_client = RestliClient()
response = restli_client.get(
resource_path="/me",
access_token="YOUR_3_LEGGED_ACCESS_TOKEN"
)
print(response.entity)
Requires a valid 3-legged or 2-legged OAuth2 access token from the LinkedIn Developer Portal; the library does not handle token provisioning from scratch.
Verify before relying
- Whether the beta status and lack of recent updates affect API compatibility with current LinkedIn endpoints.
- What specific proprietary license terms apply and whether they restrict commercial use or redistribution.
Package facts
| License | Proprietary (unclear) |
| Python support | supports the current Python release (>=3.7,<4.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | dormant — 1,142 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,154,420/month — #3,247 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: linkedin_api_client-0.3.0-py3-none-any.whl
Keywords: linkedin, api, rest.li
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-apiProvides direct HTTP access to LinkedIn's…
permissive · top 15,000 on PyPI
requests-oauthlibAdds OAuth 1 and OAuth 2 authentication support…
permissive · top 1,000 on PyPI
google-auth-oauthlibIntegrates oauthlib with google-auth to handle…
permissive · top 1,000 on PyPI
proxycurl-pyA Python client for the Proxycurl API that…
unclear · top 15,000 on PyPI
python-http-clientProvides a simplified Python interface for…
permissive · top 1,000 on PyPI
xdkA Python SDK for interacting with the X API,…
permissive · top 15,000 on PyPI
dynamics365crm-pythonProvides a Python client for interacting with…
permissive · top 15,000 on PyPI
office365-rest-python-clientPython client library for Microsoft 365 and…
permissive · top 5,000 on PyPI
oauth2-clientHandles OAuth2 authentication flows…
unclear · top 15,000 on PyPI
oauth2clientoauth2client is a deprecated OAuth 2.0 client…
permissive · top 1,000 on PyPI