ApiLinkedin profiles
Visit a LinkedIn profile
Simulates visiting a LinkedIn profile to trigger the "Who Viewed Your Profile" notification for the target user. This sends the necessary telemetry events that LinkedIn uses to track profile views.
POST
/profile/visitAuthentication requiredProfiles
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/profile/visit' \ -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 |
|---|---|---|---|
profileId | string | Yes | LinkedIn vanity name/profile ID of the user to visit (e.g., "john-doe-123") |
accountId | string | No | LinkedIn account ID to use for the visit. If not provided, uses the default account. |
Example
{
"profileId": "john-doe-123"
}Responses
| Status | Description |
|---|---|
| 200 | Profile visit registered successfully |
| 400 | Failed to visit profile - could not extract profile URN or send telemetry |
| 401 | Unauthorized - Invalid or missing authentication |
| 500 | Server error - Failed to get LinkedIn credentials or internal error |
200 Response Parameters
| Name | Type | Description |
|---|---|---|
success | boolean | Whether the profile visit was successful |
profileId | string | The profile ID that was visited |
profileUrn | string | The extracted profile URN (ACoAA format) |
numericMemberId | number | The numeric member ID extracted from the profile URN |
message | string | Success or status message |
accountId | string | LinkedIn account ID that performed the visit |
200 Example
{
"success": true,
"profileId": "john-doe-123",
"profileUrn": "ACoAAF7lRPsBwzO9AMvoBVVioq4MmyJUyfiXEqY",
"numericMemberId": 1592083707,
"message": "Profile visit registered successfully",
"accountId": "696ce9e780e0483585e4e553"
}400 Response Parameters
| Name | Type | Description |
|---|---|---|
success | boolean | |
error | string | |
profileUrn | string | |
accountId | string |
400 Example
{
"success": false,
"error": "Failed to fetch profile URN",
"accountId": "696ce9e780e0483585e4e553"
}401 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
401 Example
{
"error": "Unauthorized"
}500 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
500 Example
{
"error": "Failed to get LinkedIn credentials",
"success": false
}