Facebook Pixel
APILinkedIn Groups

Get group members (legacy endpoint)

Legacy endpoint to retrieve members of a LinkedIn group. Supports multiple input formats: group URL, group URN, or group ID. Returns member profiles with filtering options for membership status and search. Consider using /groups/members or /groups/members-by-url for newer implementations.

POST/group-members
Authentication requiredGroups

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/group-members' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{"accountId":"acc_12345","groupUrl":"https://linkedin.com/groups/12345678","groupId":"12345678","count":10,"start":0,"membershipStatuses":["OWNER","MANAGER","MEMBER"],"typeaheadQuery":""}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID to use. If not provided, uses the default account.
groupUrlstringNoFull LinkedIn group URL (e.g., "https://www.linkedin.com/groups/12345")
groupUrnstringConditionalLinkedIn group URN (e.g., "urn:li:fsd_group:12345") Either groupUrn or groupId must be provided.
groupIdstringConditionalLinkedIn group ID (numeric ID from group URL) Either groupId or groupUrn must be provided.
countnumberNoNumber of members to return per page
startnumberNoPagination offset (0-indexed)
membershipStatusesarrayNoFilter by membership status: OWNER (group owners), MANAGER (group admins), MEMBER (regular members)
typeaheadQuerystringNoSearch query to filter members by name

Example

{
  "accountId": "acc_12345",
  "groupUrl": "https://linkedin.com/groups/12345678",
  "groupUrn": "urn:li:example:123456",
  "groupId": "12345678",
  "count": 10,
  "start": 0,
  "membershipStatuses": [
    "active"
  ],
  "typeaheadQuery": ""
}

Responses

StatusDescription
200Group members retrieved successfully
400Invalid request - missing group identifier or invalid format
403Access forbidden - group may be private or user lacks permissions
404Group not found or no active LinkedIn account

200 Response Parameters

NameTypeDescription
successboolean
groupIdstringThe group ID that was queried
accountIdstringLinkedIn account ID used for the request
membersarray
paginationobject
filtersobject
messagestring

200 Example

{
  "success": true,
  "groupId": "12345678",
  "accountId": "acc_12345",
  "members": [
    {
      "profileId": "john-doe-123",
      "name": "example_value",
      "headline": "example_value",
      "profileUrl": "https://linkedin.com/in/example",
      "profilePicture": "example_value",
      "membershipStatus": "active"
    }
  ],
  "pagination": {},
  "filters": {},
  "message": "Hello! I would like to connect with you."
}

400 Response Parameters

NameTypeDescription
errorstring

400 Example

{
  "error": "example_value"
}

403 Response Parameters

NameTypeDescription
errorstring

403 Example

{
  "error": "example_value"
}

404 Response Parameters

NameTypeDescription
errorstring

404 Example

{
  "error": "example_value"
}