OpenAny
Get API keyAPI Key
APISocial Media

linkedin logo
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
USE THIS API

LinkedIn Lead Search API

Prepare your request, then continue with your agent.

Selected price

$0.1 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
LinkedIn Lead Search API

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

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the supported inputs and set any required query value shown in the template.
  3. Check the HTTP response and business result before reading optional fields.
bash
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

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (36)
Search query. Fuzzy search, supports LinkedIn's search operators
Filter by current company IDs or URLs. Comma-separated (max 50)
Filter by past company IDs or URLs. Comma-separated (max 50)
Filter by location text. Comma-separated (max 70)
Filter by LinkedIn Geo ID. Comma-separated. Overrides location param. Use /linkedin/geo-id-search to find IDs
Filter by school IDs or URLs. Comma-separated (max 50)
Filter by current job titles. Comma-separated (max 70)
Filter by past job titles. Comma-separated (max 70)
Filter by first names. Comma-separated (max 70)
Filter by last names. Comma-separated (max 70)
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
Filter by years at current company IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#yearsatcurrentcompanyids
Filter by years of experience IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#yearsofexperienceids
Filter by seniority level IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#senioritylevelids
Filter by job function IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#functionids
Filter leads who recently changed jobs in the last 90 days.
Filter leads who posted on LinkedIn in the last 30 days
Filter by profile languages. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#profilelanguages
Filter by company headcount. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#companyheadcount
Filter by company headquarter location text. Comma-separated (max 70)
Locations to exclude from search. Comma-separated (max 70)
Geo IDs to exclude from search. Comma-separated (max 70)
Current companies to exclude. Comma-separated (max 50)
Past companies to exclude. Comma-separated (max 50)
Schools to exclude. Comma-separated (max 50)
Current job titles to exclude. Comma-separated (max 70)
Past job titles to exclude. Comma-separated (max 70)
Industry IDs to exclude. Comma-separated (max 70)
Seniority level IDs to exclude. Comma-separated (max 20)
Function IDs to exclude. Comma-separated (max 30)
Company headquarter locations to exclude from search. Comma-separated (max 70)
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 number for pagination (clamped at 100)
Session ID to use for the search. See https://docs.harvestapi.io/linkedin-api-reference/leads/search-leads#session-id for details.
Set to true to use your private pool of resources (if available)
If we provide you a private pool of accounts, you can use this parameter to specify which account should be used for this request.

Response template · not a real response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
harvestapiCurrent
Search LinkedIn leads · GET · View API reference
$0.1 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · harvestapiUSD / call
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.

calls

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
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
searchURL query parametersquerystringNo

Search query. Fuzzy search, supports LinkedIn's search operators

currentCompaniesURL query parametersquerystringNo

Filter by current company IDs or URLs. Comma-separated (max 50)

pastCompaniesURL query parametersquerystringNo

Filter by past company IDs or URLs. Comma-separated (max 50)

locationsURL query parametersquerystringNo

Filter by location text. Comma-separated (max 70)

geoIdsURL query parametersquerystringNo

Filter by LinkedIn Geo ID. Comma-separated. Overrides location param. Use /linkedin/geo-id-search to find IDs

schoolsURL query parametersquerystringNo

Filter by school IDs or URLs. Comma-separated (max 50)

currentJobTitlesURL query parametersquerystringNo

Filter by current job titles. Comma-separated (max 70)

pastJobTitlesURL query parametersquerystringNo

Filter by past job titles. Comma-separated (max 70)

firstNamesURL query parametersquerystringNo

Filter by first names. Comma-separated (max 70)

lastNamesURL query parametersquerystringNo

Filter by last names. Comma-separated (max 70)

industryIdsURL query parametersquerystringNo
yearsAtCurrentCompanyIdsURL query parametersquerystringNo
yearsOfExperienceIdsURL query parametersquerystringNo
seniorityLevelIdsURL query parametersquerystringNo
functionIdsURL query parametersquerystringNo
recentlyChangedJobsURL query parametersquerybooleanNo

Filter leads who recently changed jobs in the last 90 days.

postedOnLinkedinURL query parametersquerybooleanNo

Filter leads who posted on LinkedIn in the last 30 days

profileLanguagesURL query parametersquerystringNo
companyHeadcountURL query parametersquerystringNo
companyHeadquarterLocationsURL query parametersquerystringNo

Filter by company headquarter location text. Comma-separated (max 70)

excludeLocationsURL query parametersquerystringNo

Locations to exclude from search. Comma-separated (max 70)

excludeGeoIdsURL query parametersquerystringNo

Geo IDs to exclude from search. Comma-separated (max 70)

excludeCurrentCompaniesURL query parametersquerystringNo

Current companies to exclude. Comma-separated (max 50)

excludePastCompaniesURL query parametersquerystringNo

Past companies to exclude. Comma-separated (max 50)

excludeSchoolsURL query parametersquerystringNo

Schools to exclude. Comma-separated (max 50)

excludeCurrentJobTitlesURL query parametersquerystringNo

Current job titles to exclude. Comma-separated (max 70)

excludePastJobTitlesURL query parametersquerystringNo

Past job titles to exclude. Comma-separated (max 70)

excludeIndustryIdsURL query parametersquerystringNo

Industry IDs to exclude. Comma-separated (max 70)

excludeSeniorityLevelIdsURL query parametersquerystringNo

Seniority level IDs to exclude. Comma-separated (max 20)

excludeFunctionIdsURL query parametersquerystringNo

Function IDs to exclude. Comma-separated (max 30)

excludeCompanyHeadquarterLocationsURL query parametersquerystringNo

Company headquarter locations to exclude from search. Comma-separated (max 70)

salesNavUrlURL query parametersquerystringNo

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.

pageURL query parametersqueryintegerNo

Page number for pagination (clamped at 100)

sessionIdURL query parametersquerystringNo
usePrivatePoolURL query parametersquerystringNo

Set to true to use your private pool of resources (if available)

requiredAccountIdURL query parametersquerystringNo

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

Inferred from examples
  • elementsobject[]
    • currentPositionsobject[]
      • companyIdstring
      • companyLinkedinUrlstring
      • companyNamestring
      • descriptionstring
      • startedOnobject
        • monthstring
        • yearinteger
      • tenureAtCompanyobject
        • numMonthsstring
        • numYearsstring
      • tenureAtPositionobject
        • numMonthsstring
        • numYearsstring
      • titlestring
    • firstNamestring
    • idstring
    • lastNamestring
    • linkedinUrlstring
    • locationobject
      • linkedinTextstring
    • openProfileboolean
    • pictureUrlstring
    • premiumboolean
  • errorstring
  • paginationobject
    • pageNumberinteger
    • pageSizeinteger
    • paginationTokenstring
    • previousElementsinteger
    • totalElementsinteger
    • totalPagesinteger
  • statusinteger

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect 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.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. 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 · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/harvestapi/linkedin/lead-search' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. 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
    }

Common questions

How does salesNavUrl affect other filters?

It overrides the other search criteria except page. Supply page separately for pagination; the input description says the URL is parsed into supported criteria rather than scraped directly.

Are recentlyChangedJobs and postedOnLinkedin strings?

No. These two selected inputs are booleans. Several filter lists are comma-separated strings, while usePrivatePool is separately exposed as a string.

What pagination and sessions are documented?

page is an integer documented as clamped at 100. sessionId is a separate search-session input; keep it distinct from page and any returned pagination token.

Does lead search return contact emails or send outreach?

The selected response reference describes professional profile and position records. It does not establish email or phone enrichment, or send messages.

Which API key should I use?

Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

Where can I check the current request price?

Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

Use LinkedIn Lead Search API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.