Skip to main content
Glama

OpenAny

Search LinkedIn leads

harvestapi_get_linkedin_lead_search

Search LinkedIn profile leads by filters with advanced inclusion and exclusion criteria Uses the caller's OpenAny gateway credentials. Charges and authorization are determined by the gateway.

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for pagination (clamped at 100)
geoIdsNoFilter by LinkedIn Geo ID. Comma-separated. Overrides location param. Use /linkedin/geo-id-search to find IDs
searchNoSearch query. Fuzzy search, supports LinkedIn's search operators
schoolsNoFilter by school IDs or URLs. Comma-separated (max 50)
lastNamesNoFilter by last names. Comma-separated (max 70)
locationsNoFilter by location text. Comma-separated (max 70)
sessionIdNoSession ID to use for the search. See https://docs.harvestapi.io/linkedin-api-reference/leads/search-leads#session-id for details.
firstNamesNoFilter by first names. Comma-separated (max 70)
functionIdsNoFilter by job function IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#functionids
industryIdsNoFilter by industry IDs. Comma-separated (max 70). Full list: https://github.com/HarvestAPI/linkedin-industry-codes-v2/blob/main/linkedin_industry_code_v2_all_eng_with_header.csv
salesNavUrlNoLinkedIn Sales Navigator search URL to use for the search. This will override all other search parameters, except the `page` parameter. For pagination, please pass the `page` query parameter separately. Note: the scraper doesn't scrape the URL directly, it will parse the URL, sanitize and validate params. It supports all parameters currently, but if LinkedIn adds new parameters in the future, they might not be supported until we update the API. Please contact us in this case.
excludeGeoIdsNoGeo IDs to exclude from search. Comma-separated (max 70)
pastCompaniesNoFilter by past company IDs or URLs. Comma-separated (max 50)
pastJobTitlesNoFilter by past job titles. Comma-separated (max 70)
excludeSchoolsNoSchools to exclude. Comma-separated (max 50)
usePrivatePoolNoSet to true to use your private pool of resources (if available)
companyHeadcountNoFilter by company headcount. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#companyheadcount
currentCompaniesNoFilter by current company IDs or URLs. Comma-separated (max 50)
currentJobTitlesNoFilter by current job titles. Comma-separated (max 70)
excludeLocationsNoLocations to exclude from search. Comma-separated (max 70)
postedOnLinkedinNoFilter leads who posted on LinkedIn in the last 30 days
profileLanguagesNoFilter by profile languages. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#profilelanguages
requiredAccountIdNoIf we provide you a private pool of accounts, you can use this parameter to specify which account should be used for this request.
seniorityLevelIdsNoFilter by seniority level IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#senioritylevelids
excludeFunctionIdsNoFunction IDs to exclude. Comma-separated (max 30)
excludeIndustryIdsNoIndustry IDs to exclude. Comma-separated (max 70)
recentlyChangedJobsNoFilter leads who recently changed jobs in the last 90 days.
excludePastCompaniesNoPast companies to exclude. Comma-separated (max 50)
excludePastJobTitlesNoPast job titles to exclude. Comma-separated (max 70)
yearsOfExperienceIdsNoFilter by years of experience IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#yearsofexperienceids
excludeCurrentCompaniesNoCurrent companies to exclude. Comma-separated (max 50)
excludeCurrentJobTitlesNoCurrent job titles to exclude. Comma-separated (max 70)
excludeSeniorityLevelIdsNoSeniority level IDs to exclude. Comma-separated (max 20)
yearsAtCurrentCompanyIdsNoFilter by years at current company IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#yearsatcurrentcompanyids
companyHeadquarterLocationsNoFilter by company headquarter location text. Comma-separated (max 70)
excludeCompanyHeadquarterLocationsNoCompany headquarter locations to exclude from search. Comma-separated (max 70)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.