# LinkedIn Ultimate Scraper (`khnaami/actor-linkedin-scraper`) Actor

Extract professional B2B leads, career history, education, company intelligence, and search public job vacancies with zero cookies or account required.

- **URL**: https://apify.com/khnaami/actor-linkedin-scraper.md
- **Developed by:** [khalid naami](https://apify.com/khnaami) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 💼 LinkedIn Ultimate Scraper & B2B Lead Generator (Profiles, Leads, Companies & Jobs)

Comprehensive, high-speed, all-in-one LinkedIn data extraction and B2B lead generation engine on Apify. Extract **People Profiles & Leads** (with verified emails, phone numbers, headlines, experience, and education), **Company Profiles & Firmographics**, **Job Postings**, and **Public Job Searches** with No-Cookie and Cookie modes.

***

### ⚡ Key Features

- 👤 **People Profiles & Talent Sourcing**: Extract Full Name, Headline, Current Position & Company, Experience History, Education History, Skills, Location, Summary / About, and Profile Picture.
- 📧 **B2B Lead Generation & Contact Enrichment**: Automatically extracts business emails, contact phone numbers, portfolios, and social media handles (Twitter/X, GitHub, personal websites).
- 🏢 **Company Intelligence & Firmographics**: Extract Company Name, Industry sector, Employee Size range, Headquarters location, Official Website, Tagline, Logo, and About description.
- 🎯 **Job Vacancies & Descriptions**: Extract Job Title, Hiring Organization, Location, Workplace type (`Remote`, `Hybrid`, `On-site`), Employment type (`Full-time`), Full job description, and Apply links.
- 🔍 **Public Jobs Search (Zero Cookies Needed)**: Search LinkedIn jobs by keywords and location without needing any LinkedIn account or cookies.
- 🛡️ **Dual-Engine Architecture & Anti-Wall**: Blazing fast HTTP requests via `got-scraping` paired with an intelligent Playwright browser fallback and optional `li_at` session cookie support.

***

### 📥 Input Configuration

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `mode` | String | `AUTO_DETECT` | Extraction mode: `AUTO_DETECT`, `PROFILES`, `COMPANIES`, `JOBS`, `JOBS_SEARCH`. |
| `targetUrls` | Array | `[...]` | LinkedIn URLs (Profile URLs `/in/...`, Company URLs `/company/...`, or Job URLs). |
| `searchKeywords` | Array | `[]` | Keywords or Job Titles for public jobs search. |
| `searchLocation` | String | `"United States"` | Location filter for public jobs search (e.g., `United States`, `Remote`, `London`). |
| `maxItems` | Integer | `30` | Maximum items to extract per run. |
| `liAtCookie` | String | `""` | Optional LinkedIn `li_at` session cookie for deep private profile data. |
| `proxyConfiguration` | Object | `{ useApifyProxy: true }` | Apify Residential proxy configuration (strongly recommended). |

***

### 📤 Output Data Format

#### 1. Person Profile & B2B Lead Record

```json
{
  "type": "PROFILE",
  "id": "satyanadella",
  "url": "https://www.linkedin.com/in/satyanadella/",
  "fullName": "Satya Nadella",
  "firstName": "Satya",
  "lastName": "Nadella",
  "headline": "Chairman and CEO at Microsoft",
  "currentCompany": "Microsoft",
  "location": "Redmond, Washington, United States",
  "about": "Chairman and CEO of Microsoft Corporation...",
  "education": [
    { "school": "The University of Chicago Booth School of Business", "degree": "MBA" }
  ],
  "profilePictureUrl": "https://media.licdn.com/dms/image/...",
  "email": "satya@microsoft.com",
  "emails": ["satya@microsoft.com"],
  "socialLinks": [
    { "platform": "twitter_x", "url": "https://x.com/satyanadella" }
  ],
  "scrapedAt": "2026-10-09T12:55:00.000Z"
}
```

#### 2. Company Profile Record

```json
{
  "type": "COMPANY",
  "id": "microsoft",
  "url": "https://www.linkedin.com/company/microsoft/",
  "companyName": "Microsoft",
  "companyIndustry": "Software Development",
  "companySize": "10,001+ employees",
  "companyWebsite": "https://www.microsoft.com",
  "companyHq": "Redmond, WA, United States",
  "about": "Our mission is to empower every person and every organization on the planet to achieve more.",
  "profilePictureUrl": "https://media.licdn.com/dms/image/...",
  "scrapedAt": "2026-10-09T12:55:00.000Z"
}
```

#### 3. Job Vacancy Record

```json
{
  "type": "JOB",
  "id": "3950123456",
  "url": "https://www.linkedin.com/jobs/view/3950123456",
  "jobTitle": "Senior Full Stack Engineer",
  "jobCompany": "TechCorp Innovations",
  "jobLocation": "San Francisco, CA, United States",
  "jobWorkplaceType": "Remote",
  "jobEmploymentType": "FULL_TIME",
  "jobDescription": "We are seeking an experienced full-stack engineer proficient in Node.js, React, and cloud architectures...",
  "datePosted": "2026-10-08T14:30:00.000Z",
  "scrapedAt": "2026-10-09T12:55:00.000Z"
}
```

***

### 💼 B2B Sales & Recruitment Use Cases

- **Cold Email & Outbound Sales**: Enrich your prospect lists with verified names, current roles, and emails.
- **Talent Acquisition & Recruiting**: Source top engineering, product, and leadership talent with full career history.
- **Market & Competitor Research**: Track competitor employee growth, new hires, and job vacancy trends.

***

### 📄 License

Apache-2.0

# Actor input Schema

## `mode` (type: `string`):

Select what type of LinkedIn data to extract, or use AUTO_DETECT.

## `targetUrls` (type: `array`):

List of LinkedIn URLs (Profiles, Companies, Jobs, or Posts).

## `searchKeywords` (type: `array`):

Keywords or job titles to search for in JOBS_SEARCH mode.

## `searchLocation` (type: `string`):

Location filter for jobs search (e.g. 'United States', 'Worldwide', 'Remote', 'London').

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

Maximum number of profiles, jobs, or search items to extract.

## `liAtCookie` (type: `string`):

Optional 'li_at' cookie for deep authenticated profile access. Leave empty for No-Cookie public mode.

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

Apify Proxy (RESIDENTIAL strongly recommended for LinkedIn to prevent auth walls).

## Actor input object example

```json
{
  "mode": "AUTO_DETECT",
  "targetUrls": [
    "https://www.linkedin.com/in/satyanadella/",
    "https://www.linkedin.com/company/microsoft/"
  ],
  "searchKeywords": [
    "full stack engineer"
  ],
  "searchLocation": "United States",
  "maxItems": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Scraped LinkedIn records (People Profiles, Leads, Companies, Jobs, Posts)

## `overview` (type: `string`):

High-level summary report and execution metrics stored in Key-Value store

# 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 = {
    "targetUrls": [
        "https://www.linkedin.com/in/satyanadella/",
        "https://www.linkedin.com/company/microsoft/"
    ],
    "searchKeywords": [
        "full stack engineer"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("khnaami/actor-linkedin-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 = {
    "targetUrls": [
        "https://www.linkedin.com/in/satyanadella/",
        "https://www.linkedin.com/company/microsoft/",
    ],
    "searchKeywords": ["full stack engineer"],
}

# Run the Actor and wait for it to finish
run = client.actor("khnaami/actor-linkedin-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 '{
  "targetUrls": [
    "https://www.linkedin.com/in/satyanadella/",
    "https://www.linkedin.com/company/microsoft/"
  ],
  "searchKeywords": [
    "full stack engineer"
  ]
}' |
apify call khnaami/actor-linkedin-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,khnaami/actor-linkedin-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/EmKF0h2f1PUf7aSns/builds/ywZnyRvp6dArwhroB/openapi.json
