AgentRouter
Sign in
AnyAPIAnyAPI

LinkedIn Sales Navigator Lead Search

/linkedin.search_leads

LinkedIn lead search with Sales Navigator's search and filters: one call returns a page of up to 25 people matching a keyword and Sales Navigator lead filters (location, job title, current and past company, school, seniority, function, company size, and more), or the results of a Sales Navigator lead-search URL you built yourself. Each lead comes with name, current positions, location, summary, and photo, and its url opens the profile and can be passed to linkedin.profile for the full record. For full profiles in one call use linkedin.search_profiles.

Finished calls, last 7 days
0

Cancellations excluded. Execution times cover successful calls.

Use it with your agent

Set up https://www.agentrouter.to/SKILL.md, then use AnyAPI’s /linkedin.search_leads endpoint through AgentRouter.

Inputs

pageOptional
Which page of up to 25 leads to return, starting at 1 (1-100, default 1). Also pages through a salesNavUrl search. Each page is billed as one request.
queryOptional
Search keywords for LinkedIn leads: a role, name, or keywords (e.g. 'Marketing Manager'). Provide this or salesNavUrl.
schoolsOptional
Filter to people who attended any of these schools, by name. Commas are not allowed in a value. Up to 50 values.
jobTitleOptional
Optional current job title filter (e.g. 'Software Engineer'). Commas are not allowed in a value.
locationOptional
Optional location filter (e.g. 'San Francisco'). Commas are not allowed in a value.
lastNamesOptional
Filter to people whose last name matches any of these. Commas are not allowed in a value. Up to 70 values.
firstNamesOptional
Filter to people whose first name matches any of these. Commas are not allowed in a value. Up to 70 values.
functionIdsOptional
Filter by job function. Codes: 1=Accounting, 2=Administrative, 3=Arts and Design, 4=Business Development, 5=Community and Social Services, 6=Consulting, 7=Education, 8=Engineering, 9=Entrepreneurship, 10=Finance, 11=Healthcare Services, 12=Human Resources, 13=Information Technology, 14=Legal, 15=Marketing, 16=Media and Communication, 17=Military and Protective Services, 18=Operations, 19=Product Management, 20=Program and Project Management, 21=Purchasing, 22=Quality Assurance, 23=Real Estate, 24=Research, 25=Sales, 26=Customer Success and Support.
salesNavUrlOptional
Alternatively, a LinkedIn Sales Navigator lead-search URL you built in Sales Navigator (e.g. https://www.linkedin.com/sales/search/people?query=(keywords%3Aengineer)). When set it overrides query and every other filter on this request; only page still applies.
pastCompaniesOptional
Filter to people who previously worked at any of these companies, by name. Commas are not allowed in a value. Up to 50 values.
pastJobTitlesOptional
Filter by a past job title the person held (e.g. ['Product Manager']). Commas are not allowed in a value. Up to 70 values.
excludeSchoolsOptional
Exclude people who attended any of these schools, by name. Commas are not allowed in a value. Up to 50 values.
companyHeadcountOptional
Filter by current company size (employee count). Codes: A=Self-Employed, B=1-10, C=11-50, D=51-200, E=201-500, F=501-1,000, G=1,001-5,000, H=5,001-10,000, I=10,001+.
currentCompaniesOptional
Filter to people who currently work at any of these companies, by name (e.g. ['Google','Meta']). Multiple names widen the match (OR). Commas are not allowed in a value. Up to 50 values.
excludeLocationsOptional
Exclude people in any of these locations, by place name. Commas are not allowed in a value. Up to 70 values.
profileLanguagesOptional
Filter by the profile's primary language.
seniorityLevelIdsOptional
Filter by seniority level. Codes: 100=In Training, 110=Entry Level, 120=Senior, 130=Strategic, 200=Entry Level Manager, 210=Experienced Manager, 220=Director, 300=Vice President, 310=CXO, 320=Owner/Partner.
excludeFunctionIdsOptional
Exclude these job functions (same codes as functionIds). Up to 30 values.
recentlyChangedJobsOptional
When true, only return people who recently changed jobs (a strong sales/recruiting signal).
excludePastCompaniesOptional
Exclude people who previously worked at any of these companies, by name. Commas are not allowed in a value. Up to 50 values.
excludePastJobTitlesOptional
Exclude people who held any of these past job titles. Commas are not allowed in a value. Up to 70 values.
yearsOfExperienceIdsOptional
Filter by total years of experience. Codes: 1=Less than 1 year, 2=1 to 2 years, 3=3 to 5 years, 4=6 to 10 years, 5=More than 10 years.
excludeCurrentCompaniesOptional
Exclude people who currently work at any of these companies, by name. Commas are not allowed in a value. Up to 50 values.
excludeCurrentJobTitlesOptional
Exclude people whose current job title matches any of these. Commas are not allowed in a value. Up to 70 values.
excludeSeniorityLevelIdsOptional
Exclude these seniority levels (same codes as seniorityLevelIds). Up to 20 values.
recentlyPostedOnLinkedInOptional
When true, only return people who recently posted on LinkedIn (an activity signal).
yearsAtCurrentCompanyIdsOptional
Filter by tenure at the current company. Codes: 1=Less than 1 year, 2=1 to 2 years, 3=3 to 5 years, 4=6 to 10 years, 5=More than 10 years.
companyHeadquarterLocationsOptional
Filter by the location of the person's current company headquarters, by place name (e.g. ['United States']). Commas are not allowed in a value. Up to 70 values.
excludeCompanyHeadquarterLocationsOptional
Exclude people whose current company is headquartered in any of these locations. Commas are not allowed in a value. Up to 70 values.
preferLatencyUnderMsOptional
Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
sourceOptional
Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
allowFallbacksOptional
Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.
ignoreSourcesOptional
Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.

Example input

{
  "query": "engineer",
  "currentCompanies": [
    "Google"
  ]
}

Output

AnyAPI output: found (boolean), data (the record) and reason when nothing was found.