Profile
A member's public profile with its followers.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
handle?stringThe member's name in its profile's link (williamhgates).
url?stringIts profile's link (https://www.linkedin.com/in/williamhgates), instead of handle.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
One item, as every single-item endpoint answers: { "data": … }.
data*A LinkedIn member's public profile.
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.linkedin.profile({ handle: "williamhgates" });Example 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 } ] } }}