# LinkedIn Profile Scraper & API (`api_massta/linkedin-profile-scraper`) Actor

Extract LinkedIn profile data — name, headline, experience, education, skills, certifications. Works with or without cookies. Accepts URLs or usernames in bulk. Batch or real-time Standby/MCP API. Pay-per-result.

- **URL**: https://apify.com/api\_massta/linkedin-profile-scraper.md
- **Developed by:** [Sh0ck Labs](https://apify.com/api_massta) (community)
- **Categories:** AI, MCP servers, Lead generation
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 profile scrapeds

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

## LinkedIn Profile Scraper & API 👤

**Extract LinkedIn personal profiles at scale — name, headline, location, about, experience, education, skills, certifications, and languages — for a single person or thousands.** Enrich your CRM, source candidates, build talent maps, or give your AI agents live people data. No login required for public profiles.

Pass a profile URL or a plain username (`satyanadella`, `jeffweiner08`) and get back clean structured JSON. Run it as a one-off batch job, schedule it, or turn it into a **real-time API** your apps and AI agents can call.

---

### ✨ What you get

- 👤 **Full profile data** — name, headline, location, about/summary, photo, connections, and followers
- 💼 **Experience** — job titles, companies, dates, locations, and descriptions for each role
- 🎓 **Education** — schools, degrees, fields of study, and dates
- 🛠 **Skills, certifications & languages** — complete lists (with cookies)
- 🔢 **Bulk lookups** — pass a whole list of profiles in one run
- 🔗 **Flexible input** — full LinkedIn profile URLs *or* bare usernames
- 🆓 **No login for public profiles** — start scraping immediately
- 🔐 **Cookies for full data** — supply a LinkedIn session to unlock the Voyager API with rich, detailed results
- 🤖 **Real-time API + MCP** — call it live from your code or from AI agents
- 💸 **Pay only for results** — billed per profile returned

---

### 🎯 Use cases

- **Sales & lead generation** — enrich prospect lists with role, company, seniority, and skills for better targeting and routing.
- **Recruiting & talent sourcing** — build candidate profiles, track career moves, and map talent pools at scale.
- **People analytics & org mapping** — analyze team compositions, seniority distributions, and tenure patterns across companies.
- **AI agents & RAG pipelines** — give LLM recruiting or research agents live people data on demand via the Apify MCP server.
- **Background research & due diligence** — pull consistent professional snapshots across a list of individuals.

---

### 📥 Input

| Field | Description |
|---|---|
| `profiles` | LinkedIn profiles to look up — full URLs (`https://www.linkedin.com/in/satyanadella`) or usernames (`satyanadella`). **Required.** |
| `cookies` *(optional)* | LinkedIn session cookies (JSON export) for full profile data via the Voyager API. Leave empty for the public view. |
| `proxy` | Proxy configuration (recommended for larger or authenticated runs). |
| `timeout` | Seconds before a page load gives up. |

```json
{
  "profiles": ["satyanadella", "https://www.linkedin.com/in/jeffweiner08"]
}
````

### 📤 Output

One record per profile. **With cookies** (Voyager API — richest data):

```json
{
  "profile_url": "https://www.linkedin.com/in/satyanadella/",
  "first_name": "Satya",
  "last_name": "Nadella",
  "full_name": "Satya Nadella",
  "headline": "Chairman and CEO at Microsoft",
  "location": "Redmond, Washington, United States",
  "about": "I consider myself a learn-it-all...",
  "photo": "https://media.licdn.com/dms/image/...",
  "industry": "Technology, Information and Internet",
  "connections": 500,
  "followers": 10853794,
  "experiences": [
    {
      "position": "Chairman and CEO",
      "company": "Microsoft",
      "location": "Redmond, Washington, United States",
      "start_date": "2014-02",
      "end_date": null,
      "description": "..."
    }
  ],
  "education": [
    {
      "school": "University of Chicago Booth School of Business",
      "degree": "Master of Business Administration - MBA",
      "field_of_study": null,
      "start_date": "1996",
      "end_date": "1998"
    }
  ],
  "skills": ["Cloud Computing", "Leadership", "Strategy", "..."],
  "certifications": null,
  "languages": ["English", "Hindi"]
}
```

**Without cookies** (public page — limited data):

```json
{
  "profile_url": "https://www.linkedin.com/in/satyanadella/",
  "first_name": "Satya",
  "last_name": "Nadella",
  "full_name": "Satya Nadella",
  "headline": "Chairman and CEO at Microsoft",
  "location": "Redmond, Washington",
  "about": "I consider myself a learn-it-all...",
  "photo": "https://media.licdn.com/dms/image/...",
  "connections": null,
  "followers": null,
  "experiences": [{ "position": "Chairman and CEO", "company": "Microsoft" }],
  "education": [{ "school": "University of Chicago Booth School of Business" }]
}
```

***

### 🤖 Use it as a real-time API / AI agent tool

Enable **Standby mode** and the Actor stays warm, answering HTTP requests instantly — perfect for AI agents, RAG pipelines, and apps that need live people data:

```bash
curl "https://<your-standby-url>/?profile=satyanadella"
## or several at once:
curl "https://<your-standby-url>/?profiles=satyanadella,jeffweiner08"
```

Returns `{ "count": N, "items": [ ... ] }`. AI agents can discover and call this Actor as a tool through the **[Apify MCP server](https://mcp.apify.com)** (Claude, Cursor, Windsurf, and any MCP client).

***

### 💸 Pricing

This Actor uses **pay-per-event** pricing: you're billed **per profile that returns data** (`profile-result`). Profiles that come back empty aren't charged. You also pay Apify's standard platform usage for the run.

***

### 🍪 How to get LinkedIn cookies

Cookies unlock the full dataset (experience with dates, skills, certifications, languages). Here's how to export them:

1. **Install a cookie-export extension** — [Cookie-Editor](https://cookie-editor.com/) (Chrome/Firefox/Edge) or [EditThisCookie](https://www.editthiscookie.com/) work well.
2. **Log into LinkedIn** at `https://www.linkedin.com` in your browser.
3. **Open the extension** and click **Export** (choose JSON format). This copies all LinkedIn cookies to your clipboard.
4. **Paste the JSON** into the `cookies` input field in this Actor.

> **Tip:** The key cookie is `li_at`. If you prefer a minimal setup, you can pass just that one:
>
> ```json
> [{"name": "li_at", "value": "YOUR_LI_AT_VALUE", "domain": ".linkedin.com", "path": "/"}]
> ```

> **Note:** Session cookies expire periodically. If you get authentication errors, re-export fresh cookies.

***

### ❓ FAQ

**Do I need a LinkedIn account or cookies?**
No — public profiles work with no login. The public path uses a real browser and returns the limited public view (name, headline, location, about, recent experience/education). For the complete dataset — full experience history with dates, skills, certifications, languages — provide LinkedIn cookies.

**Can I scrape many profiles at once?**
Yes. Pass as many profiles as you like in the `profiles` list; each is returned as its own record.

**What input formats are accepted?**
Full profile URLs (`https://www.linkedin.com/in/<username>`) or just the username (`<username>`).

**What's the difference between public and cookie-authenticated scraping?**
The public page shows a subset of the profile (name, headline, about, recent roles). With cookies, the scraper calls LinkedIn's Voyager API, which returns the full profile: complete experience with dates and descriptions, all skills, certifications, and languages.

**Can my AI agent call this automatically?**
Yes — run it in Standby mode and connect via the Apify MCP server. Agents get a typed, live people-lookup tool.

**Is scraping LinkedIn legal?**
You are responsible for how you use scraped data. Scrape only publicly available information and comply with LinkedIn's terms and applicable laws (e.g., GDPR) in your jurisdiction.

***

### 🔧 Tips

- Use the **Apify Proxy** (especially residential) for larger runs to reduce blocking.
- For the fullest data, run with **cookies**.
- Combine with the **LinkedIn Jobs Scraper** to pair open roles with candidate profiles, or with the **LinkedIn Company Profile Scraper** for company context.

# Actor input Schema

## `profiles` (type: `array`):

LinkedIn profiles to look up. Each item can be a full profile URL (https://www.linkedin.com/in/satyanadella) or just the username ('satyanadella'). Add several to scrape them in one run.

## `cookies` (type: `array`):

Optional. Paste your LinkedIn session cookies (JSON export) to access the full profile via the Voyager API — includes complete experience with dates, skills, certifications, and languages. Leave empty to scrape the limited public profile with no login.

## `proxy` (type: `object`):

Proxy used for requests. Recommended for larger or authenticated runs.

## `timeout` (type: `integer`):

Seconds before the run gives up loading a page, to avoid getting stuck.

## Actor input object example

```json
{
  "profiles": [
    "satyanadella",
    "https://www.linkedin.com/in/jeffweiner08"
  ],
  "cookies": [],
  "proxy": {
    "useApifyProxy": true
  },
  "timeout": 300
}
```

# Actor output Schema

## `profiles` (type: `string`):

One object per scraped LinkedIn profile with fields like full\_name, headline, location, about, experiences, education, skills, certifications, and languages.

# 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 = {
    "profiles": [
        "satyanadella"
    ],
    "cookies": [],
    "proxy": {
        "useApifyProxy": true
    },
    "timeout": 300
};

// Run the Actor and wait for it to finish
const run = await client.actor("api_massta/linkedin-profile-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 = {
    "profiles": ["satyanadella"],
    "cookies": [],
    "proxy": { "useApifyProxy": True },
    "timeout": 300,
}

# Run the Actor and wait for it to finish
run = client.actor("api_massta/linkedin-profile-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 '{
  "profiles": [
    "satyanadella"
  ],
  "cookies": [],
  "proxy": {
    "useApifyProxy": true
  },
  "timeout": 300
}' |
apify call api_massta/linkedin-profile-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "LinkedIn Profile Scraper & API",
        "description": "Extract LinkedIn profile data — name, headline, experience, education, skills, certifications. Works with or without cookies. Accepts URLs or usernames in bulk. Batch or real-time Standby/MCP API. Pay-per-result.",
        "version": "0.0",
        "x-build-id": "ZQfMehJ9yeLSrSTw8"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/api_massta~linkedin-profile-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-api_massta-linkedin-profile-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/api_massta~linkedin-profile-scraper/runs": {
            "post": {
                "operationId": "runs-sync-api_massta-linkedin-profile-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/api_massta~linkedin-profile-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-api_massta-linkedin-profile-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": [
                    "profiles"
                ],
                "properties": {
                    "profiles": {
                        "title": "Profiles",
                        "type": "array",
                        "description": "LinkedIn profiles to look up. Each item can be a full profile URL (https://www.linkedin.com/in/satyanadella) or just the username ('satyanadella'). Add several to scrape them in one run.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "cookies": {
                        "title": "LinkedIn cookies (optional)",
                        "type": "array",
                        "description": "Optional. Paste your LinkedIn session cookies (JSON export) to access the full profile via the Voyager API — includes complete experience with dates, skills, certifications, and languages. Leave empty to scrape the limited public profile with no login.",
                        "default": []
                    },
                    "proxy": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy used for requests. Recommended for larger or authenticated runs."
                    },
                    "timeout": {
                        "title": "Timeout",
                        "minimum": 60,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Seconds before the run gives up loading a page, to avoid getting stuck.",
                        "default": 300
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
