Get Profile Visitors
Get people who viewed your LinkedIn profile (Who Viewed My Profile). Supports filtering by time range and pagination.
POST
/linkedin/profile/visitorsGet 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
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID (uses default if not provided) |
timeRange | string | No | Time range filter: 'past_7_days', 'past_30_days', 'past_90_days', 'past_1_year' (default: 'past_90_days') |
count | number | No | Number of visitors per page (1-100, default: 20) |
start | number | No | Starting index for pagination (default: 0) |
fetchAll | boolean | No | Fetch all visitors with automatic pagination (default: false) |
maxVisitors | number | No | Maximum visitors when using fetchAll (1-500, default: 100) |
Example
{
"accountId": "example",
"timeRange": "past_90_days",
"count": 20,
"start": 0,
"fetchAll": true,
"maxVisitors": 123
}Responses
| Status | Description |
|---|---|
| 200 | Successful 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"
}