APISocial Media

Search LinkedIn leads

Search for LinkedIn leads via API. The sample response includes titles. Use it to surface relevant records in a search or discovery tool. The GET request schema also lists currentCompanies, pastCompanies. Use the results to organize a research workflow and cross-check the relevant source records.

Selected price
$0.1 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

Search LinkedIn leads

Prepare your request, then continue with your agent.

Selected price

$0.1 / call

Provider
Pricing
Connect your agent
On this page

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.

Sample 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
}

Response result

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

Sellers

SellerPricingRequests · 30dPerformanceAccess
harvestapiCurrent
Search LinkedIn leads · GET · View API reference
$0.1 / call—
—successP50—
Loading...
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: 3. 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
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'

Input parameters

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

ParameterLocationTypeRequiredDescription
searchURL query parametersquerystringNoSearch query. Fuzzy search, supports LinkedIn's search operators
currentCompaniesURL query parametersquerystringNoFilter by current company IDs or URLs. Comma-separated (max 50)
pastCompaniesURL query parametersquerystringNoFilter by past company IDs or URLs. Comma-separated (max 50)
locationsURL query parametersquerystringNoFilter by location text. Comma-separated (max 70)
geoIdsURL query parametersquerystringNoFilter by LinkedIn Geo ID. Comma-separated. Overrides location param. Use /linkedin/geo-id-search to find IDs
schoolsURL query parametersquerystringNoFilter by school IDs or URLs. Comma-separated (max 50)
currentJobTitlesURL query parametersquerystringNoFilter by current job titles. Comma-separated (max 70)
pastJobTitlesURL query parametersquerystringNoFilter by past job titles. Comma-separated (max 70)
firstNamesURL query parametersquerystringNoFilter by first names. Comma-separated (max 70)
lastNamesURL query parametersquerystringNoFilter by last names. Comma-separated (max 70)
industryIdsURL query parametersquerystringNoFilter 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
yearsAtCurrentCompanyIdsURL query parametersquerystringNoFilter by years at current company IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#yearsatcurrentcompanyids
yearsOfExperienceIdsURL query parametersquerystringNoFilter by years of experience IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#yearsofexperienceids
seniorityLevelIdsURL query parametersquerystringNoFilter by seniority level IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#senioritylevelids
functionIdsURL query parametersquerystringNoFilter by job function IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#functionids
recentlyChangedJobsURL query parametersquerybooleanNoFilter leads who recently changed jobs in the last 90 days.
postedOnLinkedinURL query parametersquerybooleanNoFilter leads who posted on LinkedIn in the last 30 days
profileLanguagesURL query parametersquerystringNoFilter by profile languages. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#profilelanguages
companyHeadcountURL query parametersquerystringNoFilter by company headcount. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#companyheadcount
companyHeadquarterLocationsURL query parametersquerystringNoFilter by company headquarter location text. Comma-separated (max 70)
excludeLocationsURL query parametersquerystringNoLocations to exclude from search. Comma-separated (max 70)
excludeGeoIdsURL query parametersquerystringNoGeo IDs to exclude from search. Comma-separated (max 70)
excludeCurrentCompaniesURL query parametersquerystringNoCurrent companies to exclude. Comma-separated (max 50)
excludePastCompaniesURL query parametersquerystringNoPast companies to exclude. Comma-separated (max 50)
excludeSchoolsURL query parametersquerystringNoSchools to exclude. Comma-separated (max 50)
excludeCurrentJobTitlesURL query parametersquerystringNoCurrent job titles to exclude. Comma-separated (max 70)
excludePastJobTitlesURL query parametersquerystringNoPast job titles to exclude. Comma-separated (max 70)
excludeIndustryIdsURL query parametersquerystringNoIndustry IDs to exclude. Comma-separated (max 70)
excludeSeniorityLevelIdsURL query parametersquerystringNoSeniority level IDs to exclude. Comma-separated (max 20)
excludeFunctionIdsURL query parametersquerystringNoFunction IDs to exclude. Comma-separated (max 30)
excludeCompanyHeadquarterLocationsURL query parametersquerystringNoCompany headquarter locations to exclude from search. Comma-separated (max 70)
salesNavUrlURL query parametersquerystringNoLinkedIn 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 parametersqueryintegerNoPage number for pagination (clamped at 100)
sessionIdURL query parametersquerystringNoSession ID to use for the search. See https://docs.harvestapi.io/linkedin-api-reference/leads/search-leads#session-id for details.
usePrivatePoolURL query parametersquerystringNoSet to true to use your private pool of resources (if available)
requiredAccountIdURL query parametersquerystringNoIf 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.

Sample response

Response template · not a real response · Configured HTTP 200; actual status is unverified. Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.

Schema template (HTTP assumed; request placeholders)
{
  "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
}

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# Search LinkedIn leads

Search for LinkedIn leads via API. The sample response includes titles. Use it to surface relevant records in a search or discovery tool. The GET request schema also lists currentCompanies, pastCompanies. Use the results to organize a research workflow and cross-check the relevant source records.
## Available implementations
harvestapi · Search LinkedIn leads: https://openany.si/markets/apis/capabilities/linkedin-search-linkedin-leads?offering=c05ba97b-fcde-4f6c-a970-da0c4c4dc9bd · $0.1 / call

## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/linkedin-search-linkedin-leads
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/harvestapi/linkedin/lead-search
Price: $0.1 / call
Provider: harvestapi
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```bash
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'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "Search LinkedIn leads",
  "endpoint": "https://api.openany.si/v1/agent-apis/harvestapi/linkedin/lead-search",
  "method": "GET",
  "content_type": "none",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "Search query. Fuzzy search, supports LinkedIn's search operators",
      "location": "query",
      "name": "search",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Filter by current company IDs or URLs. Comma-separated (max 50)",
      "location": "query",
      "name": "currentCompanies",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Filter by past company IDs or URLs. Comma-separated (max 50)",
      "location": "query",
      "name": "pastCompanies",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Filter by location text. Comma-separated (max 70)",
      "location": "query",
      "name": "locations",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Filter by LinkedIn Geo ID. Comma-separated. Overrides location param. Use /linkedin/geo-id-search to find IDs",
      "location": "query",
      "name": "geoIds",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Filter by school IDs or URLs. Comma-separated (max 50)",
      "location": "query",
      "name": "schools",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Filter by current job titles. Comma-separated (max 70)",
      "location": "query",
      "name": "currentJobTitles",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Filter by past job titles. Comma-separated (max 70)",
      "location": "query",
      "name": "pastJobTitles",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Filter by first names. Comma-separated (max 70)",
      "location": "query",
      "name": "firstNames",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Filter by last names. Comma-separated (max 70)",
      "location": "query",
      "name": "lastNames",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "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",
      "location": "query",
      "name": "industryIds",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Filter by years at current company IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#yearsatcurrentcompanyids",
      "location": "query",
      "name": "yearsAtCurrentCompanyIds",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Filter by years of experience IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#yearsofexperienceids",
      "location": "query",
      "name": "yearsOfExperienceIds",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Filter by seniority level IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#senioritylevelids",
      "location": "query",
      "name": "seniorityLevelIds",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Filter by job function IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#functionids",
      "location": "query",
      "name": "functionIds",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Filter leads who recently changed jobs in the last 90 days.",
      "location": "query",
      "name": "recentlyChangedJobs",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "Filter leads who posted on LinkedIn in the last 30 days",
      "location": "query",
      "name": "postedOnLinkedin",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "Filter by profile languages. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#profilelanguages",
      "location": "query",
      "name": "profileLanguages",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Filter by company headcount. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#companyheadcount",
      "location": "query",
      "name": "companyHeadcount",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Filter by company headquarter location text. Comma-separated (max 70)",
      "location": "query",
      "name": "companyHeadquarterLocations",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Locations to exclude from search. Comma-separated (max 70)",
      "location": "query",
      "name": "excludeLocations",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Geo IDs to exclude from search. Comma-separated (max 70)",
      "location": "query",
      "name": "excludeGeoIds",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Current companies to exclude. Comma-separated (max 50)",
      "location": "query",
      "name": "excludeCurrentCompanies",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Past companies to exclude. Comma-separated (max 50)",
      "location": "query",
      "name": "excludePastCompanies",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Schools to exclude. Comma-separated (max 50)",
      "location": "query",
      "name": "excludeSchools",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Current job titles to exclude. Comma-separated (max 70)",
      "location": "query",
      "name": "excludeCurrentJobTitles",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Past job titles to exclude. Comma-separated (max 70)",
      "location": "query",
      "name": "excludePastJobTitles",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Industry IDs to exclude. Comma-separated (max 70)",
      "location": "query",
      "name": "excludeIndustryIds",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Seniority level IDs to exclude. Comma-separated (max 20)",
      "location": "query",
      "name": "excludeSeniorityLevelIds",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Function IDs to exclude. Comma-separated (max 30)",
      "location": "query",
      "name": "excludeFunctionIds",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Company headquarter locations to exclude from search. Comma-separated (max 70)",
      "location": "query",
      "name": "excludeCompanyHeadquarterLocations",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "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. \nNote: 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.",
      "location": "query",
      "name": "salesNavUrl",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Page number for pagination (clamped at 100)",
      "location": "query",
      "name": "page",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "Session ID to use for the search. See https://docs.harvestapi.io/linkedin-api-reference/leads/search-leads#session-id for details.",
      "location": "query",
      "name": "sessionId",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Set to true to use your private pool of resources (if available)",
      "location": "query",
      "name": "usePrivatePool",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "If we provide you a private pool of accounts, you can use this parameter to specify which account should be used for this request.",
      "location": "query",
      "name": "requiredAccountId",
      "nullable": false,
      "required": false,
      "type": "string"
    }
  ],
  "billing": {
    "currency": "USD",
    "mode": "fixed",
    "priceMicroUsd": "100000",
    "rounding": null,
    "unit": "call",
    "unitQuantity": null
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Schema template (HTTP assumed; request placeholders)",
      "request": {
        "body": null,
        "headers": {},
        "path": {},
        "query": {}
      },
      "response_body": {
        "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
      }
    }
  ]
}
```

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

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Search LinkedIn leads with your agent

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