Social Scraper
LinkedIn

Get Profile

Retrieve public LinkedIn profile information.

Get LinkedIn Profile

Retrieve public profile information for a LinkedIn user.

Endpoint

GET /linkedin/profile/:username

Parameters

Path Parameters

ParameterTypeRequiredDescription
usernamestringYesThe LinkedIn profile slug (the part after /in/ in the profile URL)

Request

Headers

HeaderRequiredDescription
AuthorizationYesBearer token with your API key

Example Request

curl -X GET "https://api.your-domain.com/linkedin/profile/satyanadella" \
  -H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
  'https://api.your-domain.com/linkedin/profile/satyanadella',
  {
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY'
    }
  }
);

const profile = await response.json();
import requests

response = requests.get(
    'https://api.your-domain.com/linkedin/profile/satyanadella',
    headers={'Authorization': 'Bearer YOUR_API_KEY'}
)

profile = response.json()

Response

Success Response

Status Code: 200 OK

Returns the LinkedIn user profile data in JSON-LD format when available, or extracted profile information.

JSON-LD Response (when available)

{
  "@context": "http://schema.org",
  "@type": "Person",
  "name": "Satya Nadella",
  "jobTitle": "Chairman and CEO at Microsoft",
  "address": {
    "@type": "PostalAddress",
    "addressLocality": "Redmond, Washington"
  },
  "alumniOf": [
    {
      "@type": "EducationalOrganization",
      "name": "University of Wisconsin-Milwaukee"
    }
  ],
  "worksFor": [
    {
      "@type": "Organization",
      "name": "Microsoft"
    }
  ],
  "url": "https://www.linkedin.com/in/satyanadella"
}

Fallback Response

When JSON-LD data is not available, a simplified profile is returned:

{
  "name": "Satya Nadella",
  "headline": "Chairman and CEO at Microsoft",
  "url": "https://www.linkedin.com/in/satyanadella"
}

Response Fields

FieldTypeDescription
@typestringSchema.org type (usually "Person")
namestringFull name
jobTitlestringCurrent job title/headline
addressobjectLocation information
alumniOfarrayEducational history
worksForarrayCurrent employment
urlstringLinkedIn profile URL

Error Responses

StatusDescription
400Invalid username format
401Invalid or missing API key
404Profile not found
429Rate limit exceeded
500Failed to extract profile data

See Error Handling for detailed error response formats.

Notes

LinkedIn profile slugs are typically lowercase and may contain hyphens. For example, john-doe-123456 or jane-smith.

LinkedIn heavily restricts public access to profiles. Some profiles may return limited data or require authentication. The API extracts publicly visible information only.

The response format may vary depending on how the LinkedIn profile is configured. The API attempts to return JSON-LD structured data when available, falling back to extracted visible information.

On this page