An HTTP request for public LinkedIn profile enrichment is one POST that sends a contact's LinkedIn URL and gets the public profile back as JSON, which you then map into empty fields of that contact record. This example follows one record all the way: what it looks like before, the request, the response, the field-by-field mapping, and the record after. The point is the mapping, because that is where enrichment goes right or wrong.
For how a profile API works in general, see what a LinkedIn profile API is.
Key takeaways
- One URL in, many fields out. A contact that only has a LinkedIn URL gains name, current title and company, location, country, reach and activity from a single request.
- Map only on
status: "ok".goneandunavailableanswers carry no profile and cost nothing; they change the record's status, not its data. - Current role =
end_date: null. The public view has titles for current roles only, and a person can hold several at once. - Store
scraped_at. It records when the profile was read, which is the date your enriched fields are true as of.
The enrichment request, step by step
This walk-through is one real contact and one real response. The response values come from a ProfileHunt read of the sample profile.
Step 1: Start from the record you have
Enrichment starts from a thin record. Here is a contact as it sits in a CRM or database after someone pasted a LinkedIn URL into a form:
{
"id": "contact_1042",
"linkedin_url": "linkedin.com/in/williamhgates/",
"first_name": null,
"last_name": null,
"job_title": null,
"company": null,
"location": null,
"country": null,
"linkedin_followers": null,
"last_linkedin_post_at": null,
"enrichment_status": null,
"enriched_at": null
}
The URL has no https://, no www. and a trailing slash. You don't need to clean that up first; the API accepts it as written.
Step 2: Send the request
Send the URL from the record as the url field:
curl -X POST https://api.profilehunt.dev/v1/profile \
-H "Authorization: Bearer $PROFILEHUNT_KEY" \
-H "Content-Type: application/json" \
-d '{ "url": "linkedin.com/in/williamhgates/" }'
The request waits while the profile is read, usually a few seconds. The settings for Postman, n8n, Make and other clients are in how to connect a LinkedIn profile API to any HTTP client.
Step 3: Read the response
The answer is HTTP 200. Trimmed to the keys this record uses (the real response also has about, photo_url, education, recent_posts, recent_articles and more):
{
"status": "ok",
"profile": {
"public_id": "williamhgates",
"profile_url": "https://www.linkedin.com/in/williamhgates",
"full_name": "Bill Gates",
"first_name": "Bill",
"last_name": "Gates",
"headline": "Chair, Gates Foundation and Founder, Breakthrough Energy",
"location": "Seattle, Washington, United States",
"country": "US",
"experience": [
{ "company": "Gates Foundation", "title": "Co-chair", "start_date": "2000", "end_date": null },
{ "company": "Breakthrough Energy", "title": "Founder", "start_date": "2015", "end_date": null },
{ "company": "Microsoft", "title": "Co-founder", "start_date": "1975", "end_date": null }
],
"followers": 40725248,
"connections": 8,
"last_post_at": "2026-10-12T20:10:59.000Z",
"scraped_at": "2026-10-13T09:00:00.000Z"
}
}
Each experience item also has company_url, location and description, left out here. Every key in the full response is always present, with null or [] when the profile doesn't show it. The JSON schema guide covers every field. For the raw HTTP exchange line by line, with response headers, see the example HTTP request for retrieving a LinkedIn profile as JSON.

Step 4: Map the fields
Mapping is a set of small, explicit rules. This table is the one used for the record above:
| Record field | Source in the response | Rule |
|---|---|---|
first_name, last_name | profile.first_name, profile.last_name | Copy. |
job_title | title of the first experience item with end_date: null | Current roles only; past roles have no title in the public view. |
company | company of that same item | Take title and company from one item so they always match. |
location | profile.location | Copy as shown on the profile. |
country | profile.country | Two-letter code, ready for a country picklist. |
linkedin_followers | profile.followers | A number. Use this for reach, not connections. |
last_linkedin_post_at | profile.last_post_at | ISO 8601 UTC, or null if no recent posts. |
linkedin_url | profile.profile_url | Replace the loose URL with the clean one. |
enrichment_status | status | ok, gone or unavailable. |
enriched_at | profile.scraped_at | When the profile was read. |
In code, the same rules fit in one function. It only touches profile fields when the status is ok:
function enrich(contact, { status, profile }) {
if (status !== "ok") return { ...contact, enrichment_status: status };
const current = profile.experience.find(role => role.end_date === null);
return {
...contact,
linkedin_url: profile.profile_url,
first_name: profile.first_name,
last_name: profile.last_name,
job_title: current?.title ?? null,
company: current?.company ?? null,
location: profile.location,
country: profile.country,
linkedin_followers: profile.followers,
last_linkedin_post_at: profile.last_post_at,
enrichment_status: status,
enriched_at: profile.scraped_at,
};
}
Step 5: Write the record after
The same contact, after one request and one credit:
{
"id": "contact_1042",
"linkedin_url": "https://www.linkedin.com/in/williamhgates",
"first_name": "Bill",
"last_name": "Gates",
"job_title": "Co-chair",
"company": "Gates Foundation",
"location": "Seattle, Washington, United States",
"country": "US",
"linkedin_followers": 40725248,
"last_linkedin_post_at": "2026-10-12T20:10:59.000Z",
"enrichment_status": "ok",
"enriched_at": "2026-10-13T09:00:00.000Z"
}
Eleven of the twelve fields changed. The id is yours; everything else came from the public profile.
What Most Guides Get Wrong About Enrichment Requests
They treat "current job" as one field. This profile has three current roles, all with end_date: null. Picking the first listed role is a reasonable default, because experience keeps the order the profile lists roles in. If your CRM needs a different rule, such as preferring a company you already have as an account, write it down and apply it the same way every time.
They read connections as reach. The public view caps connections at 500, and this profile shows 8. followers (40,725,248 here) is the number that reflects audience.
They overwrite good data with null. A gone answer means there is no public profile at that URL any more. That is useful news about the record, but it is not a reason to erase the name and title you already have. The enrich function above only writes the status in that case; handling not-found profiles covers what to do with those records next.
Myth vs Reality
| Myth | Reality |
|---|---|
| "Enrichment adds email addresses." | A public profile API returns the public view, which has no email or phone. Keep those from your own sources. |
| "You must normalise the URL before sending it." | Loose URLs work: no scheme, no www., a country subdomain, a trailing slash or a query string. Only non-profile URLs get 422. |
| "Past job titles come back too." | Past roles return company and dates with title: null. Only current roles have titles in the public view. |
| "A failed lookup still costs a credit." | gone, unavailable, 422 and temporary errors are free. Only ok uses a credit. |
| "Enriched data stays true." | It is true as of scraped_at. People change jobs; store the date and refresh on a schedule. |

Advanced: Fill-empty versus overwrite, field by field
Once a record has been enriched once, every later enrichment has to decide which fields it may overwrite. Teams that skip this decision end up with a sales rep's careful edit replaced by a fresh API value, or with a stale title that never updates.
A policy per field works better than one global switch:
| Field type | Examples | Suggested policy |
|---|---|---|
| Identity | first_name, last_name | Fill only when empty. People edit names by hand (nicknames, accents). |
| Changes over time | job_title, company, location | Overwrite on ok, and keep the previous value in a history table so job changes are visible. |
| Counters and activity | linkedin_followers, last_linkedin_post_at | Always overwrite on ok; they are only meaningful when current. |
| Provenance | enrichment_status, enriched_at | Always write, on every answer. |
Two edge cases deserve explicit rules. When the current role's title is null (a member can hide it), keep the company but don't blank an existing title. And when profile.profile_url differs from the URL you stored, store the clean profile_url and keep the original input for matching, so a later import of the same loose URL still finds this record. For the system around this, with a queue, a table and a refresh policy, see integrating a LinkedIn profile API with a custom backend.
Where ProfileHunt Fits
ProfileHunt is a LinkedIn Profile API built for exactly this request: a public LinkedIn profile URL in, a stable JSON shape out, so the mapping you write once keeps working. Every key is always present, which keeps mapping code free of existence checks.
It reads the profile live on every call, without your LinkedIn account, cookie or seat, and returns the public view only: no emails or phones, no past-role titles, connections capped at 500. The cost is $0.50 per 1,000 profiles found, and gone and unavailable lookups are not charged. For many records at once, the batch API enriches up to 100 per request.
Getting Started
Create a workspace for an API key and 100 free credits with a work email. Run the request in Step 2 against one of your own contacts, then adapt the mapping table to your CRM's fields. The quickstart has the same call in Python and Node.js. For what a profile API can and can't return, start from the LinkedIn profile API overview.
Frequently asked questions
How do I enrich a contact with LinkedIn data using an API?
Send the contact's LinkedIn URL in a POST to a profile API, check that status is ok, and copy fields such as first_name, headline, location and the current role from experience into the contact. Store scraped_at as the enrichment date.
What fields can I get from a public LinkedIn profile for a CRM?
Name, headline, about, location, country, current and past companies, current titles, education, followers, connections (capped at 500), and recent posts, articles, reactions and comments. Email and phone are not on the public view, so they are never returned.
How do I get someone's current job title from LinkedIn profile JSON?
Take the first experience item whose end_date is null and read its title and company. Several roles can be current at once, so decide which one your record should use.
What should I do when a LinkedIn profile enrichment returns gone?
Mark the record (for example enrichment_status: "gone") and keep the data you already have. Don't retry it; no credit was used. An unavailable answer is different: try again later.
Does a LinkedIn enrichment API charge for profiles it can't find?
ProfileHunt doesn't. Only status: "ok" uses a credit; gone, unavailable and errors are free. See credits and billing.


