LinkedIn API

Social / OAuth Advanced HTTPS
Varies by plan (check documentation)

Overview

The LinkedIn API enables you to integrate LinkedIn Login, share content, and access professional profile data for authenticated users. It is built on OAuth 2.0 and is gated — most advanced endpoints require applying for LinkedIn Partner Program access. Beginners can use the Sign In with LinkedIn and basic profile endpoints without special approval.

💡

Beginner Tip

Start with the Sign In with LinkedIn flow using OpenID Connect to authenticate users — it gives you basic profile info like name, email, and photo without needing partner access. Most other LinkedIn API features require approval from LinkedIn partner program.

Available Data

repository name and description
star and fork counts
contributor data
issues and pull requests
commit history

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from LinkedIn",
    "description": "The foundation of all digital integrations with LinkedIn",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

sub Unique LinkedIn user ID as an OpenID Connect subject identifier
name The full name of the user on LinkedIn
email The primary email address of the user; requires the email scope
picture URL of the user LinkedIn profile photo
locale The preferred locale of the user with country and language fields

Implementation Example

const url = "https://docs.microsoft.com/en-us/linkedin/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "Authorization": "Bearer YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

401 Unauthorized: invalid token Access token has expired; LinkedIn tokens expire after 60 days
LinkedIn does not support refresh tokens by default — direct the user to re-authenticate to get a new access token
403 Insufficient permissions The requested endpoint requires a scope not granted or requires partner access
Check which scopes are available to your app tier; most advanced endpoints require LinkedIn Partner Program approval
400: Invalid redirect_uri The redirect URI in your OAuth request does not match what is registered in your LinkedIn app
Add the exact redirect URI including http or https and any trailing slashes to the Authorized redirect URLs list in your LinkedIn Developer app settings

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 10/20
🔒 Security 15/15
🛠 Developer XP 3/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth OAuth
HTTPS REQUIRED
CORS UNKNOWN
Category Social
Difficulty Advanced
Verified: 2026-04-07

Similar APIs

View All →