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.
/profile/visitCode 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
}Endorse a skill on a LinkedIn profile
Endorse a specific skill on a LinkedIn profile, or randomly select and endorse an unendorsed skill. When random=true, the endpoint fetches all skills on the profile, filters out already-endorsed ones, and randomly endorses one.
Get company/organization followers
Fetch followers of a LinkedIn company page. Returns profile information for each follower including name, headline, profile picture, connection degree, and follow date. Requires admin access to the company page. Use the companyId from the organization URN (e.g., 105672170 from urn:li:fsd_company:105672170).
