LinkedIn profile API: how to get a full profile in 2026

By Benjamin · Founder of Lempile · Updated
Checked against the official sources listed at the end.

LinkedIn's official Profile API gives most apps only the signed-in member's own name, photo and headline; other members' full profiles are for partners LinkedIn approves. To get a full profile, with experience, education and skills, from a profile URL, you read it through a LinkedIn account your user connects. Here is what each route returns, with code, costs and limits.

Table of contents
  1. Key takeaways
  2. Does LinkedIn have a profile API?
  3. Which route fits your product?
  4. How do I get a full LinkedIn profile through an API?
  5. Can I look up a LinkedIn profile from its URL?
  6. How do I call it from JavaScript or Python?
  7. How much does a profile cost, and how many can I read?
  8. What should I plan for?
  9. Frequently asked questions
  10. Official sources checked

Key takeaways

  • Official API: restricted to developers LinkedIn approves. By default it returns the Lite fields (name and photo), and only for the member who signed in to your app.
  • Storage rule: LinkedIn lets you store Profile API data only for the signed-in member, with their permission, never for other members.
  • Full profiles: an account-based API reads a profile as your user would see it, with experience, education, skills and more in one call, looked up by its URL if you like.
  • Volume: through Lempile, about 500 profiles a day per connected account without sections. It's for enriching leads as they come in, not for building a database.

Does LinkedIn have a profile API?

Yes, but not one most developers can use for other people's profiles. LinkedIn's Profile API returns a member's profile, subject to their privacy settings, and its documentation opens with the catch: it is restricted to developers LinkedIn approves. What you can read then depends on the permission you hold.

Swipe the table sideways to see every column →

PermissionReturnsFor
r_liteprofileName and photoThe signed-in member
r_basicprofileName, photo, headline and vanity name (their profile URL)The signed-in member
More fields, other membersFurther profile fieldsSelect partners only

The signed-in member's profile comes from GET /v2/me. Another member's comes from GET /v2/people/(id:{person ID}), and four rules shape what you can build on it:

  • You need the member's Person ID, which only certain limited-access APIs return.
  • A Person ID only works in the app that received it: shared with another app, it doesn't work.
  • The API returns nothing for members who limited their Off-LinkedIn Visibility.
  • You may store profile data only for the signed-in member, with their permission, and never for other members.

So the official API is for signing members in and personalizing your app with their own basics. It isn't a way to read prospects', candidates' or contacts' profiles. What else LinkedIn opens, and to whom, is in Does LinkedIn have an API?

Which route fits your product?

Three routes get you profile data, and they differ on whose profiles you can read, how complete they are, and what you take on.

Swipe the table sideways to see every column →

RouteWhose profilesWhat you getThe catch
LinkedIn's official APIsThe signed-in member; others for approved partnersName, photo, headline; more fields for partnersApproval, and no storing other members' data
An account-based API (Lempile)Anyone your user's account can openThe live profile with experience, education, skills and contact info as shared with that accountEach user connects an account; reads are paced per account
Data providers and scrapersRecords about people, without an accountWhatever the provider collected, at volumeFreshness and sourcing vary; bulk collection is what LinkedIn sued Proxycurl over

If your product acts for its users (reading a lead before a message, enriching a contact they just added), the account-based route gives you the full, current profile. For the bulk-data route and its history, see Proxycurl alternatives; for company funding rounds rather than profiles, see Crunchbase alternatives.

How do I get a full LinkedIn profile through an API?

Read it through a LinkedIn account your user connects. With Lempile, one call returns the profile as that member sees it, and linkedin_sections adds the parts you ask for, such as experience, education and skills. Your user connects their account once, through a hosted link, and you pass its account_id.

Read a profile with its experience and education
curl -sS "https://direct.lempile.com/api/v1/users/bob-buyer?account_id=$ACCOUNT_ID&linkedin_sections=experience,education" \
  -H "X-API-KEY: $LEMPILE_KEY"
The answer, shortened
{
  "object": "UserProfile",
  "provider_id": "ACoAAAzyxwvutsrqponml",
  "public_identifier": "bob-buyer",
  "first_name": "Bob",
  "last_name": "Buyer",
  "headline": "Head of Sales",
  "location": "Boston, Massachusetts, United States",
  "network_distance": "FIRST_DEGREE",
  "follower_count": 973,
  "connections_count": 970,
  "work_experience": [
    { "position": "Head of Sales", "company": "Example Co",
      "start": "2/1/2024", "end": null, "current": true }
  ],
  "education": [ … ]
}

Swipe the table sideways to see every column →

SectionAdds
aboutThe summary
experienceEvery position, grouped by company, newest first
educationSchools and degrees
skillsEvery skill (skills_preview: the ones shown first)
languages, certifications, projectsEach list, with its total
volunteering_experienceVolunteering roles
recommendations_received, recommendations_givenRecommendations, with their totals
*Every section, in full

Every field LinkedIn has no value for is left out, dates come as month/day/year as in Unipile's API, and a current position has "end": null. The full list is in the profiles docs.

Can I look up a LinkedIn profile from its URL?

Yes. Pass the profile URL, URL-encoded, as provider_url, and the answer is the same profile object as above. You can also put the encoded URL in the path, or name the profile by its public identifier (bob-buyer), its provider id (ACoAA…, the id every write takes) or its urn:li:fsd_profile URN.

Look a profile up by its URL
curl -sS "https://direct.lempile.com/api/v1/users?account_id=$ACCOUNT_ID&provider_url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fbob-buyer%2F" \
  -H "X-API-KEY: $LEMPILE_KEY"

A profile carries an email only when the member shares it with the reading account. To find a work email from a profile URL, see Email finder API: 11 options compared, Lempile's Email Finder included.

No URL, only a name and a company? Search for the person first. People search API: 10 options compared covers LinkedIn's own search through a connected account and nine other APIs, with what each one returns and any price it publishes.

How do I call it from JavaScript or Python?

It's a plain HTTPS GET with your key in the X-API-KEY header, so any HTTP client works. Keep the key on your server, never in a browser.

JavaScript (Node 18+)
const params = new URLSearchParams({
  account_id: process.env.ACCOUNT_ID,
  linkedin_sections: "experience,education,skills",
});
const res = await fetch(
  `https://direct.lempile.com/api/v1/users/bob-buyer?${params}`,
  { headers: { "X-API-KEY": process.env.LEMPILE_KEY } },
);
const profile = await res.json();
console.log(profile.first_name, profile.headline, profile.work_experience);
Python (requests)
import os
import requests

res = requests.get(
    "https://direct.lempile.com/api/v1/users/bob-buyer",
    params={
        "account_id": os.environ["ACCOUNT_ID"],
        "linkedin_sections": "experience,education,skills",
    },
    headers={"X-API-KEY": os.environ["LEMPILE_KEY"]},
    timeout=60,
)
profile = res.json()
print(profile["first_name"], profile["headline"])

How much does a profile cost, and how many can I read?

A profile takes three LinkedIn calls: the top card, the second card (followers, connections, shared connections) and the contact info. Sections take one to five more, so ask only for the ones you use. Each connected account makes at most 1,500 LinkedIn calls in any 24 hours, one at a time, 1.5 to 3 seconds apart: about 500 profiles a day without sections, fewer with them. Someone the account talked to in the last half hour is answered from the conversation, with no LinkedIn call.

Lempile is priced per connected account, not per call: see pricing, and LinkedIn API rate limits for how the limits compare with LinkedIn's own.

What should I plan for?

  • It's one member's view. Contact details come back only as the member shares them with the reading account, and network distance is measured from that account.
  • It's not a database. Profiles are read one by one at a human pace, as the member could open them. For why bulk extraction is a different matter, see LinkedIn scrapers.
  • LinkedIn's User Agreement still applies. It restricts automated access, so the member who connects an account takes on the risk of a restriction.
  • Profiles are personal data. Keep only what your product needs, for as long as it needs it.

Frequently asked questions

Does LinkedIn have a profile API?
Yes, but LinkedIn restricts its Profile API to developers it approves. Sign In with LinkedIn, open to every developer, returns only the signed-in member's own basics, and LinkedIn's rules forbid storing profile data about other members.
Is the LinkedIn profile API free?
LinkedIn's Profile API documentation lists no price: access goes to developers LinkedIn approves, under their agreement with LinkedIn. Account-based APIs charge instead: Lempile is priced per connected account, from €49 a month for up to 10 accounts, with a 7-day free trial and no card needed.
What is the difference between r_liteprofile and r_basicprofile?
r_liteprofile returns the signed-in member's name and photo. r_basicprofile adds their headline and vanity name, the part of their profile URL after /in/. Both cover only the member who signed in to your app; more fields and other members need permissions LinkedIn grants to select partners.
How do I get someone's full name from their LinkedIn URL?
Read the profile and use first_name and last_name. The part after /in/ in a profile URL is the public identifier the member chose, so it isn't always their name. A profile read through Lempile accepts the URL itself.
Can I get an email address from a LinkedIn profile?
Only what the member shares with the account reading the profile: Lempile returns contact_info (emails, phones and so on) as LinkedIn shows it to that account, and nothing more. LinkedIn's official API only gives the signed-in member's own email.
How many profiles can I read a day?
Through Lempile, each connected account makes at most 1,500 LinkedIn calls in 24 hours. A profile takes three calls, and sections one to five more, so an account reads up to about 500 profiles a day without sections, fewer with them.
Does it return Sales Navigator or Recruiter data?
Not through Lempile, which reads LinkedIn's classic profile: a Recruiter or Sales Navigator profile request answers 501. LinkedIn opens Sales Navigator data only to its own partners; the Sales Navigator API guide on this site covers who gets access.

Official sources checked

Read on 2 December 2026.

Read LinkedIn profiles from your product.

Lempile reads profiles, with experience, education, skills and more, through accounts your users connect, at a human pace. Unipile-compatible. 7-day free trial, no card needed.

Try every endpoint for 7 days. No card needed.