Quickstart: Your First LinkedIn Profile Call

Get an API key and fetch your first public LinkedIn profile as JSON with cURL, Python or Node.js. Takes about two minutes.

Last updated

1. Get an API key

  1. Sign in at profilehunt.dev/login with Google or an emailed sign-in link.
  2. Your first sign-in creates a workspace with a key named Default, plus free credits: 100 with a work email, 10 with a personal one.
  3. Copy the key from the Keys page and keep it on your server. Below it's $PROFILEHUNT_KEY.

2. Fetch a profile

Send a public LinkedIn profile URL to POST /v1/profile. The call waits while the profile is read, 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/williamhgates" }'

3. Read the response

A found profile comes back with status: "ok" and uses 1 credit. Shortened:

{
  "status": "ok",
  "profile": {
    "public_id": "williamhgates",
    "full_name": "Bill 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, ... }
    ],
    "followers": 40725248,
    "last_post_at": "2026-10-12T20:10:59.000Z",
    "recent_posts": [ ... ],
    "scraped_at": "2026-10-13T09:00:00.000Z",
    ...
  }
}

If there is no public profile at the URL you get status: "gone", and if LinkedIn didn't serve it just then, status: "unavailable". Both have profile: null and cost nothing.

Next