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.
/groups/membersCode 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
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID to use. If not provided, uses the default account. |
groupId | string | Yes | LinkedIn group ID (numeric ID from group URL) |
count | number | No | Number of members to return per page (max 100) |
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
{
"groupId": "12345678"
}Responses
| Status | Description |
|---|---|
| 200 | Group members retrieved successfully |
| 400 | Bad request - invalid group ID or parameters |
| 429 | Rate limit exceeded - 1000 members per day |
Rate Limit Headers
All responses include rate limit information in the headers:
| Header | Description |
|---|---|
X-RateLimit-Action | The action type being rate limited |
X-RateLimit-Limit | Maximum actions allowed per period |
X-RateLimit-Used | Actions used in current period |
X-RateLimit-Remaining | Actions remaining |
X-RateLimit-Reset | ISO 8601 timestamp when limit resets |
200 Response Parameters
| Name | Type | Description |
|---|---|---|
success | boolean | |
accountId | string | LinkedIn account ID used for the request |
groupId | string | The group ID that was queried |
members | array | |
pagination | object | |
hasMore | boolean | Whether more members are available |
count | number | Number 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
| Name | Type | Description |
|---|---|---|
error | string | |
success | boolean |
400 Example
{
"error": "example_value",
"success": false
}429 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string | |
success | boolean |
429 Example
{
"error": "Rate limit exceeded for GROUP_MEMBERS: 1000/1000 used. Resets at 2024-01-02T00:00:00.000Z",
"success": false
}LinkedIn Groups API
Fetch and manage LinkedIn group members via API. Extract member profiles, filter by criteria, and build targeted group engagement workflows.
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.
