LinkedIn Lead Search API
Search LinkedIn Lead via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by Harvestapi, pass parameters such as search, page, and retrieve structured data including profile identifier, profile LinkedIn URL, first name, last name, and reported location text for business research, and lead discovery, ready for production pipelines and AI agent automation.
- Selected price
- $0.1 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
LinkedIn Lead Search API
Prepare your request, then continue with your agent.
Selected price
$0.1 / call
- Provider
- API
- Pricing
On this page
Overview
LinkedIn Lead Search API
Use search and supported professional filters in the query. Comma-separated filter groups remain strings, while recentlyChangedJobs and postedOnLinkedin are booleans. salesNavUrl overrides the other search criteria except page. The response elements contain profile identities and currentPositions with pagination and status context.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | query: search, currentCompanies, pastCompanies, locations, geoIds, schools, currentJobTitles, pastJobTitles, firstNames, lastNames, industryIds, yearsAtCurrentCompanyIds, yearsOfExperienceIds, seniorityLevelIds, functionIds, recentlyChangedJobs, postedOnLinkedin, profileLanguages, companyHeadcount, companyHeadquarterLocations, excludeLocations, excludeGeoIds, excludeCurrentCompanies, excludePastCompanies, excludeSchools, excludeCurrentJobTitles, excludePastJobTitles, excludeIndustryIds, excludeSeniorityLevelIds, excludeFunctionIds, excludeCompanyHeadquarterLocations, salesNavUrl, page, sessionId, usePrivatePool, requiredAccountId |
| Selected implementation | harvestapi · Search LinkedIn leads |
| Billing | Per call; check the selected implementation pricing and charge conditions |
What You Can Build
- Business research: Compare returned professional and company context.
- Lead discovery: Keep profile identities with the effective search criteria.
Documented Response Fields
| Field | Meaning |
|---|---|
elements[].id |
Profile identifier |
elements[].linkedinUrl |
Profile LinkedIn URL |
elements[].firstName |
First name |
elements[].lastName |
Last name |
elements[].location.linkedinText |
Reported location text |
elements[].currentPositions[].companyName |
Current position company name |
elements[].currentPositions[].title |
Current position title |
pagination.pageNumber |
Returned page number |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the supported inputs and set any required query value shown in the template.
- Check the HTTP response and business result before reading optional fields.
curl --request GET --get \
"https://api.openany.si/v1/agent-apis/harvestapi/linkedin/lead-search" \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
-H 'Content-Type: application/json' \
--data-urlencode 'search=software engineer' \
--data-urlencode page=1
Request and Response Examples
The response example is a schema template with illustrative or placeholder values; its HTTP status is assumed. The request is an independent calling template. Replace any REPLACE_WITH target value and use actual returned records and pagination for your chosen resource.
Published LinkedIn Lead Search API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
harvestapiCurrent Search LinkedIn leads · GET · View API reference | $0.1 / call | 0 | —successP50— |
- Unit price
- $0.1
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.
Total $10
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/harvestapi/linkedin/lead-search- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
search | URL query parametersquery | string | No | Search query. Fuzzy search, supports LinkedIn's search operators |
currentCompanies | URL query parametersquery | string | No | Filter by current company IDs or URLs. Comma-separated (max 50) |
pastCompanies | URL query parametersquery | string | No | Filter by past company IDs or URLs. Comma-separated (max 50) |
locations | URL query parametersquery | string | No | Filter by location text. Comma-separated (max 70) |
geoIds | URL query parametersquery | string | No | Filter by LinkedIn Geo ID. Comma-separated. Overrides location param. Use /linkedin/geo-id-search to find IDs |
schools | URL query parametersquery | string | No | Filter by school IDs or URLs. Comma-separated (max 50) |
currentJobTitles | URL query parametersquery | string | No | Filter by current job titles. Comma-separated (max 70) |
pastJobTitles | URL query parametersquery | string | No | Filter by past job titles. Comma-separated (max 70) |
firstNames | URL query parametersquery | string | No | Filter by first names. Comma-separated (max 70) |
lastNames | URL query parametersquery | string | No | Filter by last names. Comma-separated (max 70) |
industryIds | URL query parametersquery | string | No | Filter 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 |
yearsAtCurrentCompanyIds | URL query parametersquery | string | No | Filter by years at current company IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#yearsatcurrentcompanyids |
yearsOfExperienceIds | URL query parametersquery | string | No | Filter by years of experience IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#yearsofexperienceids |
seniorityLevelIds | URL query parametersquery | string | No | Filter by seniority level IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#senioritylevelids |
functionIds | URL query parametersquery | string | No | Filter by job function IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#functionids |
recentlyChangedJobs | URL query parametersquery | boolean | No | Filter leads who recently changed jobs in the last 90 days. |
postedOnLinkedin | URL query parametersquery | boolean | No | Filter leads who posted on LinkedIn in the last 30 days |
profileLanguages | URL query parametersquery | string | No | Filter by profile languages. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#profilelanguages |
companyHeadcount | URL query parametersquery | string | No | Filter by company headcount. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#companyheadcount |
companyHeadquarterLocations | URL query parametersquery | string | No | Filter by company headquarter location text. Comma-separated (max 70) |
excludeLocations | URL query parametersquery | string | No | Locations to exclude from search. Comma-separated (max 70) |
excludeGeoIds | URL query parametersquery | string | No | Geo IDs to exclude from search. Comma-separated (max 70) |
excludeCurrentCompanies | URL query parametersquery | string | No | Current companies to exclude. Comma-separated (max 50) |
excludePastCompanies | URL query parametersquery | string | No | Past companies to exclude. Comma-separated (max 50) |
excludeSchools | URL query parametersquery | string | No | Schools to exclude. Comma-separated (max 50) |
excludeCurrentJobTitles | URL query parametersquery | string | No | Current job titles to exclude. Comma-separated (max 70) |
excludePastJobTitles | URL query parametersquery | string | No | Past job titles to exclude. Comma-separated (max 70) |
excludeIndustryIds | URL query parametersquery | string | No | Industry IDs to exclude. Comma-separated (max 70) |
excludeSeniorityLevelIds | URL query parametersquery | string | No | Seniority level IDs to exclude. Comma-separated (max 20) |
excludeFunctionIds | URL query parametersquery | string | No | Function IDs to exclude. Comma-separated (max 30) |
excludeCompanyHeadquarterLocations | URL query parametersquery | string | No | Company headquarter locations to exclude from search. Comma-separated (max 70) |
salesNavUrl | URL query parametersquery | string | No | LinkedIn 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. |
page | URL query parametersquery | integer | No | Page number for pagination (clamped at 100) |
sessionId | URL query parametersquery | string | No | Session ID to use for the search. See https://docs.harvestapi.io/linkedin-api-reference/leads/search-leads#session-id for details. |
usePrivatePool | URL query parametersquery | string | No | Set to true to use your private pool of resources (if available) |
requiredAccountId | URL query parametersquery | string | No | If we provide you a private pool of accounts, you can use this parameter to specify which account should be used for this request. |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
elementsobject[]currentPositionsobject[]companyIdstringcompanyLinkedinUrlstringcompanyNamestringdescriptionstringstartedOnobjectmonthstringyearinteger
tenureAtCompanyobjectnumMonthsstringnumYearsstring
tenureAtPositionobjectnumMonthsstringnumYearsstring
titlestring
firstNamestringidstringlastNamestringlinkedinUrlstringlocationobjectlinkedinTextstring
openProfilebooleanpictureUrlstringpremiumboolean
errorstringpaginationobjectpageNumberintegerpageSizeintegerpaginationTokenstringpreviousElementsintegertotalElementsintegertotalPagesinteger
statusinteger
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Schema template (HTTP assumed; request placeholders)
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 36
Review these request fields before running. Keep the published provider and request method unchanged.
search- Search query. Fuzzy search, supports LinkedIn's search operators
currentCompanies- Filter by current company IDs or URLs. Comma-separated (max 50)
pastCompanies- Filter by past company IDs or URLs. Comma-separated (max 50)
locations- Filter by location text. Comma-separated (max 70)
geoIds- Filter by LinkedIn Geo ID. Comma-separated. Overrides location param. Use /linkedin/geo-id-search to find IDs
schools- Filter by school IDs or URLs. Comma-separated (max 50)
currentJobTitles- Filter by current job titles. Comma-separated (max 70)
pastJobTitles- Filter by past job titles. Comma-separated (max 70)
firstNames- Filter by first names. Comma-separated (max 70)
lastNames- Filter by last names. Comma-separated (max 70)
industryIds- Filter 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
yearsAtCurrentCompanyIds- Filter by years at current company IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#yearsatcurrentcompanyids
yearsOfExperienceIds- Filter by years of experience IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#yearsofexperienceids
seniorityLevelIds- Filter by seniority level IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#senioritylevelids
functionIds- Filter by job function IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#functionids
recentlyChangedJobs- Filter leads who recently changed jobs in the last 90 days.
postedOnLinkedin- Filter leads who posted on LinkedIn in the last 30 days
profileLanguages- Filter by profile languages. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#profilelanguages
companyHeadcount- Filter by company headcount. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#companyheadcount
companyHeadquarterLocations- Filter by company headquarter location text. Comma-separated (max 70)
excludeLocations- Locations to exclude from search. Comma-separated (max 70)
excludeGeoIds- Geo IDs to exclude from search. Comma-separated (max 70)
excludeCurrentCompanies- Current companies to exclude. Comma-separated (max 50)
excludePastCompanies- Past companies to exclude. Comma-separated (max 50)
excludeSchools- Schools to exclude. Comma-separated (max 50)
excludeCurrentJobTitles- Current job titles to exclude. Comma-separated (max 70)
excludePastJobTitles- Past job titles to exclude. Comma-separated (max 70)
excludeIndustryIds- Industry IDs to exclude. Comma-separated (max 70)
excludeSeniorityLevelIds- Seniority level IDs to exclude. Comma-separated (max 20)
excludeFunctionIds- Function IDs to exclude. Comma-separated (max 30)
excludeCompanyHeadquarterLocations- Company headquarter locations to exclude from search. Comma-separated (max 70)
salesNavUrl- LinkedIn 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.
page- Page number for pagination (clamped at 100)
sessionId- Session ID to use for the search. See https://docs.harvestapi.io/linkedin-api-reference/leads/search-leads#session-id for details.
usePrivatePool- Set to true to use your private pool of resources (if available)
requiredAccountId- If we provide you a private pool of accounts, you can use this parameter to specify which account should be used for this request.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/harvestapi/linkedin/lead-search' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Response template · not a real response · Configured HTTP 200; actual status is unverified.
Response template · not a real response{ "elements": [ { "currentPositions": [ { "companyId": "<companyId>", "companyLinkedinUrl": "<companyLinkedinUrl>", "companyName": "<companyName>", "description": "<description>", "startedOn": { "month": "<month>", "year": 0 }, "tenureAtCompany": { "numMonths": "<numMonths>", "numYears": "<numYears>" }, "tenureAtPosition": { "numMonths": "<numMonths>", "numYears": "<numYears>" }, "title": "<title>" } ], "firstName": "<firstName>", "id": "<id>", "lastName": "<lastName>", "linkedinUrl": "<linkedinUrl>", "location": { "linkedinText": "<linkedinText>" }, "openProfile": false, "pictureUrl": "<pictureUrl>", "premium": false } ], "error": "<error>", "pagination": { "pageNumber": 0, "pageSize": 0, "paginationToken": "<paginationToken>", "previousElements": 0, "totalElements": 0, "totalPages": 0 }, "status": 0 }