# 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:** 95 total users, 0 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=theguide/linkedin-email-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Linkedin Email Scraper",
        "description": "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.",
        "version": "0.0",
        "x-build-id": "cDicuSISD8mz3ETtH"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/theguide~linkedin-email-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-theguide-linkedin-email-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/theguide~linkedin-email-scraper/runs": {
            "post": {
                "operationId": "runs-sync-theguide-linkedin-email-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/theguide~linkedin-email-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-theguide-linkedin-email-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "Keyword",
                    "social_network",
                    "Email_Type",
                    "Country"
                ],
                "properties": {
                    "Keyword": {
                        "title": "Keyword",
                        "type": "string",
                        "description": "Keyword"
                    },
                    "location": {
                        "title": "Location(optional)",
                        "type": "string",
                        "description": "Location"
                    },
                    "social_network": {
                        "title": "Social Network",
                        "enum": [
                            "linkedin.com/"
                        ],
                        "type": "string",
                        "description": "Social Network",
                        "default": "linkedin.com/"
                    },
                    "Country": {
                        "title": "Country",
                        "enum": [
                            "it",
                            "www",
                            "gm",
                            "fr",
                            "sp",
                            "uk",
                            "al",
                            "ag",
                            "ar",
                            "am",
                            "as",
                            "au",
                            "aj",
                            "bg",
                            "bo",
                            "be",
                            "bh",
                            "bk",
                            "br",
                            "bu",
                            "ca",
                            "ci",
                            "ch",
                            "co",
                            "cs",
                            "hr",
                            "cu",
                            "ez",
                            "dk",
                            "ec",
                            "eg",
                            "en",
                            "fi",
                            "gg",
                            "gr",
                            "hk",
                            "hu",
                            "ic",
                            "in",
                            "id",
                            "ir",
                            "iz",
                            "ei",
                            "is",
                            "jm",
                            "ja",
                            "ke",
                            "kn",
                            "ks",
                            "ku",
                            "lg",
                            "ly",
                            "ls",
                            "lh",
                            "lu",
                            "mc",
                            "mk",
                            "my",
                            "mt",
                            "mx",
                            "md",
                            "mn",
                            "mj",
                            "mo",
                            "np",
                            "nl",
                            "nz",
                            "ni",
                            "no",
                            "pk",
                            "we",
                            "pm",
                            "pa",
                            "pe",
                            "rp",
                            "pl",
                            "po",
                            "rq",
                            "qa",
                            "ro",
                            "rs",
                            "sm",
                            "sa",
                            "sg",
                            "ri",
                            "sn",
                            "lo",
                            "si",
                            "sf",
                            "sw",
                            "sz",
                            "sy",
                            "tw",
                            "th",
                            "ts",
                            "tu",
                            "ua",
                            "ae",
                            "uy",
                            "uz",
                            "ve"
                        ],
                        "type": "string",
                        "description": "Country",
                        "default": "www"
                    },
                    "Email_Type": {
                        "title": "Email Type (0 = Personal, 1 = Business)",
                        "enum": [
                            "0",
                            "1"
                        ],
                        "type": "string",
                        "description": "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.",
                        "default": "0"
                    },
                    "Other_Email_Type": {
                        "title": "Other Email Type (optional, e.g. @company.com)",
                        "type": "string",
                        "description": "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": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Select proxies to be used by your crawler."
                    },
                    "maxItems": {
                        "title": "Maximum results",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Total number of unique emails to return.",
                        "default": 100
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
