Facebook Pixel

Get Profile Visitors

Get people who viewed your LinkedIn profile (Who Viewed My Profile). Supports filtering by time range and pagination.

POST/linkedin/profile/visitors

Get Profile Visitors

Get people who viewed your LinkedIn profile (Who Viewed My Profile). Supports filtering by time range and pagination.

Authentication requiredLinkedIn Analytics

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/profile/visitors' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{"accountId":"example","timeRange":"past_90_days","count":20,"start":0,"fetchAll":true,"maxVisitors":123}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID (uses default if not provided)
timeRangestringNoTime range filter: 'past_7_days', 'past_30_days', 'past_90_days', 'past_1_year' (default: 'past_90_days')
countnumberNoNumber of visitors per page (1-100, default: 20)
startnumberNoStarting index for pagination (default: 0)
fetchAllbooleanNoFetch all visitors with automatic pagination (default: false)
maxVisitorsnumberNoMaximum visitors when using fetchAll (1-500, default: 100)

Example

{
  "accountId": "example",
  "timeRange": "past_90_days",
  "count": 20,
  "start": 0,
  "fetchAll": true,
  "maxVisitors": 123
}

Responses

StatusDescription
200Successful response

200 Example

{
  "success": true,
  "accountId": "507f1f77bcf86cd799439011",
  "visitors": [
    {
      "entityUrn": "urn:li:fsd_profile:ACoAAGAfhSQBk6MSjFk2s4P8No7XS2KexsXKcnY",
      "publicIdentifier": "johndoe",
      "name": "John Doe",
      "headline": "Software Engineer at Tech Company",
      "profilePicture": "https://media.licdn.com/...",
      "viewedAt": "Viewed 1h ago",
      "connectionDegree": "2nd",
      "navigationUrl": "https://www.linkedin.com/in/johndoe"
    }
  ],
  "pagination": {
    "start": 0,
    "count": 10,
    "total": 50
  },
  "hasMore": true,
  "timeRange": "past_90_days"
}