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.
/groups/members-by-urlGet 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.
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/groups/members-by-url' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{"groupUrl":"https://linkedin.com/groups/12345678"}'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 | Yes | Full LinkedIn group URL (e.g., "https://www.linkedin.com/groups/12345") |
count | number | No | Number of members to return per page |
start | number | No | Pagination offset (0-indexed) |
Example
{
"groupUrl": "https://linkedin.com/groups/12345678"
}Responses
| Status | Description |
|---|---|
| 200 | Group members retrieved successfully |
Get group members by group ID
Retrieve members of a LinkedIn group by its ID. Returns profile information for group members. Useful for lead generation, networking, and community analysis. Requires membership in the group to access member list.
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.
