LINKEDIN PROFILE DATA ENRICHMENT

LinkedIn Current Company API: Job Title and Employer

Get each person's current job title and employer from a LinkedIn URL, join it to company data and detect job changes. Fields, edge cases and code.

By Surender Kumar, GTM Engineer, ProfileHunt · Published · 12 min read

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

LinkedIn Current Company API: Job Title and Employer

You have a list of LinkedIn profile URLs and one question per row: where does this person work now, and what is their title? A LinkedIn current company API answers it from the public profile. With ProfileHunt you send the URL, and the roles with end_date: null in the experience array are the person's current jobs, each with company, company_url and title. The company_url then joins the person to a full company record.

This guide covers where the current role lives on a public profile, which fields carry it, the edge cases that break naive code, the join to company data, and job change detection, with cURL, Python and Node. For every field in the response, see the LinkedIn profile JSON schema.

Key takeaways

  • Current role = end_date: null. Filter experience on it. Expect zero, one or several current roles per person.
  • title is set for current roles only. It is null for past roles, and null when LinkedIn hides it from logged-out visitors.
  • company_url is the join key. Send it to the ProfileHunt company endpoint to get industry, size, headquarters and website for the employer.
  • Job changes are a diff. Compare the set of current company_url values between two reads, and use the new role's start_date to date the move.

Where the current role lives on a public LinkedIn profile

The current role sits in the Experience section of the public profile, the version LinkedIn shows to people who aren't signed in. Each position there has an employer, an optional link to the employer's company page, dates, and, for current positions, a job title.

Members decide how much of that the public sees. According to LinkedIn's help page on public profile visibility, members choose which sections are shown to people who aren't signed in, and not every section can be shown publicly. That is why some profiles show a current employer with no title, and why a profile can have no public experience at all.

The public page also carries the role in machine-readable form. LinkedIn embeds schema.org data in the page, where a Person lists current employers under worksFor and titles under jobTitle. ProfileHunt reads that public view only. It uses no LinkedIn account of any kind, no cookies and no session.

How ProfileHunt returns the current job and employer

ProfileHunt returns the current job inside the experience array of the profile object. Every key is always present, so you check values, never whether a key exists.

Field (in experience[])TypeWhat it means for the current job
companystringEmployer name as the profile shows it. Always set.
company_urlstring or nullThe employer's LinkedIn page. null when the role links to no page.
titlestring or nullSet for current roles only. null when hidden from logged-out visitors.
start_datestring or null"2014" or "2014-02", as LinkedIn shows it.
end_datestring or nullnull for a current role.
location, descriptionstring or nullOften null in the public view.

The profile endpoint reference is the source of truth for these fields. In ProfileHunt's output, current roles come first, followed by past roles.

The flat columns: current_company, current_title, current_company_url

Spreadsheets don't like nested arrays, so ProfileHunt also offers the current role as flat columns where a flat file is the output:

WhereFlat columns
ProfileHunt Apify actor dataset (JSON, CSV, Excel)current_company, current_title, current_company_url
Batch CSV download in the ProfileHunt dashboard playgroundcurrent_company, current_title
REST API (POST /v1/profile)none: read experience[] directly

The flat columns are the first entry of experience. That is the person's first-listed current role, which is the right default for one-column CRM fields. When you need every current role, read experience in full.

Step 1: Fetch the profile

Send one URL to POST /v1/profile. The call waits while the profile is read live, usually a few seconds.

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/satyanadella" }'

The answer is HTTP 200 with a status: ok (1 credit), gone or unavailable (both free). A URL that isn't a linkedin.com/in/ profile gets 422 invalid_url, also free. For lists, the batch API takes up to 100 URLs per request.

Step 2: Pick the current roles

Filter experience on end_date being null. Here is the real result for the sample profile on our home page, trimmed to the experience array:

"experience": [
  { "company": "Microsoft", "company_url": "https://www.linkedin.com/company/microsoft",
    "title": "Chairman and CEO", "start_date": "2014-02", "end_date": null },
  { "company": "University of Chicago", "company_url": "https://www.linkedin.com/school/uchicago/",
    "title": "Member Board Of Trustees", "start_date": "2018", "end_date": null },
  { "company": "Starbucks", "company_url": "https://www.linkedin.com/company/starbucks",
    "title": null, "start_date": "2017", "end_date": "2024" }
]

Two current roles, one past role. The past role has title: null, because LinkedIn's public view has no titles for past roles. The second current role links to a /school/ page, not a /company/ page. Both details matter in Step 3.

Step 3: Join the person to the company record

Send each current role's company_url to POST /v1/company. It accepts linkedin.com/company/ URLs, by name or number, and returns the employer's public page as JSON at 1 credit per company found.

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

The real response for that page, trimmed:

{
  "status": "ok",
  "company": {
    "public_id": "hubspot",
    "company_url": "https://www.linkedin.com/company/hubspot",
    "name": "HubSpot",
    "website": "https://hubspot.com",
    "industry": "Software Development",
    "company_size": "5,001-10,000 employees",
    "employees_on_linkedin": 12258,
    "headquarters": "Cambridge, Massachusetts",
    "country": "US",
    "founded": "2006",
    "scraped_at": "2026-11-05T13:00:00.000Z"
  }
}

A /school/ URL, like the University of Chicago role above, gets 422 invalid_url and is not charged. Check the path before you send it. The full field list is in the company endpoint reference, and the company data guide goes deeper on the company record itself.

Two stacks of records joined by one link between their top blocks

Python: current job plus employer, joined

This script reads profiles, keeps every current role, looks up each employer once, and writes one joined row per person. Many people in a list share employers, so the company cache saves credits and requests.

import os, time, requests

API = "https://api.profilehunt.dev/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['PROFILEHUNT_KEY']}"}

def lookup(kind, url):
    """kind is 'profile' or 'company'. Returns the object, or None if not found."""
    while True:
        r = requests.post(f"{API}/{kind}", json={"url": url}, headers=HEADERS, timeout=120)
        if r.status_code == 429:                      # 60 requests/minute per key
            time.sleep(int(r.headers.get("Retry-After", "30")))
            continue
        if r.status_code == 422:                      # not a profile/company URL, not charged
            return None
        r.raise_for_status()
        body = r.json()
        return body[kind] if body["status"] == "ok" else None

def current_roles(profile):
    return [e for e in profile["experience"] if e["end_date"] is None]

def is_company_page(url):
    return bool(url) and "linkedin.com/company/" in url

companies = {}  # company_url -> company object (or None)

def company_for(url):
    if url not in companies:
        companies[url] = lookup("company", url)
    return companies[url]

def enrich(linkedin_url):
    p = lookup("profile", linkedin_url)
    if p is None:
        return {"linkedin_url": linkedin_url, "found": False}
    roles = current_roles(p)
    main = roles[0] if roles else None
    url = main["company_url"] if main else None
    c = company_for(url) if is_company_page(url) else None
    return {
        "linkedin_url": linkedin_url,
        "found": True,
        "current_title": main["title"] if main else None,
        "current_company": main["company"] if main else None,
        "current_company_url": url,
        "other_current_roles": [r["company"] for r in roles[1:]],
        "company_industry": c["industry"] if c else None,
        "company_size": c["company_size"] if c else None,
        "company_country": c["country"] if c else None,
        "company_website": c["website"] if c else None,
        "scraped_at": p["scraped_at"],
    }

print(enrich("https://www.linkedin.com/in/satyanadella"))

For more than a few hundred rows, send profiles through POST /v1/profile/batches and companies through POST /v1/company/batches, 100 URLs each. Creating a batch counts as one request against the rate limit, and polling is free. The Python parsing guide covers flattening the rest of the profile.

Edge cases that break current-job code

Most bugs in current-employer pipelines come from five cases. Each one is real, and each has a simple rule.

CaseWhat the JSON looks likeRule
Several current rolesTwo or more positions with end_date: nullTake the first as the main role; keep the rest in a list.
Hidden titletitle: null on a current roleStore null. Never treat it as a change or a demotion.
Self-employed or freelancecompany is the text typed, company_url is usually nullNo company page to join; keep the text and skip the company lookup.
No current roleNo position with end_date: nullBetween jobs, or experience hidden. Don't fill in a past employer.
Stale vanity URLStatus gone for a URL that used to workThe member may have renamed their profile URL. Not charged; find the new URL.

Multiple current roles

Board seats, advisory roles, a founder's side company: real profiles carry several current positions. The home-page sample for Bill Gates lists three, each with end_date: null: Co-chair at Gates Foundation, Founder at Breakthrough Energy, and Co-founder at Microsoft. "Current" means the profile shows no end date, not that it is the person's day job.

Hidden titles return null

LinkedIn masks some details from logged-out visitors. When a title is hidden, ProfileHunt returns null, not a placeholder or a guess. Your code should treat null as "unknown", and keep a title you already hold unless you decide otherwise.

Stale vanity URLs

Members can change the name after /in/ in their profile URL. An old URL in your CRM then commonly comes back gone, which costs nothing. Note that public_id echoes the name from the URL you sent, so it does not reveal the new URL.

Step 4: Detect job changes over time

A job change is a difference in the set of current employers between two reads of the same profile. Compare company_url values, which don't change with spelling, and fall back to a normalised company name when a role has no page.

// Node 18+: compare the current employers of two reads of one profile.
const key = r => r.company_url ?? r.company.toLowerCase().replace(/[,.]|\b(inc|llc|ltd|gmbh)\b/g, "").trim();
const current = p => p.experience.filter(e => e.end_date === null);

export async function readProfile(url) {
  const res = await fetch("https://api.profilehunt.dev/v1/profile", {
    method: "POST",
    headers: { Authorization: `Bearer ${process.env.PROFILEHUNT_KEY}`, "Content-Type": "application/json" },
    body: JSON.stringify({ url }),
  });
  if (!res.ok) throw new Error(`ProfileHunt ${res.status}`);
  const body = await res.json();
  return body.status === "ok" ? body.profile : null; // gone/unavailable: free, compare nothing
}

export function jobChange(before, after) {
  const was = new Map(current(before).map(r => [key(r), r]));
  const now = new Map(current(after).map(r => [key(r), r]));
  const joined = [...now.keys()].filter(k => !was.has(k)).map(k => now.get(k));
  const left = [...was.keys()].filter(k => !now.has(k)).map(k => was.get(k));
  return joined.length || left.length ? { joined, left, checked_at: after.scraped_at } : null;
}

Store the last ok profile per person, read again on your schedule, and run jobChange. A result with a joined role is a new employer; its start_date tells you how recent the move is. Skip the comparison when a read comes back gone or unavailable: no data is not a job change.

Two shelves of blocks where one block has moved to a new position

If you'd rather not run the schedule yourself, Monitors in the ProfileHunt dashboard re-check a profile on an interval from hourly to weekly and send a webhook when its experience, headline or other fields change. The job change alerts use case shows the CRM side of the workflow.

What most guides get wrong about current company data

"The headline is the current job." The headline is free text the member writes. Bill Gates' sample headline says "Chair, Gates Foundation", while the experience entry says "Co-chair". Map titles from experience, and use the headline as context.

"Take the most recent start date." That picks the newest side project over a long-held main role. In the Gates sample it would choose Breakthrough Energy (2015) over Gates Foundation (2000). The first-listed current role is the better default.

"Every company_url is a company." Current roles can link to a /school/ page, as the University of Chicago trustee role shows. Filter on /company/ before calling the company endpoint.

Myth vs reality

MythReality
A null title means the API failed.The status is ok; the profile simply doesn't show the title publicly.
Matching company names is good enough."Microsoft", "Microsoft Corp." and "MSFT" all exist in CRMs. company_url is one value per company page.
You need a logged-in session for current employers.Current employer, title and dates are part of the public view, unless the member hides them.
Cache profiles for months to save money.At $0.50 per 1,000 found, re-reading is cheap; stale employers are what cost you.

Advanced: running current-employer data at scale

This section is for teams already enriching thousands of contacts.

  • Deduplicate employers before the company pass. Collect every current company_url, look each up once, then join in your database. A list of 10,000 people often shares far fewer employers.
  • Cache companies, re-read people. Company pages change slowly; job changes are the signal you pay for. Re-read profiles on your schedule and refresh company records less often. ProfileHunt caches nothing, so each call reads the page live and scraped_at dates your copy.
  • Keep the full current-role list. Store experience filtered to end_date: null as JSON next to the flat columns. Buying-committee and board-seat questions come up later.
  • Write a confidence flag. Mark rows title_hidden when the main role has title: null, and no_company_page when company_url is null. Routing rules can then skip or review those rows instead of guessing.
  • Respect privacy law. Public profile data can still be personal data under laws such as the GDPR. Collect only the fields you need and decide how long you keep them. This is not legal advice.

What it costs

JobCallsCost on the ProfileHunt API
Current role for 10,000 profiles10,000 profile lookups$5.00 at most (only profiles found are charged)
Employer records for 2,000 unique companies2,000 company lookups$1.00 at most
Monthly job-change check on 5,000 contacts5,000 profile lookups per month$2.50 a month at most

ProfileHunt's direct API costs $0.50 per 1,000 profiles: $1 buys 2,000 credits, and profiles not found are free. The ProfileHunt profile actor on Apify costs $2 per 1,000 profiles found and carries the flat current-role columns in every row. ProfileHunt is independent and is not affiliated with, endorsed by or sponsored by LinkedIn.

Getting started

Create a key from the quickstart, with 100 free credits for a work email. Fetch a few profiles, filter experience on end_date: null, and join the employers through the company endpoint. For every other field on the profile, the LinkedIn profile JSON schema is the reference to keep open.

Frequently asked questions

How do I get someone's current employer from their LinkedIn profile URL?

Send the URL to a LinkedIn profile API such as ProfileHunt and filter the experience array for positions with end_date: null. Each one has company, company_url and title. The first is the person's main current role in most cases.

Is there an API that returns the current job title from LinkedIn?

Yes. ProfileHunt returns title on each current position in experience, and the ProfileHunt Apify actor adds a flat current_title column. The title is null when the profile hides it from logged-out visitors.

Why is the current job title null?

The member's public profile doesn't show it to people who aren't signed in. The lookup still succeeds with status ok, and past roles never carry titles in the public view.

What if someone has more than one current job?

Every position with end_date: null is current. Keep all of them, and use the first-listed one as the main role for single-value CRM fields.

How do I get company data for a person's employer?

Take the current role's company_url and send it to POST /v1/company. You get industry, size band, employees on LinkedIn, headquarters, country and website, at 1 credit per company found. See the company endpoint reference.

How do I detect LinkedIn job changes automatically?

Store each profile's current company_url values, read the profile again on a schedule, and flag a contact when a new company appears. The new role's start_date dates the move. The ProfileHunt dashboard's Monitors can run the schedule and send a webhook.

Do I need a LinkedIn account to get current company data?

No. ProfileHunt reads only the public profile that any logged-out visitor sees, with no LinkedIn account, cookie or session.

Get API key 100 free credits with a work email