skillfed

linkedin-api-client

Official Python client library for LinkedIn APIs

linkedin-api-client v0.3.0 2.2M downloads/30d#3,247 on PyPI267
License unclear Proprietary DORMANT released

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-client

uv

uv add linkedin-api-client

poetry

poetry add linkedin-api-client

Installing 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

Development Status :: 4 - BetaLicense :: Other/Proprietary LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

linkedin api clientrest.li python clientlinkedin oauth authenticationlinkedin api wrapperlinkedin rest api pythonlinkedin developer integration
oauth2rest-apilinkedin

More WWW/HTTP packages