# Search LinkedIn leads

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.

Documentation: https://openany.si/market/apis/linkedin/linkedin-search-linkedin-leads/?offering=c05ba97b-fcde-4f6c-a970-da0c4c4dc9bd
API ID: c05ba97b-fcde-4f6c-a970-da0c4c4dc9bd
Provider: harvestapi
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/harvestapi/linkedin/lead-search
Page update time: 2026-12-03T02:49:41.346Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.1 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:49:40.347Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "100000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Search LinkedIn leads request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "search": {
          "type": "string",
          "description": "Search query. Fuzzy search, supports LinkedIn's search operators"
        },
        "currentCompanies": {
          "type": "string",
          "description": "Filter by current company IDs or URLs. Comma-separated (max 50)"
        },
        "pastCompanies": {
          "type": "string",
          "description": "Filter by past company IDs or URLs. Comma-separated (max 50)"
        },
        "locations": {
          "type": "string",
          "description": "Filter by location text. Comma-separated (max 70)"
        },
        "geoIds": {
          "type": "string",
          "description": "Filter by LinkedIn Geo ID. Comma-separated. Overrides location param. Use /linkedin/geo-id-search to find IDs"
        },
        "schools": {
          "type": "string",
          "description": "Filter by school IDs or URLs. Comma-separated (max 50)"
        },
        "currentJobTitles": {
          "type": "string",
          "description": "Filter by current job titles. Comma-separated (max 70)"
        },
        "pastJobTitles": {
          "type": "string",
          "description": "Filter by past job titles. Comma-separated (max 70)"
        },
        "firstNames": {
          "type": "string",
          "description": "Filter by first names. Comma-separated (max 70)"
        },
        "lastNames": {
          "type": "string",
          "description": "Filter by last names. Comma-separated (max 70)"
        },
        "industryIds": {
          "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"
        },
        "yearsAtCurrentCompanyIds": {
          "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"
        },
        "yearsOfExperienceIds": {
          "type": "string",
          "description": "Filter by years of experience IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#yearsofexperienceids"
        },
        "seniorityLevelIds": {
          "type": "string",
          "description": "Filter by seniority level IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#senioritylevelids"
        },
        "functionIds": {
          "type": "string",
          "description": "Filter by job function IDs. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#functionids"
        },
        "recentlyChangedJobs": {
          "type": "boolean",
          "description": "Filter leads who recently changed jobs in the last 90 days."
        },
        "postedOnLinkedin": {
          "type": "boolean",
          "description": "Filter leads who posted on LinkedIn in the last 30 days"
        },
        "profileLanguages": {
          "type": "string",
          "description": "Filter by profile languages. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#profilelanguages"
        },
        "companyHeadcount": {
          "type": "string",
          "description": "Filter by company headcount. Comma-separated. https://github.com/HarvestAPI/harvestapi-sdk/blob/main/packages/scraper/README.md#companyheadcount"
        },
        "companyHeadquarterLocations": {
          "type": "string",
          "description": "Filter by company headquarter location text. Comma-separated (max 70)"
        },
        "excludeLocations": {
          "type": "string",
          "description": "Locations to exclude from search. Comma-separated (max 70)"
        },
        "excludeGeoIds": {
          "type": "string",
          "description": "Geo IDs to exclude from search. Comma-separated (max 70)"
        },
        "excludeCurrentCompanies": {
          "type": "string",
          "description": "Current companies to exclude. Comma-separated (max 50)"
        },
        "excludePastCompanies": {
          "type": "string",
          "description": "Past companies to exclude. Comma-separated (max 50)"
        },
        "excludeSchools": {
          "type": "string",
          "description": "Schools to exclude. Comma-separated (max 50)"
        },
        "excludeCurrentJobTitles": {
          "type": "string",
          "description": "Current job titles to exclude. Comma-separated (max 70)"
        },
        "excludePastJobTitles": {
          "type": "string",
          "description": "Past job titles to exclude. Comma-separated (max 70)"
        },
        "excludeIndustryIds": {
          "type": "string",
          "description": "Industry IDs to exclude. Comma-separated (max 70)"
        },
        "excludeSeniorityLevelIds": {
          "type": "string",
          "description": "Seniority level IDs to exclude. Comma-separated (max 20)"
        },
        "excludeFunctionIds": {
          "type": "string",
          "description": "Function IDs to exclude. Comma-separated (max 30)"
        },
        "excludeCompanyHeadquarterLocations": {
          "type": "string",
          "description": "Company headquarter locations to exclude from search. Comma-separated (max 70)"
        },
        "salesNavUrl": {
          "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."
        },
        "page": {
          "type": "integer",
          "description": "Page number for pagination (clamped at 100)"
        },
        "sessionId": {
          "type": "string",
          "description": "Session ID to use for the search. See https://docs.harvestapi.io/linkedin-api-reference/leads/search-leads#session-id for details."
        },
        "usePrivatePool": {
          "type": "string",
          "description": "Set to true to use your private pool of resources (if available)"
        },
        "requiredAccountId": {
          "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."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "elements": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "currentPositions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "companyId": {
                  "type": "string"
                },
                "companyLinkedinUrl": {
                  "type": "string"
                },
                "companyName": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "startedOn": {
                  "type": "object",
                  "properties": {
                    "month": {
                      "type": "string"
                    },
                    "year": {
                      "type": "integer"
                    }
                  }
                },
                "tenureAtCompany": {
                  "type": "object",
                  "properties": {
                    "numMonths": {
                      "type": "string"
                    },
                    "numYears": {
                      "type": "string"
                    }
                  }
                },
                "tenureAtPosition": {
                  "type": "object",
                  "properties": {
                    "numMonths": {
                      "type": "string"
                    },
                    "numYears": {
                      "type": "string"
                    }
                  }
                },
                "title": {
                  "type": "string"
                }
              }
            }
          },
          "firstName": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "linkedinUrl": {
            "type": "string"
          },
          "location": {
            "type": "object",
            "properties": {
              "linkedinText": {
                "type": "string"
              }
            }
          },
          "openProfile": {
            "type": "boolean"
          },
          "pictureUrl": {
            "type": "string"
          },
          "premium": {
            "type": "boolean"
          }
        }
      }
    },
    "error": {
      "type": "string"
    },
    "pagination": {
      "type": "object",
      "properties": {
        "pageNumber": {
          "type": "integer"
        },
        "pageSize": {
          "type": "integer"
        },
        "paginationToken": {
          "type": "string"
        },
        "previousElements": {
          "type": "integer"
        },
        "totalElements": {
          "type": "integer"
        },
        "totalPages": {
          "type": "integer"
        }
      }
    },
    "status": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Schema template (HTTP assumed; request placeholders)
```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'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Configured HTTP 200; actual status is unverified.
```json
{
  "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
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- harvestapi: https://openany.si/market/apis/linkedin/linkedin-search-linkedin-leads/?offering=c05ba97b-fcde-4f6c-a970-da0c4c4dc9bd

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
