Get group details
Retrieve detailed information about a specific LinkedIn group including full description, rules, member count, activity level, and admin information.
/search/groups/detailsCode Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/search/groups/details' \ -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 from search results or group page URL |
Example
{
"groupId": "12345678"
}Responses
| Status | Description |
|---|---|
| 200 | Group details retrieved successfully |
| 400 | Bad Request - Missing required groupId parameter |
| 401 | Unauthorized - Invalid or missing API key |
| 500 | Internal Server Error - Failed to get LinkedIn credentials or group details |
200 Response Parameters
| Name | Type | Description |
|---|---|---|
success | boolean | |
group | object | Group details with member insights |
200 Example
{
"success": true,
"group": {
"memberInsights": [
{
"insight": "Attended Pune University",
"count": 55
},
{
"insight": "Are located in India",
"count": 30295
},
{
"insight": "Are in the Computer Software industry",
"count": 14488
}
],
"totalInsights": 3
}
}400 Response Parameters
| Name | Type | Description |
|---|---|---|
success | boolean | |
error | object |
400 Example
{
"success": false,
"error": {
"issues": [
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"groupId"
],
"message": "Required"
}
],
"name": "ZodError"
}
}401 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
401 Example
{
"error": "Unauthorized - Invalid credentials"
}500 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
500 Example
{
"error": "Failed to get group details",
"success": false
}Search LinkedIn groups
Search for LinkedIn groups by keywords. Groups are communities where professionals discuss industry topics, share insights, and network. Filter by group size to find active communities. Rate Limit: 300 searches per account per month (resets on the 1st of each month).
Search LinkedIn posts (V2 - RSC endpoint with auto-pagination)
Search for LinkedIn posts using the RSC endpoint with enhanced filtering options and automatic pagination. Automatically handles LinkedIn pagination internally - specify the total count you want (max 50) and the API will fetch multiple pages as needed (max 10 pages, 10 results per page). Supports filtering by date, content type, author, and more. Rate Limit: 300 searches per account per month (resets on the 1st of each month).
