Search Groups
Search LinkedIn groups via API to find communities by keywords and industry. Perfect for building targeted engagement and lead generation workflows.
POST
/linkedin/search/groupsSearch Groups
Search LinkedIn groups
Authentication requiredLinkedIn Search
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/search/groups' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{"keywords":"technology"}'Parameters
No parameters.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID (uses default if not provided) |
keywords | string | No | Search keywords |
count | number | No | Number of results to return (1-100, default: 25) |
start | number | No | Starting index for pagination (default: 0) |
sortBy | string | No | Sort order: "relevance" or "members" (default: "relevance") |
filters | object | No | Search filters - see detailed breakdown below |
Filters Object
All filter fields are optional. See the Filters Guide for comprehensive documentation.
Basic Filters
| Field | Type | Description | Example |
|---|---|---|---|
keywords | string | Group search keywords | "javascript developers" |
memberCount | string | Group size filter | "small", "medium", or "large" (not fully implemented by LinkedIn) |
Example Requests
Basic Search:
{
"keywords": "technology"
}Advanced Search:
{
"keywords": "javascript developers",
"count": 50,
"start": 0,
"sortBy": "members",
"filters": {
"memberCount": "large"
}
}Responses
| Status | Description |
|---|---|
| 200 | Successful response |
200 Example
{
"success": true,
"groups": [
{
"groupId": "9357376",
"name": "Tech Professionals",
"description": "A community for tech professionals",
"memberCount": 5000,
"groupUrl": "https://www.linkedin.com/groups/9357376/",
"isPrivate": false
}
],
"pagination": {
"count": 25,
"start": 0,
"total": 100
},
"hasMore": true
}Search Geo Locations
Search for geographic locations on LinkedIn for use in filters. Returns location IDs that can be used in other search endpoints.
Search Jobs
Search LinkedIn jobs with various filters via API. Find job postings by location, company, experience level, and keywords for recruitment automation.
