Get profile visitors
Retrieve a list of people who viewed your LinkedIn profile. Shows visitor name, headline, location, and visit timestamp. Some visitors may be anonymous depending on their privacy settings. Supports pagination and various time ranges.
/profile/visitorsGet profile visitors
Retrieve a list of people who viewed your LinkedIn profile. Shows visitor name, headline, location, and visit timestamp. Some visitors may be anonymous depending on their privacy settings. Supports pagination and various time ranges.
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/profile/visitors' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{"maxVisitors":20}'Parameters
No parameters.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID to use. If not provided, uses the default account. |
timeRange | string | No | Time range to filter visitors |
count | number | No | Page size for pagination (visitors fetched per API request). Use maxVisitors to control the total limit. |
start | number | No | Pagination offset (0-indexed) |
fetchAll | boolean | No | When true, automatically paginates to fetch all visitors up to maxVisitors limit |
maxVisitors | number | Yes | Total number of visitors to retrieve. This is the primary limit - use this parameter to specify how many visitors you want (e.g., maxVisitors: 50 for 50 visitors). |
Example
{
"maxVisitors": 20
}Responses
| Status | Description |
|---|---|
| 200 | Profile visitors retrieved successfully |
| 403 | Access forbidden - LinkedIn Premium may be required |
Get user organizations
Fetch all LinkedIn organizations (company pages) the authenticated user has admin or posting access to. Returns organization URN, name, and role. Use the organization URN for posting content as a company or commenting as a company page.
LinkedIn Groups API
Fetch and manage LinkedIn group members via API. Extract member profiles, filter by criteria, and build targeted group engagement workflows.
