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 failureimport 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(){ "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
| Name | Type | Description |
|---|---|---|
profilepath · required | string | The 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.
| Field | Type | Description |
|---|---|---|
public_identifier | string | |
url | string | |
member_urn | string | null | urn:li:member:<id> when the page names it. |
name | string | |
first_name | string | null | |
last_name | string | null | |
headline | string | null | |
location | string | null | |
country | string | null | ISO 3166 alpha-2, from the JSON-LD address. |
avatar_url | string | null | |
about | string | null | |
followers_count | integer | null | |
connections | string | null | As shown: "500+" or an exact count. |
current_companies | string[] | |
experience | LinkedInExperience[] | |
education | LinkedInEducation[] | |
websites | object[] | |
sections | object | Other sections the public page shows, by LinkedIn’s own section name: projects, certifications, languages, volunteering, publications, honors-and-awards, courses, organizations, recommendations… |
recent_posts | LinkedInJsonLd[] | Up to ~6 recent posts, schema.org DiscussionForumPosting. |
articles | LinkedInJsonLd[] | Pulse articles, schema.org Article. |
newsletters | LinkedInJsonLd[] | schema.org PublicationIssue. |
similar_profiles | LinkedInPageLink[] | The page’s "Other similar profiles" sidebar. |
person | object |
Status codes
| Status | Meaning |
|---|---|
200 | The profile. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | LinkedIn has no such public page, or it was removed. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | LinkedIn 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.