LinkedIn API
17 endpoints for profiles, companies, jobs and ads.
Every LinkedIn endpoint, by group. Each is a GET under /v1/linkedin.
Quick Reference
| Property | Value |
|---|---|
| Base path | /v1/linkedin |
| Endpoints | 17 |
| Credits | See Below |
| Guide |
Accounts
GETProfile
/v1/linkedin/profileA member's public profile with its followers.1 creditGETProfile Articles/v1/linkedin/profile/articlesA member's articles, up to 10.1 creditGETProfile Posts/v1/linkedin/profile/postsA member's latest posts, about 10.1 creditCompanies
GETCompany
/v1/linkedin/companyA company's page with its followers and employees.1 creditGETCompany Jobs/v1/linkedin/company/jobsA company's open jobs, 10 a page.1 creditGETCompany Posts/v1/linkedin/company/postsA company's posts, newest first.1 creditGETSearch Companies/v1/linkedin/search/companiesCompanies matching a name, with their ids.1 creditPosts
GETArticle
/v1/linkedin/articleAn article with its text, reactions and comments.1 creditGETPost/v1/linkedin/postOne post with its reactions and comments.1 creditGETPost Comments/v1/linkedin/post/commentsA post's first comments, about 10.1 creditGETPost Transcript/v1/linkedin/post/transcriptA post's video's captions as text, with timings.10 creditsJobs
GETJob
/v1/linkedin/jobOne job posting with its description.1 creditGETSearch Jobs/v1/linkedin/search/jobsJob postings for a search, 10 a page.1 creditGETSearch Locations/v1/linkedin/search/locationsPlaces matching a name, with their ids.1 creditAds
GETAd
/v1/linkedin/adOne ad with who paid for it and its reach.1 creditGETAds Search/v1/linkedin/ads/searchAds from LinkedIn's Ad Library, 24 a page.1 creditDiscovery
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" });{
"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.