# Email Finder & LinkedIn Scraper - B2B Lead Enrichment (`inexhaustible_glass/linkedin-email-finder`) Actor

Find business emails, phones, LinkedIn & enrich company data from any website. Get tech stack (40+ tools), WHOIS, SSL, MX records & lead quality score (A/B/C/D). Bulk processing. Perfect for B2B sales, cold outreach & CRM enrichment.

- **URL**: https://apify.com/inexhaustible\_glass/linkedin-email-finder.md
- **Developed by:** [Hitman studio](https://apify.com/inexhaustible_glass) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## 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

## Lead Enricher Pro

**All-in-one B2B lead enrichment.** Give it a company website, get back complete
contact intel + tech stack + lead scoring.

---

### What you get (per company)

| Category | Fields |
|---|---|
| **Identity** | `domain`, `company_name`, `description` |
| **Emails** | `emails`, `personal_emails`, `generic_emails`, `scored_emails` (with confidence 0–100) |
| **Phones** | `phones` (strict extraction — no garbage) |
| **Social** | `linkedin`, `twitter`, `facebook`, `instagram` |
| **Tech Stack** | 40+ technologies (WordPress, React, Shopify, Stripe, HubSpot, AWS, …) |
| **Domain** | `whois.domain_age_days`, `whois.registrar`, `whois.expiry_date` |
| **Security** | `ssl.ssl_valid`, `ssl.ssl_issuer`, `ssl.ssl_days_left` |
| **Deliverability** | `has_mx_records` (real DNS lookup via dnspython) |
| **Patterns** | `executive_emails` — role-based guesses (only when MX exists, clearly marked unverified) |
| **Scoring** | `lead_score` (0–100), `lead_grade` (A Hot / B Warm / C Cool / D Cold) |

---

### How to use

#### 1. Simple URLs
Just paste a list of websites:
```json
{
  "leads": [
    { "url": "https://stripe.com" },
    { "url": "https://vercel.com" },
    { "url": "https://freshworks.com" }
  ]
}
````

#### 2. With personal names (for email pattern prediction)

If you know a contact at the company, include their name — the actor will
generate personalised email guesses like `sridhar.vembu@zoho.com`:

```json
{
  "leads": [
    { "url": "https://zoho.com", "firstName": "Sridhar", "lastName": "Vembu" }
  ]
}
```

#### 3. Bulk (recommended)

Paste 50–500 URLs at once. Each takes ~5–10 seconds. Results stream into the
Dataset tab as they complete.

***

### Reading the output

**Check these fields first:**

1. **`lead_grade`** — quick quality indicator (A/B/C/D)
2. **`has_mx_records`** — ⚠️ if `false`, the domain cannot receive email. Skip it.
3. **`scored_emails`** — sorted by confidence. `confidence ≥ 70` is usually safe.
4. **`tech_stack`** — tells you how modern/technical the company is.

**After the run**, check the key-value store for `RUN_SUMMARY` — it has totals,
grade distribution, and timing for the whole batch.

***

### Example output (abbreviated)

```json
{
  "domain": "stripe.com",
  "company_name": "Stripe | Financial Infrastructure...",
  "lead_grade": "A - Hot Lead",
  "lead_score": 85,
  "email_count": 3,
  "scored_emails": [
    { "email": "press@stripe.com", "confidence": 90 },
    { "email": "sales@stripe.com", "confidence": 85 }
  ],
  "phones": ["+1 888-926-2289"],
  "linkedin": ["https://www.linkedin.com/company/stripe"],
  "tech_stack": ["React", "Next.js", "Stripe", "AWS", "Segment"],
  "has_mx_records": true,
  "ssl": { "ssl_valid": true, "ssl_issuer": "DigiCert Inc", "ssl_days_left": 46 },
  "whois": { "domain_age_days": 4521, "registrar": "MarkMonitor Inc." },
  "executive_emails": {
    "note": "These are role-based patterns — not individually verified.",
    "verified": false,
    "patterns": { "CEO": "ceo@stripe.com", "CTO": "cto@stripe.com" }
  }
}
```

***

### Tips & limitations

- ✅ **Real MX check** — if a domain has no MX records, we don't fabricate executive emails.
- ✅ **Strict phone extraction** — only `tel:` links, international format, or US `(XXX) XXX-XXXX`. No version numbers or random digits.
- ⚠️ **Executive emails are predictions, not verified hits.** Always validate before sending cold outreach.
- ⚠️ **JavaScript-rendered sites** may have less data (actor uses HTTP, not a headless browser).
- 💡 Best results on company websites with public contact/about pages.

***

### Version history

- **v1.1** — Fixed phone regex (no more garbage), real dnspython MX checks, MX-gated executive emails with clear unverified labels, python-whois fallback, run summary in KV store, improved dataset views.
- **v1.0** — Initial release.

# Actor input Schema

## `urls` (type: `array`):

Paste company website URLs — one per line. Supports http(s):// or plain domains (stripe.com). Bulk supported (50+ at once).

## `firstName` (type: `string`):

Optional: contact's first name. If provided with last name, generates personalized email patterns (e.g. john.doe@company.com) for every URL above.

## `lastName` (type: `string`):

Optional: contact's last name. Used with First Name for email pattern prediction.

## Actor input object example

```json
{
  "urls": [
    "https://stripe.com",
    "https://figma.com",
    "https://shopify.com"
  ],
  "firstName": "",
  "lastName": ""
}
```

# 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 = {
    "urls": [
        "https://stripe.com",
        "https://figma.com",
        "https://shopify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("inexhaustible_glass/linkedin-email-finder").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 = { "urls": [
        "https://stripe.com",
        "https://figma.com",
        "https://shopify.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("inexhaustible_glass/linkedin-email-finder").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 '{
  "urls": [
    "https://stripe.com",
    "https://figma.com",
    "https://shopify.com"
  ]
}' |
apify call inexhaustible_glass/linkedin-email-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=inexhaustible_glass/linkedin-email-finder",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Email Finder & LinkedIn Scraper - B2B Lead Enrichment",
        "description": "Find business emails, phones, LinkedIn & enrich company data from any website. Get tech stack (40+ tools), WHOIS, SSL, MX records & lead quality score (A/B/C/D). Bulk processing. Perfect for B2B sales, cold outreach & CRM enrichment.",
        "version": "1.3",
        "x-build-id": "sI77tS0u5a1ZQEBAt"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/inexhaustible_glass~linkedin-email-finder/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-inexhaustible_glass-linkedin-email-finder",
                "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/inexhaustible_glass~linkedin-email-finder/runs": {
            "post": {
                "operationId": "runs-sync-inexhaustible_glass-linkedin-email-finder",
                "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/inexhaustible_glass~linkedin-email-finder/run-sync": {
            "post": {
                "operationId": "run-sync-inexhaustible_glass-linkedin-email-finder",
                "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": [
                    "urls"
                ],
                "properties": {
                    "urls": {
                        "title": "Company Websites",
                        "type": "array",
                        "description": "Paste company website URLs — one per line. Supports http(s):// or plain domains (stripe.com). Bulk supported (50+ at once).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "firstName": {
                        "title": "First Name (optional)",
                        "type": "string",
                        "description": "Optional: contact's first name. If provided with last name, generates personalized email patterns (e.g. john.doe@company.com) for every URL above.",
                        "default": ""
                    },
                    "lastName": {
                        "title": "Last Name (optional)",
                        "type": "string",
                        "description": "Optional: contact's last name. Used with First Name for email pattern prediction.",
                        "default": ""
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
