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"}'Retrieve detailed information about a specific LinkedIn group including full description, rules, member count, activity level, and admin information.
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. LinkedIn's group search offers a keyword box and nothing else — there are no filters — so `filters.memberCount` is accepted for backward compatibility but never applied; sort/filter the returned `memberCount` client-side instead. Results are paged internally to satisfy `count`. Page sizes vary (8-10 rows), so a short page is not the end of the result set — use `hasMore`, never the length of the returned array, to decide whether to keep paging. Rate limit: no per-account search quota is enforced on this endpoint — only the general 30-calls-per-minute velocity limit.
Search LinkedIn posts (V2 - with auto-pagination)
Search for LinkedIn posts 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. Important: This V2 endpoint uses LinkedIn's newer search, which is rolling out gradually by region. If this endpoint does not return results for your account, use the V1 `/search/posts` endpoint instead. Rate limit: 1,000 search calls per account per day (resets at midnight UTC), and 30 calls per minute. One request counts as one call regardless of `count`.
