# 🔎 Profile Details Scraper for LinkedIn + EMAIL (`scraper-engine/profile-details-scraper-for-linkedin-email`) Actor

🔎 Profile Details Scraper for LinkedIn + EMAIL extracts key profile data from LinkedIn and associated email for smarter B2B outreach. 🚀 Perfect for lead gen, sales, recruiting & market research—fast, accurate, and scalable.

- **URL**: https://apify.com/scraper-engine/profile-details-scraper-for-linkedin-email.md
- **Developed by:** [Scraper Engine](https://apify.com/scraper-engine) (community)
- **Categories:** Lead generation, Jobs, Automation
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## 🔎 Profile Details Scraper for LinkedIn + EMAIL

Extract **rich, structured data from any LinkedIn profile** — work experience, education history, certifications, skills, languages, projects, follower/connection counts, location, and (optionally) a professional email. Feed it one profile or thousands; results stream into your dataset in real time.

> ⚠️ This actor needs your own `li_at` LinkedIn session cookie. Modern LinkedIn fully auth-walls profile pages, so a logged-in session is required to read public profile data.

---

### ✨ Why Choose Us?

- 🧩 **Complete profile schema** — not just the headline. Experience, education, certs, skills, languages, projects, and counts in one clean JSON object.
- 🛡️ **Smart proxy ladder** — starts **direct** (cheapest), then automatically falls back to **datacenter** and **residential** proxies only when LinkedIn pushes back. Once it falls back, it sticks with residential for the rest of the run.
- 📦 **Bulk input** — paste a list of URLs or usernames and let it run.
- 📊 **Per-section Output tables** — Overview, Experience, Education, Certifications, and Skills/Languages/Projects each get their own view.
- 💾 **Live saving** — every profile is written the moment it's scraped, so a long run never loses progress.
- 📧 **Optional email enrichment** via Hunter.io.

---

### 🔑 Key Features

| Feature | Description |
|---|---|
| Bulk profiles | Mix full URLs and bare usernames freely. |
| Full sections | `basic_info`, `experience`, `education`, `projects`, `certifications`, `languages`, `skills`. |
| Proxy fallback | Direct → Datacenter → Residential (sticky, 3× residential retries). |
| Email finder | Optional Hunter.io lookup when first/last name + company are known. |
| Real-time logs | Watch each profile's data land as it's collected. |

---

### 📥 Input

| Field | Type | Required | Description |
|---|---|---|---|
| `urls` | array | ✅ | LinkedIn profile URLs or usernames (bulk supported). |
| `li_at` | string (secret) | ✅ | Your LinkedIn `li_at` session cookie. |
| `includeEmail` | boolean | — | Enrich with a professional email via Hunter.io. |
| `hunterApiKey` | string (secret) | — | Hunter.io API key (only if `includeEmail` is on). |
| `requestDelay` | number | — | Seconds between profiles (jitter added). Default `1.0`. |
| `maxRetries` | integer | — | Retries per request before escalating proxy. Default `3`. |
| `proxyConfiguration` | object | — | Proxy / country settings for the fallback tiers. |

#### Example input

```json
{
  "urls": [
    { "url": "https://www.linkedin.com/in/sarptecimer/" },
    { "url": "neal-mohan" }
  ],
  "li_at": "AQEDA...your-cookie...",
  "includeEmail": false,
  "requestDelay": 1.0,
  "maxRetries": 3,
  "proxyConfiguration": { "useApifyProxy": true }
}
````

***

### 📤 Output

Each profile is one dataset item. It carries flat summary columns (for the table) **plus** the full nested sections:

```json
{
  "fullname": "Sarp Tecimer",
  "headline": "Cybersecurity Consultant, Advisor, ...",
  "current_company": "Kafein Technology Solutions",
  "location": "Istanbul, Türkiye",
  "follower_count": 2061,
  "connection_count": 500,
  "basic_info": { "...": "..." },
  "experience": [ { "title": "Senior Product Owner", "company": "...", "duration": "Jun 2024 - Oct 2025 · 1 yr 5 mos" } ],
  "education": [ { "school": "Bahcesehir University", "degree": "MBA., ..." } ],
  "certifications": [ { "name": "BCNE", "issuer": "Brocade" } ],
  "languages": [ { "language": "English", "proficiency": "Full professional proficiency" } ],
  "skills": ["Reporting", "Documentation", "..."],
  "projects": [ { "name": "...", "description": "..." } ],
  "success": true
}
```

***

### 🚀 How to Use (Apify Console)

1. Log in at https://console.apify.com → **Actors**.
2. Open **Profile Details Scraper for LinkedIn + EMAIL**.
3. Paste your profile URLs/usernames and your `li_at` cookie.
4. (Optional) Enable email + add a Hunter.io key.
5. Click **Start** and watch the logs in real time.
6. Open the **Output** tab — switch between the Overview / Experience / Education / Certifications / Skills views.
7. Export to JSON / CSV / XLSX.

### 🤖 Use via API

```bash
curl -X POST "https://api.apify.com/v2/acts/<ACTOR_ID>/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":[{"url":"https://www.linkedin.com/in/sarptecimer/"}],"li_at":"AQEDA..."}'
```

***

### 💡 Best Use Cases

- Recruiting & talent sourcing
- Lead generation and B2B prospecting
- Competitive / market research
- Building enriched CRM records

### 💲 Pricing

This actor uses **pay-per-event**: you are charged once per successfully scraped profile (`profile-scraped`). Failed/blocked profiles are not charged for the result event.

### ❓ FAQ

**Why do I need a cookie?** LinkedIn removed all unauthenticated profile access in 2025. A logged-in session (`li_at`) is the only way to read profile data.

**Will it get my account blocked?** Scraping always carries risk. The actor uses browser-grade TLS impersonation, polite delays, and proxy fallback to minimize it, but use a non-critical account and reasonable volumes.

**Where does the email come from?** LinkedIn never exposes emails. When enabled, the email is looked up via Hunter.io from name + company.

### 🛟 Support & Feedback

Open an issue on the actor's **Issues** tab in the Apify Console.

***

#### ⚖️ Legal

Collect only **publicly available** data and comply with LinkedIn's Terms, GDPR/CCPA, and anti-spam laws. You are responsible for how you use the data.

# Actor input Schema

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

Bulk input supported ✅ — add as many profiles as you like. Each entry can be a full URL (https://www.linkedin.com/in/username) or just the username (e.g. sarptecimer).

## `li_at` (type: `string`):

Your LinkedIn session cookie. Open LinkedIn while logged in → DevTools → Application → Cookies → copy the value of `li_at`. Required, because LinkedIn fully auth-walls profiles. Kept private to your run.

## `includeEmail` (type: `boolean`):

Attempt to find a professional email for each profile. LinkedIn itself never exposes emails, so this is best-effort enrichment.

## `proxyConfiguration` (type: `object`):

The actor starts direct (no proxy) and automatically falls back to a datacenter proxy, then a residential proxy, if LinkedIn blocks the request. Set a country here to pin proxy geo.

## Actor input object example

```json
{
  "urls": [
    "https://www.linkedin.com/in/sarptecimer/"
  ],
  "includeEmail": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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://www.linkedin.com/in/sarptecimer/"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scraper-engine/profile-details-scraper-for-linkedin-email").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://www.linkedin.com/in/sarptecimer/"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scraper-engine/profile-details-scraper-for-linkedin-email").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://www.linkedin.com/in/sarptecimer/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scraper-engine/profile-details-scraper-for-linkedin-email --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "🔎 Profile Details Scraper for LinkedIn + EMAIL",
        "description": "🔎 Profile Details Scraper for LinkedIn + EMAIL extracts key profile data from LinkedIn and associated email for smarter B2B outreach. 🚀 Perfect for lead gen, sales, recruiting & market research—fast, accurate, and scalable.",
        "version": "0.1",
        "x-build-id": "m3tsruXToAXZ3kdJW"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scraper-engine~profile-details-scraper-for-linkedin-email/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scraper-engine-profile-details-scraper-for-linkedin-email",
                "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/scraper-engine~profile-details-scraper-for-linkedin-email/runs": {
            "post": {
                "operationId": "runs-sync-scraper-engine-profile-details-scraper-for-linkedin-email",
                "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/scraper-engine~profile-details-scraper-for-linkedin-email/run-sync": {
            "post": {
                "operationId": "run-sync-scraper-engine-profile-details-scraper-for-linkedin-email",
                "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",
                    "li_at"
                ],
                "properties": {
                    "urls": {
                        "title": "🔗 LinkedIn Profile URLs or Usernames",
                        "type": "array",
                        "description": "Bulk input supported ✅ — add as many profiles as you like. Each entry can be a full URL (https://www.linkedin.com/in/username) or just the username (e.g. sarptecimer).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "li_at": {
                        "title": "🔐 LinkedIn li_at Cookie",
                        "type": "string",
                        "description": "Your LinkedIn session cookie. Open LinkedIn while logged in → DevTools → Application → Cookies → copy the value of `li_at`. Required, because LinkedIn fully auth-walls profiles. Kept private to your run."
                    },
                    "includeEmail": {
                        "title": "📧 Search for Email",
                        "type": "boolean",
                        "description": "Attempt to find a professional email for each profile. LinkedIn itself never exposes emails, so this is best-effort enrichment.",
                        "default": false
                    },
                    "proxyConfiguration": {
                        "title": "🛡️ Proxy Configuration",
                        "type": "object",
                        "description": "The actor starts direct (no proxy) and automatically falls back to a datacenter proxy, then a residential proxy, if LinkedIn blocks the request. Set a country here to pin proxy geo.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
