Fetch Profile
Fetch detailed information about a LinkedIn profile
POST
/linkedin/profileFetch 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
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID (uses default if not provided) |
profileId | string | Yes | LinkedIn profile ID (username or URL) |
includeGeoLocation | boolean | No | Include geographical location data (default: false) |
includeContact | boolean | No | Include contact information (default: false) |
Example
{
"profileId": "john-doe-123"
}Responses
| Status | Description |
|---|---|
| 200 | Successful 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"
}