Skip to Content

LinkedIn API

17 endpoints for profiles, companies, jobs and ads.

Every LinkedIn endpoint, by group. Each is a GET under /v1/linkedin.

Quick Reference

PropertyValue
Base path/v1/linkedin
Endpoints17
CreditsSee Below
GuideLinkedIn

Accounts

Companies

Posts

Jobs

Ads

Discovery

Example Request

Every LinkedIn endpoint is called this way: its path, and what to read as query parameters.

import { SocialAPI } from "@socialapihq/sdk";

const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });

const { data } = await client.linkedin.profile({ handle: "williamhgates" });
Response
{
  "data": {
    "id": "williamhgates",
    "username": "williamhgates",
    "displayName": "Bill Gates",
    "bio": "Chair of the Gates Foundation. Founder of Breakthrough Energy. Co-founder of Microsoft. Voracious reader. Avid traveler. Active blogger.",
    "avatarUrl": "https://media.licdn.com/dms/image/v2/D5603AQF-RYZP55jmXA/profile-displayphoto-shrink_200_200/B56ZRi8g.aGsAY-/0/1736826818802?e=2147483647&v=beta&t=bKWfN6UwwtiCqFWsG7rBELbd48qJOAMLdxhBzzkJV0k",
    "url": "https://www.linkedin.com/in/williamhgates",
    "verified": false,
    "private": false,
    "followers": 40865050,
    "following": null,
    "likes": null,
    "posts": null,
    "externalUrl": "https://gatesnot.es/sourcecode-li",
    "createdAt": null,
    "ext": {
      "headline": "Chair, Gates Foundation and Founder, Breakthrough Energy",
      "location": "Seattle, Washington, United States",
      "country": "US",
      "connections": 8,
      "connectionsMore": false,
      "labels": [
        "Creator",
        "Top Voice"
      ],
      "influencer": true,
      "coverUrl": "https://media.licdn.com/dms/image/v2/D5616AQEjhPbTCeblYg/profile-displaybackgroundimage-shrink_200_800/B56ZcytR5SGsAc-/0/1748902420393?e=2147483647&v=beta&t=a-tBeZkxzWTHWYY6MAjxt0oTEuxlW33EUkK3gm5_te4",
      "current": [
        {
          "name": "Gates Foundation",
          "url": "https://www.linkedin.com/company/gates-foundation"
        }
      ],
      "schools": [
        {
          "name": "Harvard University",
          "url": "https://www.linkedin.com/school/harvard-university/"
        }
      ],
      "hidden": false,
      "experience": [
        {
          "title": "Co-chair",
          "subtitle": "Gates Foundation",
          "url": "https://www.linkedin.com/company/gates-foundation",
          "starts": "2000",
          "ends": null,
          "current": true,
          "location": null,
          "description": null
        },
        {
          "title": "Founder",
          "subtitle": "Breakthrough Energy",
          "url": "https://www.linkedin.com/company/breakthrough-energy",
          "starts": "2015",
          "ends": null,
          "current": true,
          "location": null,
          "description": null
        },
        {
          "title": "Co-founder",
          "subtitle": "Microsoft",
          "url": "https://www.linkedin.com/company/microsoft",
          "starts": "1975",
          "ends": null,
          "current": true,
          "location": null,
          "description": null
        }
      ],
      "education": [
        {
          "title": "Harvard University",
          "subtitle": null,
          "url": "https://www.linkedin.com/school/harvard-university/",
          "starts": "1973",
          "ends": "1975",
          "current": false,
          "location": null,
          "description": null
        },
        {
          "title": "Lakeside School",
          "subtitle": null,
          "url": "https://www.linkedin.com/school/lakeside-school/",
          "starts": null,
          "ends": null,
          "current": false,
          "location": null,
          "description": null
        }
      ],
      "volunteering": [],
      "certifications": [],
      "publications": [],
      "patents": [],
      "projects": [],
      "honors": [],
      "languages": [],
      "courses": [],
      "testScores": [],
      "organizations": [],
      "skills": [],
      "recommendations": [],
      "websites": [
        "https://gatesnot.es/sourcecode-li"
      ],
      "similar": [
        {
          "name": "Melinda French Gates",
          "url": "https://www.linkedin.com/in/melindagates",
          "subtitle": "Pivotal",
          "location": "United States",
          "followers": 7000000
        },
        {
          "name": "Tyler Alterman",
          "url": "https://www.linkedin.com/in/tyleralterman",
          "subtitle": "Fractal University",
          "location": "Brooklyn, NY",
          "followers": 7000
        },
        {
          "name": "Todd J. Duckett",
          "url": "https://www.linkedin.com/in/toddjduckett",
          "subtitle": "Duckett Enterprises",
          "location": "Lansing, MI",
          "followers": 9000
        }
      ]
    }
  }
}

Errors

A call that fails costs nothing. See Errors for every code.