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

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.

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","groupUrn":"urn:li:example:123456","groupId":"12345678","count":10,"start":0,"membershipStatuses":["active"],"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")
groupUrnstringNoLinkedIn group URN (e.g., "urn:li:fsd_group:12345")
groupIdstringNoLinkedIn group ID (numeric ID from group URL)
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