# Linkedin Email Scraper (`theguide/linkedin-email-scraper`) Actor

Collect verified contact emails from LinkedIn search results without writing any code. The actor searches Google for matching LinkedIn profile pages, opens results, and extracts email addresses that are publicly visible or listed on linked websites.

- **URL**: https://apify.com/theguide/linkedin-email-scraper.md
- **Developed by:** [TheGuide](https://apify.com/theguide) (community)
- **Categories:** Jobs, Lead generation
- **Stats:** 98 total users, 2 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 email founds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Real LinkedIn Email Scraper

Collect verified contact emails from LinkedIn search results without writing any code. The actor searches Google for matching LinkedIn profile pages, opens results, and extracts email addresses that are publicly visible or listed on linked websites.

### When to use this actor

- **Prospecting:** Build contact lists for sales or recruiting based on job titles, industries, or locations.
- **Market research:** Discover email addresses associated with specific companies or roles.
- **Data enrichment:** Complement CRM records with verified contact emails gathered from public sources.

### Input parameters

Configure inputs in the Apify console or via `storage/key_value_stores/default/INPUT.json`. Refer to `.actor/input_schema.json` for defaults and value ranges.

- **`Keyword`** *(string, required)* — Main search phrase (e.g. "marketing director fintech"). **Support for multiple keywords separated by commas** (e.g. "CEO, CTO, Founder").
- **`location`** *(string, optional)* — Extra qualifier appended to the Google query (e.g. "Paris"). **Support for multiple locations separated by commas** (e.g. "Paris, Lyon, Marseille").
- **`social_network`** *(string, required)* — Domain to target. Defaults to `linkedin.com/`. Support for `linkedin.com/`, `pinterest.com/`, `amazon.com/`, `facebook.com`, `twitter.com`, `instagram.com`.
- **`Country`** *(string, required)* — Two-letter code that chooses the Google site filter.
- **`Email_Type`** *(string, required)* — `0` to keep popular domains (`@gmail.com`, etc.) or `1` to require company domains.
- **`Other_Email_Type`** *(string, optional)* — Custom domain pattern when `Email_Type = 1`.
- **`proxySettings`** *(object, optional)* — Apify proxy configuration. Recommended for steady harvesting. **Uses GOOGLE\_SERP proxies by default for optimal results**.
- **`maxItems`** *(integer, optional)* — Maximum unique emails to return. The actor stops once this limit is reached.

### Features & Optimizations

- **Advanced Search Engine**: Automatically combines keywords and locations using proprietary search patterns to maximize lead discovery.
- **Smart Data Extraction**: Uses advanced algorithms to detect, clean, and verify email addresses from various public sources.
- **Deep Website Crawling**: Proactively explores linked websites to find contact information that isn't visible on search result snippets.
- **High Success Rate**: Optimized for high-volume extraction with automatic proxy management and anti-blocking measures.
- **Global Coverage**: Designed to work across different regions and industries with specialized handling for international data.

#### Sample input

```json
{
  "Keyword": "CEO, Founder",
  "location": "Paris, London",
  "social_network": "linkedin.com/",
  "Country": "www",
  "Email_Type": "0",
  "proxySettings": { "useApifyProxy": true },
  "maxItems": 50
}
```

### Output data

Results are stored in the default dataset; each item contains:

- **`Email`** — Extracted email address.
- **`title`** — Result headline or profile title.
- **`Description`** — Snippet from the search result or crawled page.
- **`Detail_Link`** — URL of the page where the email was discovered.

Duplicate addresses are automatically filtered out, and any errors encountered while visiting a URL are logged to the run console.

### Tips

- Supply precise keywords to reduce noise (e.g. add company names or roles).
- Enable the Apify proxy when scraping at scale to minimise CAPTCHA prompts.
- Respect local privacy regulations and LinkedIn’s terms when using collected data.

# Actor input Schema

## `Keyword` (type: `string`):

Keyword

## `location` (type: `string`):

Location

## `social_network` (type: `string`):

Social Network

## `Country` (type: `string`):

Country

## `Email_Type` (type: `string`):

Choose the type of emails to return. 0 = Personal providers (gmail, yahoo, outlook, etc.). 1 = Business/company domains. If 1 and Other\_Email\_Type is empty, personal domains are excluded automatically.

## `Other_Email_Type` (type: `string`):

When Email\_Type = 1 (Business), optionally target a specific domain such as @company.com. Leave empty to include all business/company domains and exclude personal providers.

## `proxySettings` (type: `object`):

Select proxies to be used by your crawler.

## `maxItems` (type: `integer`):

Total number of unique emails to return.

## Actor input object example

```json
{
  "Keyword": "TestKeyword",
  "social_network": "linkedin.com/",
  "Country": "www",
  "Email_Type": "0",
  "proxySettings": {
    "useApifyProxy": false
  },
  "maxItems": 100
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "Keyword": "TestKeyword",
    "proxySettings": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("theguide/linkedin-email-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "Keyword": "TestKeyword",
    "proxySettings": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("theguide/linkedin-email-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "Keyword": "TestKeyword",
  "proxySettings": {
    "useApifyProxy": false
  }
}' |
apify call theguide/linkedin-email-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,theguide/linkedin-email-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Lvzclgvwg9ab1EcCg/builds/cDicuSISD8mz3ETtH/openapi.json
