Facebook Pixel
APILinkedIn Groups

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. Rate limit: 1000 members per day per LinkedIn account.

POST/groups/members-by-url
Authentication requiredGroups

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

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID to use. If not provided, uses the default account.
groupUrlstringYesFull LinkedIn group URL (e.g., "https://www.linkedin.com/groups/12345")
countnumberNoNumber of members to return per page (max 100)
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

{
  "groupUrl": "https://linkedin.com/groups/12345678"
}

Responses

StatusDescription
200Group members retrieved successfully
400Bad request - invalid group URL or could not extract group ID
429Rate limit exceeded - 1000 members per day

Rate Limit Headers

All responses include rate limit information in the headers:

HeaderDescription
X-RateLimit-ActionThe action type being rate limited
X-RateLimit-LimitMaximum actions allowed per period
X-RateLimit-UsedActions used in current period
X-RateLimit-RemainingActions remaining
X-RateLimit-ResetISO 8601 timestamp when limit resets

200 Response Parameters

NameTypeDescription
successboolean
accountIdstringLinkedIn account ID used for the request
groupUrlstringThe original group URL provided
groupIdstringThe extracted group ID
membersarray
paginationobject
hasMorebooleanWhether more members are available
countnumberNumber of members returned in this response

200 Example

{
  "success": true,
  "accountId": "acc_12345",
  "groupUrl": "https://linkedin.com/groups/12345678",
  "groupId": "12345678",
  "members": [
    {
      "entityUrn": "urn:li:example:123456",
      "publicIdentifier": "12345",
      "firstName": "example_value",
      "lastName": "example_value",
      "headline": "example_value",
      "profilePicture": "example_value",
      "membershipStatus": "active"
    }
  ],
  "pagination": {},
  "hasMore": true,
  "count": 25
}

400 Response Parameters

NameTypeDescription
errorstring
successboolean

400 Example

{
  "error": "Invalid LinkedIn group URL - could not extract group ID",
  "success": false
}

429 Response Parameters

NameTypeDescription
errorstring
successboolean

429 Example

{
  "error": "Rate limit exceeded for GROUP_MEMBERS: 1000/1000 used. Resets at 2024-01-02T00:00:00.000Z",
  "success": false
}