A LinkedIn profile URL API returns structured profile data by reading the public profile page at that URL and copying each visible section into a fixed JSON key: the name and photo into identity fields, the headline and About into text fields, each role into an experience item, follower and connection counts into numbers, and recent activity into lists with timestamps. What isn't visible to a logged-out visitor isn't carried over, and comes back as null or [] instead of a missing key.
This post follows that transformation section by section. For the concept of a profile API itself, start with what a LinkedIn profile API is.
Key takeaways
- The URL becomes the identity.
public_idis the name after/in/in the URL you sent, andprofile_urlis that name on the canonicalhttps://www.linkedin.com/in/form. - Each page section has its own key. The top of the profile, About, Experience, Education, the follower count and Activity each map to known fields.
- Values are normalized, not interpreted. Dates stay as LinkedIn shows them, counts become numbers, timestamps become ISO 8601 UTC.
- Hidden means
null. Anything the public view doesn't show isnullor[], never a guessed value and never a missing key.
From URL to identity
The transformation starts before the profile is read. The API takes the URL you send and reduces it to the profile name. These all point at the same profile and are accepted:
https://www.linkedin.com/in/williamhgates
linkedin.com/in/williamhgates/
https://uk.linkedin.com/in/williamhgates?trk=share
From any of them, the response carries "public_id": "williamhgates" and "profile_url": "https://www.linkedin.com/in/williamhgates". A name with non-Latin characters is decoded, so you get the readable name rather than percent-escapes. Company pages, posts and bare usernames are not profile URLs; they get 422 invalid_url and are not charged.
Because public_id comes from your URL, it is the key you sent, not an ID LinkedIn assigns internally. That matters later, when a member changes their vanity URL.

Which part of the profile page becomes which key
This is the map from what a logged-out visitor sees on the page to where it lands in the JSON:
| On the public profile page | JSON key(s) | How it's carried over |
|---|---|---|
| Name at the top | full_name, first_name, last_name | As shown, plus the split into first and last |
| Profile photo | photo_url | A link to the image on LinkedIn's servers |
| Headline under the name | headline | As written |
| Location line | location, country | Location as shown; country as a two-letter code such as US |
| About section | about | The full text the public view shows |
| Experience section | experience[] | One item per role, in the order the page lists them |
| Education section | education[] | One item per school |
| Follower and connection counts | followers, connections | Numbers; "500+" becomes 500 |
| Creator and Top Voice badges | creator, badges | creator is true when the Creator badge shows; badges lists them all |
| Languages section | languages | A list of strings |
| Posts in Activity | recent_posts[], last_post_at | URL, time, text, likes; reshares included |
| Articles | recent_articles[] | URL, headline, cover image, time, likes |
| Reactions in Activity | recent_reactions[], last_reaction_at | What they liked or reacted to, with exact times |
| Comments in Activity | recent_comments[], last_comment_at | What they wrote, with an approximate time |
| (Computed) | last_active_at | The newest of the post, reaction and comment times |
| (Added by the API) | scraped_at | When the profile was read |
Inside experience[], each role carries company, company_url, title, location, description, start_date and end_date. Inside education[], each school carries school, school_url, start_date and end_date. The full types are in the LinkedIn profile JSON schema; this post is about where each one comes from.
An annotated example
Here is a shortened real response for williamhgates, with comments showing where each value came from. Comments aren't valid JSON; the API returns plain JSON without them.
{
"status": "ok", // found; 1 credit
"profile": {
"public_id": "williamhgates", // from the URL you sent
"full_name": "Bill Gates", // name at the top
"headline": "Chair, Gates Foundation and Founder, Breakthrough Energy",
"location": "Seattle, Washington, United States", // location line, as shown
"country": "US", // same line, as an ISO code
"experience": [
{
"company": "Gates Foundation",
"title": "Co-chair", // current role, so the title is shown
"description": null, // hidden from logged-out visitors
"start_date": "2000", // year only, as LinkedIn shows it
"end_date": null // null = current role
}
],
"education": [
{ "school": "Harvard University", "start_date": "1973", "end_date": "1975" }
],
"followers": 40725248, // follower count, as a number
"connections": 8, // capped at 500 in the public view
"creator": true,
"badges": ["Creator", "Top Voice"],
"languages": [], // section not shown: empty list
"last_post_at": "2026-10-12T20:10:59.000Z", // newest post or article, UTC
"recent_posts": [
{
"posted_at": "2026-10-11T03:45:31.389Z",
"text": "Tackling malnutrition requires more than a steady supply of nutritious food. Access to healthcare, clean water, and safe sanitation are just…",
"likes": 1364 // text cut short, ends in "…"
}
],
"scraped_at": "2026-10-13T09:00:00.000Z" // added: when it was read
}
}
Three normalization rules run through the example:
- Dates of roles and schools stay as LinkedIn shows them:
"2014"or"2014-02". The API does not invent a day or month that isn't on the page. - Times of posts, reactions, articles and the read itself are ISO 8601 in UTC. Comment times are the exception: LinkedIn shows only an age such as
4w, socommented_atis that age counted back fromscraped_at, and the original age is kept inage. - Counts become numbers.
followersandconnectionsare integers, not strings like "40M" or "500+".
What is not carried over
A profile URL API that reads the public view returns what that view shows. These fields sit outside it, so plan around them:
| Not in the response | Why |
|---|---|
| Email address, phone number | LinkedIn doesn't show contact details to logged-out visitors |
| Titles of past roles | The public view shows past companies and dates, but not titles; title is set for current roles only |
| Connection counts above 500 | Logged-out visitors see "500+", so 500 means 500 or more |
| Most role descriptions | Usually hidden from logged-out visitors, so description is often null |
| Sections the member hid | Members choose what their public profile shows; hidden sections come back null or [] |
| Skills, recommendations, mutual connections | Not part of the response schema |
None of this is an error. A null is the API reporting accurately that the public page doesn't show the value.

What Most Guides Get Wrong About Profile URL to JSON
They describe the output as "the LinkedIn profile". It is the public view of the profile: what a logged-out visitor sees. A signed-in member, or a Sales Navigator user, sees more. Mixing the two leads to specs that promise fields no public source can deliver.
They treat public_id as permanent. It is the name from the URL you sent. If the member later changes their vanity URL, that name can stop resolving, and a lookup by the old URL returns gone.
They parse dates as full dates. "2014" parsed as 2014-01-01 creates a precision the page never had. Keep the original string, and add a separate sortable column if you need one; parsing profile responses in JavaScript and in Python show how.
They read connections as network size. For anyone above 500, it is a floor. Use followers for reach.
Myth vs Reality
| Myth | Reality |
|---|---|
| "The API scrapes whatever is in the page HTML, so the output changes with the page." | The output is a fixed schema. Every key is present on every response, whatever the page looks like. |
| "A missing value means the lookup failed." | A failed lookup has a non-ok status. A null inside an ok profile means the public view doesn't show that value. |
"last_post_at tells you when someone was last active." | It covers posts and articles only. last_active_at also counts reactions and comments, so it catches people who never post. |
| "Country comes from guessing the location text." | country is a two-letter code for the location the profile shows, and null when there is none. |
| "Data from a URL API is a stored copy." | ProfileHunt reads the profile live on each call; scraped_at is the moment of that read. |
Advanced: Reading Change Between Two Snapshots
Because every response has the same keys, two reads of the same URL can be compared field by field. That turns the transformation into a change signal:
- Role changes. Compare the set of
experienceitems withend_date: null. A new company in that set, or an old one gaining anend_date, is a job change. Compare oncompany_urlwhere present; company names can be written differently over time. - Headline changes. A new
headlinewith an unchangedexperiencecan mean a new focus or a new title inside the same company. - Activity shifts. A
last_active_atthat moved from months ago to this week is a timing signal; one that stopped moving is the opposite. - Vanity URL drift. If an old URL starts returning
gonewhile the person is clearly still on LinkedIn, the member may have changed their profile name. Re-find the new URL before writing the record off. - Truncated text.
recent_posts[].textcan be cut short with "…". Diff onurlandposted_at, not on the text.
Where ProfileHunt Fits
ProfileHunt is a LinkedIn profile API built on exactly this transformation: one public profile URL in, the same structured JSON out, with every key present every time. It reads live on every call, never uses a LinkedIn login, and charges one credit only when a profile is found ($0.50 per 1,000 profiles). Profiles that come back gone or unavailable are not charged.
Getting Started
Sign in at profilehunt.dev/login for 100 free credits with a work email, then send any profile URL. The profile endpoint reference lists every field with its type. To build the full request, parse and store loop, follow the developer guide to profile JSON. For what a profile API is in general, see what a LinkedIn profile API is.
Frequently asked questions
How does a LinkedIn profile URL get turned into JSON?
The API reads the public profile at that URL and copies each visible section into a fixed key: name and photo into identity fields, roles into experience, schools into education, counts into numbers and recent activity into lists with timestamps. Anything not shown publicly comes back as null or [].
Why is the job title null for some roles in LinkedIn profile JSON?
LinkedIn's public view shows titles only for current roles. Past roles appear with the company and dates, so their title is null.
Does a LinkedIn URL to JSON API return the email address?
No. LinkedIn doesn't show email addresses or phone numbers to logged-out visitors, so an API that reads the public view can't return them.
What LinkedIn URL formats can I send to a profile API?
Any linkedin.com/in/ profile URL, with or without https:// and www., with a country subdomain such as uk.linkedin.com, and with a trailing slash or query string. Company pages and bare usernames get 422 invalid_url and aren't charged.
Why does connections say 500 when the person has more?
Logged-out visitors see "500+" for anyone above 500 connections, so the API returns 500, meaning 500 or more. Use followers for reach.


