Facebook Pixel

Search People

Search LinkedIn people with advanced filters via API. Find prospects by company, job title, location, and industry for lead generation automation.

POST/linkedin/search/people

Search People

Search LinkedIn people with various filters

Authentication requiredLinkedIn Search

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/search/people' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{"keywords":"software engineer","filters":{"connectionDegree":["S"]}}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID (uses default if not provided)
keywordsstringNoGeneral search keywords
countnumberNoNumber of results to return (1-100, default: 25)
startnumberNoStarting index for pagination (default: 0)
filtersobjectNoSearch filters - see detailed breakdown below

Filters Object

All filter fields are optional. See the Filters Guide for comprehensive documentation.

Basic Filters

FieldTypeDescriptionExample
firstNamestringFilter by first name"John"
lastNamestringFilter by last name"Doe"
titlestringJob title (supports OR syntax)"Engineering Manager OR VP Engineering"
companystringCompany name"Google"
schoolstringSchool/university name"Stanford University"

Location Filters

FieldTypeDescriptionExample
locationIdstringLinkedIn location/geo ID"103644278"
geoUrnstringLinkedIn geo URN format"urn:li:fsd_geo:103644278"

Network Filters

FieldTypeValuesDescription
connectionDegreestring[]["F", "S", "O"]F=1st degree, S=2nd degree, O=3rd+ degree

Company & Industry Filters

FieldTypeDescriptionExample
currentCompanyIdsstring[]Current company LinkedIn IDs["1441", "2063"]
pastCompanyIdsstring[]Past company LinkedIn IDs["1441"]
industrystring[]LinkedIn industry codes["4", "6", "96"]

Additional Filters

FieldTypeDescriptionExample
profileLanguagestring[]Profile language codes (ISO 639-1)["en", "es"]
serviceCategoriesstring[]Service categories["consulting"]
openToWorkbooleanFilter by "Open to Work" statustrue

Example Requests

Basic Search:

{
  "keywords": "software engineer",
  "filters": {
    "connectionDegree": ["S"]
  }
}

Advanced Search:

{
  "keywords": "machine learning",
  "count": 50,
  "start": 0,
  "filters": {
    "title": "ML Engineer OR Machine Learning Engineer OR AI Engineer",
    "currentCompanyIds": ["1441", "2382910"],
    "connectionDegree": ["F", "S"],
    "locationId": "90000084",
    "industry": ["4", "6"],
    "openToWork": true
  }
}

Responses

StatusDescription
200Successful response

200 Example

{
  "success": true,
  "people": [
    {
      "profileId": "johndoe",
      "profileUrn": "urn:li:fsd_profile:ACoAAGAfhSQBk6MSjFk2s4P8No7XS2KexsXKcnY",
      "firstName": "John",
      "lastName": "Doe",
      "headline": "Software Engineer at Tech Company",
      "location": "San Francisco Bay Area",
      "connectionDegree": "2nd",
      "profileUrl": "https://www.linkedin.com/in/johndoe/",
      "profilePicture": "https://media.licdn.com/dms/image/...",
      "isPremium": true,
      "isOpenToWork": false
    }
  ],
  "pagination": {
    "count": 25,
    "start": 0,
    "total": 1000
  },
  "hasMore": true
}

Response Fields

FieldTypeDescription
profileIdstringVanity name (e.g., "johndoe") - use for /linkedin/profile endpoint
profileUrnstringFull profile URN (internal LinkedIn ID)
firstNamestringFirst name
lastNamestringLast name
headlinestringProfessional headline
locationstringLocation string
connectionDegreestringConnection degree (1st, 2nd, 3rd+)
profileUrlstringFull LinkedIn profile URL
profilePicturestringProfile picture URL
isPremiumbooleanWhether user has LinkedIn Premium
isOpenToWorkbooleanWhether user has Open to Work enabled

Note: profileId is the vanity name (e.g., "johndoe") used in LinkedIn URLs. Use this directly with the /linkedin/profile endpoint.