LINKEDIN PROFILE API

What Is a LinkedIn Profile API? How It Works

A LinkedIn profile API turns a public LinkedIn profile URL into JSON: name, headline, roles, education, followers and posts. How it works and what it returns.

By Surender Kumar, GTM Engineer, ProfileHunt · Published · Updated · 5 min read

Also in: Español · Português (Brasil) · Deutsch · Français · 简体中文 · हिन्दी · العربية · বাংলা · Русский · Bahasa Indonesia · اردو · 日本語 · मराठी · Tiếng Việt · తెలుగు · Hausa · Türkçe · தமிழ் · 한국어

What Is a LinkedIn Profile API? How It Works

A LinkedIn profile API is a web API that takes a LinkedIn profile URL and returns that person's public profile as structured JSON: name, headline, location, current and past roles, education, follower count and recent posts. You send one HTTP request with the URL and get back fields your code, CRM or spreadsheet can use directly, instead of copying them from a browser by hand.

Key takeaways

  • Input is a URL, output is JSON. You send https://www.linkedin.com/in/<name> and get a fixed set of keys back.
  • It returns the public view. You get what LinkedIn shows a logged-out visitor, not what a signed-in member or Sales Navigator user sees.
  • No LinkedIn login is involved. A profile API like ProfileHunt does not use your LinkedIn account, cookie or seat.
  • Not found should cost nothing. A private, deleted or mistyped profile comes back as a status, and good APIs don't charge for it.

What a LinkedIn profile API returns

The exact fields depend on the provider. With ProfileHunt, every response has the same keys, and a value the profile doesn't show publicly is null (or [] for a list). That means your code never has to check whether a key exists.

GroupFields
Identitypublic_id, profile_url, full_name, first_name, last_name, photo_url
Summaryheadline, about, location, country
Careerexperience (company, title, location, dates), education (school, dates)
Reachfollowers, connections, creator, badges, languages
Activitylast_post_at, recent_posts, recent_articles, recent_reactions
Metadatascraped_at, the time the profile was read

Two details trip people up. First, connections stops at 500, because LinkedIn shows logged-out visitors "500+" above that. Second, job titles are only shown for current roles in the public view, so past roles come back with a company and dates but title: null. The profile endpoint reference lists every field with its type.

What you will not get: email addresses and phone numbers. LinkedIn does not show contact details to logged-out visitors, so a public profile API can't return them.

A request going to the API and a response coming back

How a request works

A single lookup is one POST with your API key and the profile URL:

curl -X POST https://api.profilehunt.dev/v1/profile \
  -H "Authorization: Bearer $PROFILEHUNT_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "url": "https://www.linkedin.com/in/williamhgates" }'

The request waits while the profile is read, usually a few seconds, then answers HTTP 200 with one of three statuses:

statusWhat it meansCharged
okThe profile was found; profile holds the JSON.1 credit
goneNo public profile at this URL: private, deleted, never existed, or removed at the member's request.No
unavailableLinkedIn didn't serve the profile just then. Try again later.No

The URL can be written loosely. With or without https:// and www., with a country subdomain such as uk.linkedin.com, a trailing slash or a query string, it all works. Company pages and bare usernames are refused with 422 invalid_url and are not charged. The quickstart has the same call in Python and Node.js.

Public profile view on one side, a locked signed-in view on the other

Public view vs. signed-in view

This is the most important thing to understand before you choose a LinkedIn data source. A profile looks different depending on who is looking:

  • Logged out (what a public profile API returns): name, headline, location, about, current roles with titles, past companies, education, follower count, recent public posts. Members can hide parts of this in their public profile settings.
  • Signed in as a member: more detail, such as full role descriptions and titles for past roles, depending on the member's settings and your connection to them.
  • Sales Navigator or Recruiter: LinkedIn's own paid tools, used inside LinkedIn under its terms.

Tools that show you the signed-in view usually do it by running your own LinkedIn account in an automated way. That puts your account at risk and ties the data to one seat. A public profile API avoids that by reading only what anyone can see without signing in.

What people use it for

Most uses fall into a few groups. Each has its own guide:

  • Lead and CRM enrichment: fill in title, company and location for leads that only have a LinkedIn URL. See lead enrichment.
  • Recruiting: add current role, past companies and education to candidate records. See recruiting.
  • Outreach timing and personalization: last_post_at and recent_posts show who is active and what they talk about. See outreach timing.
  • Job change alerts: compare experience over time to see when someone moves company. See job change alerts.
  • AI agents and automations: call the API from Clay, n8n, Make, Zapier or your own AI agent.

For lists of more than a handful of profiles, use the batch API instead of a loop of single calls.

What it costs

Pricing models vary a lot between providers: monthly subscriptions, per-request charges whether or not the profile exists, or pay-per-result. ProfileHunt is pay-per-result with prepaid credits: $1 buys 2,000 credits, one credit is one profile found, and profiles that come back gone or unavailable are refunded. That works out to $0.50 per 1,000 profiles. Credits don't expire and there is no subscription. New workspaces get 100 free credits with a work email. For a provider-by-provider comparison and worked budgets, see LinkedIn profile API pricing.

Using the data responsibly

Public does not mean free of rules. If you store or act on LinkedIn profile data, the privacy laws that apply to you still apply, such as the GDPR in the EU or India's DPDP Act. In practice that means having a lawful reason to process the data, keeping only what you need, and honoring requests to delete it. LinkedIn members can also ask ProfileHunt to stop returning their profile; after that, the API answers gone for it and doesn't charge.

Frequently asked questions

Is there an official LinkedIn API for profile data?

LinkedIn's own APIs give approved partners access to data of members who have signed in to that partner's app and granted permission. They don't let you look up an arbitrary public profile by URL. Third-party profile APIs like ProfileHunt fill that gap by reading the public view.

Do I need a LinkedIn account to use a profile API?

Not with ProfileHunt. You sign up with an email, create an API key, and send requests. No LinkedIn login, cookie or Sales Navigator seat is used.

How fresh is the data?

ProfileHunt reads the profile live on every call; nothing is cached. The scraped_at field tells you exactly when it was read.

Can a LinkedIn profile API return email addresses?

No. LinkedIn doesn't show email addresses or phone numbers on the public view of a profile, so an API that reads the public view can't return them.

What happens if the profile doesn't exist?

You get HTTP 200 with status: "gone" and profile: null, and no credit is used.

Get API key 100 free credits with a work email