Search for leads
Search for leads based on your Ideal Customer Profile (ICP). Retrieve leads by criteria or from specified companies.
Use Case:
Build a targeted list of prospects for outreach campaignsAdditional Information:
- 50 Parallel processing available (multiple threads)
- Supported locations:
- List of Supported Locations.
- In case of inputting a location which is not listed you will receive a
ValidationError(free request), with Hint what location you need to edit.
- Personas rules: (see example request first)
- Top-level
personasis a list of persona tuples. Each persona is:[name, functions, seniorities, prohibits, priority?] - name (string, required) — identifier for the persona group. Returned
on every matched lead as
linkedin_lead_persona. - functions (list of strings, required) — job-function keywords, OR-combined.
- Example:
["marketing", "sales"]matches a lead whose title contains either “marketing” or “sales”. - Important: only
functionsare pushed to the LinkedIn pre-filter.senioritiesandprohibitsare applied server-side after leads are fetched. A single narrow function (e.g.["ceo"]) may miss leads whose actual title is a language-equivalent ("Geschäftsführer","Managing Director","Founder", etc.). For best recall pass all equivalents explicitly, e.g.["ceo", "managing director", "geschäftsführer", "founder", "inhaber", "owner"]. - Pre-processing before matching: lowercased, diacritics stripped
(
unidecode), stop-words removed (or,and,of,in,at),IT→information technology,DIR→director, common abbreviations auto-expanded (ceo ↔ chief executive officer, etc.). - Pass
[]to skip function matching (any title passes the function check).
- Example:
- seniorities (list of strings, optional, default
[]) — seniority keywords, OR-combined. Applied post-fetch.- Matching is per-entry token containment: every token of a seniority
phrase must appear in the lead’s job title (tokens split on whitespace).
So
"Managing Director"requires both"managing"and"director"to be present in the title. - Final persona match is logical AND between functions and seniorities: a lead passes iff at least one function and at least one seniority match.
- Example:
functions=["marketing", "sales"]andseniorities=["Head", "Manager"]match “Head of Marketing”, “Head of Sales”, “Manager of Marketing”, “Manager of Sales”. - Auto-expansions (case-insensitive):
"vp"→ also matchesSVP,EVP,GVP,AVP"chief","c-lvl","cxo"→ also matchChief Officer"manager+"→ expands toManager,Director,Head,VP,SVP,EVP,AVP,Chief Officer
- Pass
[]to skip seniority matching.
- Matching is per-entry token containment: every token of a seniority
phrase must appear in the lead’s job title (tokens split on whitespace).
So
- prohibits (list of strings, optional, default
[]) — exclusion keywords, OR-combined. If at least one of its tokens appears in the lead’s job title, the lead is dropped. - priority (integer, optional, default
0) — ranking used whenlimit_byis smaller than the number of matches. Lower value = higher priority; leads from higher-priority personas are returned first. - In case of bad input you will receive a
ValidationError(free request), with a hint on what you need to edit. - More Persona Bad Examples and Good Practise you can see here
- Top-level
- limit_by rules:
- Will return only N-strip of first leads that match input criteria
- company_link supported formats:
- https://www.linkedin.com/company/reply-io
- https://www.linkedin.com/company/reply-io/
- linkedin.com/company/reply-io
- https://in.linkedin.com/company/reply-io
- http://linkedin.com/company/reply-io
- linkedin.com/pub/…
- linkedin.com/pub-profile/…
- http://www.linkedin.com/pub-profile/…
- https://www.linkedin.com/company/18584851 (sales id)
- https://www.linkedin.com/sales/company/18584851
- company_types:
"Public Company","Educational","Self Employed","Government Agency""Non Profit","Self Owned","Privately Held","Partnership"
- By default Generect is able to search up to linkedin limits (2500 results)
- Parameter
"company_locations"- companies headquarters locations - Parameter
"company_headcounts"- headcounts of companies, vars -["1-10", "11-50", "51-200", "201-500", "501-1000", "1001-5000", "5001-10000", "10 000+"] - Parameter
"exclude_names"- skip leads by unformatted full name - Parameter
"exclude_ids"- skip leads bysales_id(list of LinkedIn Sales Navigator IDs) - Parameter
"filter_empty_vars"- skip leads if variables is empty/None/False- available - job_started_on, profile_photo, started_at_position, company_website
- Parameter
"group"- list of groups id - Parameter
"schools"- list of schools id - Parameter
"past_company_names"- list of past company names - Parameter
"years_in_company"- list of ids by time in current company - Parameter
"years_in_position"- list of ids by time in current position - Parameter
"linkedin_filter_link"- allows you to use pre-built LinkedIn search URLs instead of specifying individual search criteria
"years_in_company" & "years_in_position":
- “Less than 1 year”
- “1 to 2 years”
- “3 to 5 years”
- “6 to 10 years”
- “More than 10 years”
LinkedIn Filter Link Usage
Thelinkedin_filter_link parameter allows you to use a pre-built LinkedIn search URL instead of manually specifying individual search criteria. This is particularly useful when you have complex search filters already configured in LinkedIn.
Supported LinkedIn URLs:
- Sales Navigator People Search:
https://www.linkedin.com/sales/search/people?query=... - Regular LinkedIn People Search:
https://www.linkedin.com/search/results/people/?keywords=...
- Create your desired search in LinkedIn (Sales Navigator or regular search)
- Copy the URL from the browser address bar
- Use this URL as the
linkedin_filter_linkparameter - The API will extract and apply the search filters from your URL
Usage Example:
Important Notes:
- When using
linkedin_filter_link, you don’t need to specify other filter parameters (locations, company_name, personas, etc.) - Maximum limit when using
linkedin_filter_linkis 2400 results - The URL must contain valid query parameters that can be parsed
- Both Sales Navigator and regular LinkedIn search URLs are supported
Search by Company Name
You can search for leads by specifying the company name directly:Important Notes for Company Search:
- You must specify exactly one of:
company_id,company_link, orcompany_name - The API will automatically find the LinkedIn company profile based on the provided information
- If no exact company match is found, the search may return an error or empty results
Search by Lead Criteria Only
For lead searches based purely on lead parameters without targeting a specific company, use thewithout_company parameter:
How Lead Criteria Search Works:
- Searches for leads based only on their individual characteristics (job titles, locations, experience, etc.)
- Does not require specifying any company information (
company_id,company_link, orcompany_name) - Useful for finding leads across all companies that match specific criteria
- Higher limit of 2400 results available
- May have usage restrictions based on your account plan
Important Notes for Lead Criteria Search:
without_company: trueremoves the requirement to specify company information- Search is performed based entirely on lead parameters: personas, locations, seniority levels, etc.
- Maximum limit of 2400 results when using this mode
- May have daily usage limits depending on your subscription
- Cannot be used together with
company_id,company_link, orcompany_name - Ideal for broad prospecting across multiple companies based on lead profiles
Authorizations
Use 'Token ' as the value
Body
Use 'company_link' or 'company_id'. One of them is required
Optional.
4Optional, list of sales_id values to exclude from results.
Optional, flag to specify if jobs have changed.
Optional, flag to specify if posted on LinkedIn.
Optional, flag to specify if mentioned in news.
Optional, list of industries.
Optional, company locations.
Optional, company headcounts.
Optional, company types.
Optional, list of past company names.
Optional, number of years in a company.
Optional, number of years in the position.
Optional, list of group IDs.
Optional, list of school IDs.
Optional, pre-built LinkedIn search URL (Sales Navigator or regular search) containing search filters.
Optional, set to true to search leads across all companies without company restriction.
Response
200 / 200 (Leads not found)
-1
[
{
"certifications": [],
"company_city": "San Francisco",
"company_country": "United States",
"company_description": "Fette Compacting is the world's leading provider of integrated solutions for industrial tablet production.",
"company_headcount_range": "501-1000",
"company_id": "21828",
"company_image": "https://media.licdn.com/dms/image/v2/D4E0BAQEuyU0O4IbVRQ/company-logo_200_200/company-logo_200_200/0/1720783130887/fette_compacting_gmbh_logo?e=1740009600&v=beta&t=jP_aJALpJhdsmjNIpbePqKkzUyp1-Qno9lWH9eV9g9M",
"company_industry": "Software Development",
"company_location": "San Francisco, California, United States",
"company_name": "Slack",
"company_state": "California",
"company_url": null,
"company_website": "https://slack.com",
"educations": [],
"first_name": "Sarah",
"full_name": "Sarah Chen",
"headline": "Senior Marketing Director at Slack",
"industry": "Software Development",
"is_full_data": true,
"is_job_seeker": false,
"is_openlink": false,
"is_premium": false,
"is_retired": false,
"job_description": "Lead global marketing strategy and demand generation programs to drive customer acquisition and retention. Oversee brand positioning, content marketing, and digital campaigns across all channels. Collaborate with product, sales, and growth teams to accelerate user adoption and revenue growth. Manage marketing budget allocation and performance metrics to optimize ROI and scale marketing operations globally.",
"job_ended_on": null,
"job_location": "San Francisco, California, United States",
"job_started_on": "Mar 2023",
"job_still_working": true,
"job_title": "Senior Marketing Director",
"jobs": [
{
"company_city": "Cincinnati",
"company_country": "United States",
"company_description": "ART WORKS IN ANDERSON LLC is a retail company based out of 1115 MAYCLIFFE PL, Cincinnati, Ohio, United States.",
"company_headcount_range": "11-50",
"company_id": "63587704",
"company_image": null,
"company_industry": "Retail",
"company_location": "Cincinnati, Ohio, United States",
"company_name": "Anderson Art Work / Self-employed",
"company_state": "Ohio",
"company_url": "https://www.linkedin.com/company/art-works-in-anderson-llc/",
"company_website": "http://cincinnatiartclasses.com",
"job_description": "http://www.andersonartwork.de/\nhttps://www.facebook.com/AndersonArtWork.de\nhttp://instagram.com/nicoleandersonartwork \nhttp://www.pinterest.com/AndersonAW/",
"job_ended_on": null,
"job_location": "Hamburg und Umgebung, Deutschland",
"job_started_on": "2013",
"job_still_working": true,
"job_title": "Freelance Artist",
"raw_company_name": "Anderson Art Work / Self-employed",
"raw_job_title": "Freelance Artist"
},
{
"company_city": "San Francisco",
"company_country": "United States",
"company_description": "Fette Compacting is the world's leading provider of integrated solutions for industrial tablet production.",
"company_headcount_range": "501-1000",
"company_id": "21828",
"company_image": "https://media.licdn.com/dms/image/v2/D4E0BAQEuyU0O4IbVRQ/company-logo_400_400/company-logo_400_400/0/1720783130887/fette_compacting_gmbh_logo?e=1741219200&v=beta&t=HvwsgIyJYXepYTbSz8ySstMn8d3F9LgQtRtqEeLdqKI",
"company_industry": "Software Development",
"company_location": "San Francisco, California, United States",
"company_name": "Slack",
"company_state": "California",
"company_url": "https://www.linkedin.com/company/slack-technologies/",
"company_website": "https://slack.com",
"job_description": "Lead global marketing strategy and demand generation programs to drive customer acquisition and retention. Oversee brand positioning, content marketing, and digital campaigns across all channels. Collaborate with product, sales, and growth teams to accelerate user adoption and revenue growth. Manage marketing budget allocation and performance metrics to optimize ROI and scale marketing operations globally.",
"job_ended_on": null,
"job_location": "San Francisco, California, United States",
"job_started_on": "Mar 2023",
"job_still_working": true,
"job_title": "Senior Marketing Director",
"raw_company_name": "Slack",
"raw_job_title": "Senior Marketing Director"
}
],
"languages": [
{
"name": "Englisch",
"proficiency": "FULL_PROFESSIONAL"
},
{
"name": "Deutsch",
"proficiency": "NATIVE_OR_BILINGUAL"
}
],
"last_name": "Anderson",
"linkedin_company_id": "21828",
"linkedin_id": "80282110",
"linkedin_lead_persona": "Marketing Leaders",
"linkedin_sales_link": "https://www.linkedin.com/sales/lead/ACwAAATJAf4BWNxU442ZgFSJw2zzlmG6S3zv-e0,NAME_SEARCH,OJWs",
"linkedin_url": "https://www.linkedin.com/in/sarah-chen-marketing",
"location": "San Francisco, California, United States",
"location_city": null,
"location_country": "United States",
"location_county": null,
"location_state": "California",
"middle_name": "",
"num_of_connections": 710,
"private_website": null,
"profile_photo": "https://media.licdn.com/dms/image/v2/D4D03AQHdu7xNE9zgIw/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1724341778966?e=1738800000&v=beta&t=bEH4zW5MrIkRknwhvnOX5GQYRUOlIg9jib4wpsEWahE",
"raw_company_name": "Slack",
"raw_headline": "Senior Marketing Director at Slack",
"raw_job_title": "Senior Marketing Director",
"sales_id": "ACwAAATJAf4BWNxU442ZgFSJw2zzlmG6S3zv-e0",
"skills": [],
"summary": "Experienced marketing leader with 8+ years driving growth for B2B SaaS companies. Expert in demand generation, content marketing, and marketing automation platforms. Proven track record of scaling marketing operations from startup to IPO, including leading marketing teams of 20+ professionals. Specialized in product marketing, customer lifecycle campaigns, and conversion optimization.\n\nPassionate about data-driven marketing, emerging technologies, and building high-performing teams.",
"twitter_link": null,
"unformatted_full_name": "Sarah Chen"
}
]"within limit"
"No leads match with input criteria"