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.
/group-membersGet 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.
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
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID to use. If not provided, uses the default account. |
groupUrl | string | No | Full LinkedIn group URL (e.g., "https://www.linkedin.com/groups/12345") |
groupUrn | string | No | LinkedIn group URN (e.g., "urn:li:fsd_group:12345") |
groupId | string | No | LinkedIn group ID (numeric ID from group URL) |
count | number | No | Number of members to return per page |
start | number | No | Pagination offset (0-indexed) |
membershipStatuses | array | No | Filter by membership status: OWNER (group owners), MANAGER (group admins), MEMBER (regular members) |
typeaheadQuery | string | No | Search 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
| Status | Description |
|---|---|
| 200 | Group members retrieved successfully |
| 400 | Invalid request - missing group identifier or invalid format |
| 403 | Access forbidden - group may be private or user lacks permissions |
| 404 | Group not found or no active LinkedIn account |
Get group members by group URL
Retrieve members of a LinkedIn group using the group URL. Automatically extracts the group ID from the URL. Convenient alternative to /groups/members when you have the full URL instead of just the ID.
LinkedIn Messaging API
Send LinkedIn messages via API, retrieve conversations, and build automated outreach sequences.
