100 free credits — no credit card required.Start building
Logo
Developer tutorial

How to scrape LinkedIn profiles with Node.js (2026)

This tutorial shows how to scrape LinkedIn profiles in Node.js using the SocialCrawl API. You get a member's headline, current role, location, follower and connection counts, and profile photo from a public profile URL, with no logged-in account required from one GET request, with no LinkedIn developer account, proxies, or HTML parsing. The code below is runnable as-is, and the response underneath it is a real, unedited call.

How it works

  1. 1
    Get a free API keyCreate a SocialCrawl account and copy your API key from the dashboard. Every new account starts with free credits.
  2. 2
    Set up Node.jsUse Node.js 18 or newer, which includes the fetch API with no extra packages.
  3. 3
    Call the LinkedIn Profile endpointSend a GET request to /v1/linkedin/profile with your API key in the x-api-key header and the `url` parameter.
  4. 4
    Read the responseParse the JSON. SocialCrawl returns a member's headline, current role, location, follower and connection counts, and profile photo from a public profile URL, with no logged-in account required in one normalized schema, so you write no HTML parsing or proxy code.

The code

A real, unedited response from the request above.

const params = new URLSearchParams({
  "url": "https://www.linkedin.com/in/williamhgates/",
});

const response = await fetch(
  `https://www.socialcrawl.dev/v1/linkedin/profile?${params}`,
  { headers: { "x-api-key": "YOUR_API_KEY" } },
);
const data = await response.json();
console.log(data);
[ RESPONSE ]
{
  "success": true,
  "platform": "linkedin",
  "endpoint": "/v1/linkedin/profile",
  "data": {
    "author": {
      "id": "williamhgates",
      "username": "williamhgates",
      "display_name": "Bill Gates",
      "avatar_url": "https://media.licdn.com/dms/image/v2/D5603AQF-RYZP55jmXA/profile-displayphoto-shrink_800_800/B56ZRi8g.aGsAc-/0/1736826818808?e=1785974400&v=beta&t=N85D86MRjsX6n0VL-gTtB00I-Wp2OVv2TlubmOaqOOI",
      "bio": "Chair, Gates Foundation and Founder, Breakthrough Energy",
      "verified": null,
      "followers": null,
      "following": null,
      "posts_count": null,
      "likes_count": null,
      "url": "https://www.linkedin.com/in/williamhgates",
      "location": "Seattle, Washington, United States, United States",
      "private": null,
      "joined_at": null,
      "ext": {
        "urn": "ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc",
        "is_top_voice": true,
        "is_premium": true
      }
    },
    "computed": {
      "engagement_rate": null,
      "language": null,
      "content_category": "other",
      "estimated_reach": null
    }
  },
  "credits_used": 5,
  "credits_remaining": 9999,
  "request_id": "req_example000000",
  "cached": false
}
API reference for this endpoint

Prefer another language?

FAQ

Have a question? We got answers

Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.

Contact us
Do I need a LinkedIn developer account to scrape LinkedIn profiles?
No. SocialCrawl handles authentication and proxies upstream, so you never register a LinkedIn app, manage OAuth tokens, or run your own scrapers. One API key returns LinkedIn data directly.
What does the LinkedIn Profile endpoint return?
It returns a member's headline, current role, location, follower and connection counts, and profile photo from a public profile URL, with no logged-in account required. The response is normalized into SocialCrawl's unified schema, identical in shape across every platform.
How much does it cost to scrape LinkedIn profiles?
Each call costs a small number of credits, and new accounts start with free credits. There are no monthly minimums, so you pay only for the calls you make.
Can I use this Node.js code in production?
Yes. The snippet on this page is the real request against the live API. For production, add error handling and follow the response cursor to paginate through large result sets.

Ask AI about SocialCrawl