Fetch Profile

Fetch detailed information about a LinkedIn profile

POST/linkedin/profile

Fetch Profile

Fetch detailed information about a LinkedIn profile

Authentication requiredLinkedIn Profiles

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/profile' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{"profileId":"john-doe-123"}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID (uses default if not provided)
profileIdstringYesLinkedIn profile ID (username or URL)
includeGeoLocationbooleanNoInclude geographical location data (default: false)
includeContactbooleanNoInclude contact information (default: false)

Example

{
  "profileId": "john-doe-123"
}

Responses

StatusDescription
200Successful response

200 Example

{
  "success": true,
  "profileId": "john-doe-123",
  "accountId": "507f1f77bcf86cd799439011",
  "profile": {
    "firstName": "John",
    "lastName": "Doe",
    "headline": "Software Engineer at Tech Corp",
    "location": "San Francisco, CA",
    "summary": "Experienced software engineer...",
    "experience": [
      {
        "title": "Software Engineer",
        "company": "Tech Corp",
        "duration": "2022 - Present"
      }
    ],
    "education": [
      {
        "school": "University of Technology",
        "degree": "Computer Science",
        "years": "2018 - 2022"
      }
    ]
  },
  "message": "Profile information retrieved successfully"
}