Facebook Pixel
APILinkedIn Groups

Get group members by group ID

Retrieve members of a LinkedIn group by its ID. Returns profile information for group members including name, headline, profile picture, and membership status. Useful for lead generation, networking, and community analysis. Requires membership in the group to access member list. Rate limit: 1000 members per day per LinkedIn account.

POST/groups/members
Authentication requiredGroups

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/groups/members' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{"groupId":"12345678"}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID to use. If not provided, uses the default account.
groupIdstringYesLinkedIn group ID (numeric ID from group URL)
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

{
  "groupId": "12345678"
}

Responses

StatusDescription
200Group members retrieved successfully
400Bad request - invalid group ID or parameters
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
groupIdstringThe group ID that was queried
membersarray
paginationobject
hasMorebooleanWhether more members are available
countnumberNumber of members returned in this response

200 Example

{
  "success": true,
  "accountId": "acc_12345",
  "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": "example_value",
  "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
}