Search Companies
Search LinkedIn companies with advanced filters via API. Find target accounts by industry, size, location, and keywords for B2B prospecting.
POST
/linkedin/search/companiesSearch Companies
Search LinkedIn companies with various filters
Authentication requiredLinkedIn Search
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/search/companies' \ -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 "followers" (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 | Company search keywords | "technology startup" |
locationId | string | LinkedIn location/geo ID | "103644278" |
geoUrn | string | LinkedIn geo URN format | "urn:li:fsd_geo:103644278" |
industry | string[] | LinkedIn industry codes | ["4", "6", "96"] |
Company Size Filter
| Field | Type | Values | Description |
|---|---|---|---|
companySize | string[] | ["A" to "I"] | A=1-10, B=11-50, C=51-200, D=201-500, E=501-1,000, F=1,001-5,000, G=5,001-10,000, H=10,001+, I=Self-employed |
Additional Filters
| Field | Type | Description | Example |
|---|---|---|---|
companyType | string[] | Company type identifiers | ["PUBLIC_COMPANY", "PRIVATELY_HELD"] |
followedCompanies | boolean | Filter by companies you follow | true |
Example Requests
Basic Search:
{
"keywords": "technology"
}Advanced Search:
{
"keywords": "artificial intelligence",
"count": 50,
"start": 0,
"sortBy": "relevance",
"filters": {
"companySize": ["C", "D", "E"],
"industry": ["4", "6", "96"],
"locationId": "103644278",
"companyType": ["PRIVATELY_HELD"]
}
}Responses
| Status | Description |
|---|---|
| 200 | Successful response |
200 Example
{
"success": true,
"companies": [
{
"id": "2375495",
"name": "Canva",
"universalName": "canva",
"headline": "Design platform",
"logo": "https://media.licdn.com/dms/image/...",
"followerCount": 1500000,
"url": "https://www.linkedin.com/company/canva"
}
],
"pagination": {
"count": 25,
"start": 0,
"total": 500
},
"hasMore": true
}Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Numeric company ID (use for currentCompanyIds filter in people search) |
name | string | Company name |
universalName | string | URL-friendly company identifier |
headline | string | Company tagline/headline |
logo | string | Company logo URL |
followerCount | number | Number of LinkedIn followers |
url | string | LinkedIn company page URL |
Tip: Use the id field from company search results in the currentCompanyIds filter when searching for people at that company.
