100 free credits. No credit card required. Get a key

LinkedIn profile API

A member’s public LinkedIn profile: name, headline, location, about, followers, connections, experience and education as the public page shows them, websites, recent posts and Pulse articles, and similar profiles, with the page’s own schema.org Person.

GET /v1/linkedin/profiles/{profile}Beta5 credits per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/linkedin/profiles/williamhgates",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 5 credits
{
"public_identifier": "williamhgates",
"url": "https://www.linkedin.com/in/williamhgates",
"member_urn": "urn:li:member:251749025",
"name": "Bill Gates",
"first_name": "Bill",
"last_name": "Gates",
"headline": "Chair, Gates Foundation and Founder, Breakthrough Energy",
"location": "Seattle, Washington, United States",
"country": "US",
"avatar_url": "https://media.licdn.com/dms/image/v2/D5603AQF-RYZP55jmXA/profile-displayphoto-shrink_200_2…",
"about": "Chair of the Gates Foundation. Founder of Breakthrough Energy. Co-founder of Microsoft. Vo…",
"followers_count": 40850331,
"connections": "8",
"current_companies": [
"Gates Foundation",
"Breakthrough Energy",
"… 1 more"
],
"…": "9 more fields"
}

Parameters

NameTypeDescription
profilepath · requiredstringThe public identifier (the part after /in/) or the profile URL. Example: williamhgates.
Response fields

200 with a LinkedInProfile, in LinkedIn’s own schema.org JSON-LD, with the rest of the public page beside it.

FieldTypeDescription
public_identifierstring
urlstring
member_urnstring | nullurn:li:member:<id> when the page names it.
namestring
first_namestring | null
last_namestring | null
headlinestring | null
locationstring | null
countrystring | nullISO 3166 alpha-2, from the JSON-LD address.
avatar_urlstring | null
aboutstring | null
followers_countinteger | null
connectionsstring | nullAs shown: "500+" or an exact count.
current_companiesstring[]
experienceLinkedInExperience[]
educationLinkedInEducation[]
websitesobject[]
sectionsobjectOther sections the public page shows, by LinkedIn’s own section name: projects, certifications, languages, volunteering, publications, honors-and-awards, courses, organizations, recommendations…
recent_postsLinkedInJsonLd[]Up to ~6 recent posts, schema.org DiscussionForumPosting.
articlesLinkedInJsonLd[]Pulse articles, schema.org Article.
newslettersLinkedInJsonLd[]schema.org PublicationIssue.
similar_profilesLinkedInPageLink[]The page’s "Other similar profiles" sidebar.
personobject
Status codes
StatusMeaning
200The profile.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404LinkedIn has no such public page, or it was removed.
429Too many requests. Wait for Retry-After seconds.
503LinkedIn is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Questions

What if a profile is hidden?

A missing, removed or hidden page answers an error (404 target_not_found, or 503 upstream_unavailable when LinkedIn turned every visit away) and is never charged.

Can I search for people?

No. People search is shown only to signed-in members, so it is not offered. Start from a company page’s employees or a profile’s similar profiles instead.

LinkedIn is a trademark of LinkedIn Corporation. We are not affiliated with or endorsed by LinkedIn.