# LinkedIn Public Profile Scraper (`cryptosignals/linkedin-profile-scraper`) Actor

Scrape public LinkedIn personal profiles. Extract name, headline, about, experience and education. No company-page mode, no skills field, no email. Inputs: profileUrl, username, or profileUrls. Pay-per-result. For recruiting and research.

- **URL**: https://apify.com/cryptosignals/linkedin-profile-scraper.md
- **Developed by:** [Web Data Labs](https://apify.com/cryptosignals) (community)
- **Categories:** Lead generation, Jobs
- **Features:** Limited permissions
- **Stats:** 114 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 result scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## 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 Public Profile Scraper

Scrape **public LinkedIn personal profiles** without login credentials or API access. Returns name, headline, about, experience, and education from publicly visible profile pages.

This actor does **not** scrape company pages, does **not** extract a skills field, and does **not** return email addresses or other private contact details.

### What It Does

Fetches publicly available data from LinkedIn `/in/` profile pages using a headless browser. No LinkedIn login or cookies required.

Supports one profile or a batch of profile URLs in a single run.

### Input Parameters

| Field | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| `profileUrl` | string | No\* | — | Full LinkedIn profile URL (e.g. `https://www.linkedin.com/in/williamhgates`) |
| `username` | string | No\* | — | LinkedIn username / vanity slug (e.g. `williamhgates`). Built into `/in/{username}`. |
| `profileUrls` | array of strings | No\* | — | List of LinkedIn profile URLs for batch scraping |
| `maxItems` | integer | No | all provided, max 50 | Cap on how many of the provided profiles to scrape |

\*Provide at least one of `profileUrl`, `username`, or `profileUrls`. There is no `action` field and no company-page mode.

Common aliases (`urls`, `startUrls`, `linkedinUrl`, `usernames`) are also accepted.

Non-LinkedIn URLs, private or deleted profiles, and insufficient run timeout/memory return an explanatory dataset row instead of failing.

**Username example:** `williamhgates` (from `linkedin.com/in/williamhgates`)

### Output Format

Public personal profiles only. Shape matches what the actor actually extracts:

```json
{
  "name": "Bill Gates",
  "headline": "Co-chair, Bill & Melinda Gates Foundation",
  "location": "Seattle, Washington, United States",
  "about": "Co-chair of the Bill & Melinda Gates Foundation...",
  "profilePhoto": "https://media.licdn.com/dms/image/...",
  "connectionCount": "500+",
  "experience": [
    {
      "title": "Co-chair",
      "company": "Bill & Melinda Gates Foundation",
      "duration": "2000 – Present"
    }
  ],
  "currentRole": "Co-chair",
  "currentCompany": "Bill & Melinda Gates Foundation",
  "education": [
    {
      "school": "Harvard University"
    }
  ],
  "profileUrl": "https://www.linkedin.com/in/williamhgates"
}
```

Fields that are **not** returned: `email`, `skills`, company-page fields (`companySize`, `industry`, `headquarters`, `companyUrl`).

### Use Cases

- **Recruiting** — Collect public headline, location, and experience from profiles you already have URLs for
- **Research** — Pull publicly visible about/experience/education text from a known profile list
- **CRM enrichment** — Attach public headline and current role to records you already hold (not a source of emails)

### How to Run via API

```python
import requests

run = requests.post(
    "https://api.apify.com/v2/acts/cryptosignals~linkedin-profile-scraper/runs",
    params={"token": "YOUR_API_TOKEN"},
    json={
        "profileUrl": "https://www.linkedin.com/in/williamhgates",
        "maxItems": 1
    }
).json()

dataset_id = run["data"]["defaultDatasetId"]
results = requests.get(
    f"https://api.apify.com/v2/datasets/{dataset_id}/items"
).json()

for p in results:
    print(f"{p.get('name')} — {p.get('headline')}")
```

Batch example:

```json
{
  "username": "williamhgates",
  "profileUrls": [
    "https://www.linkedin.com/in/satyanadella"
  ],
  "maxItems": 2
}
```

### Limitations

- **Public `/in/` profiles only** — no company-page (`/company/`) mode
- **No skills field** — skills are not extracted
- **No email / phone / InMail** — this is not a contact-finder
- LinkedIn guest pages can return empty or blocked responses from some networks; a failed empty run is a failed run, not a partial dataset
- Maximum 50 profiles per run
- **Anonymous usage statistics:** this actor reports one anonymous-content record per run: outcome counts and non-identifying run metadata (duration, verdict, whether the caller is on a paid Apify plan). No URLs, profile names, input values, or results are collected.

### Related Actors

- [cryptosignals/google-search-scraper](https://apify.com/cryptosignals/google-search-scraper) — Find LinkedIn profile URLs via search
- [cryptosignals/linkedin-company-scraper](https://apify.com/cryptosignals/linkedin-company-scraper) — Company pages (separate actor)

### Handling empty or blocked pages

LinkedIn may restrict access from some IP ranges. If a run returns no profiles, retry later or enable Apify proxy (residential recommended if you see HTTP 999 / empty pages). This actor does not gate features by Apify plan.

***

*Found this actor useful? [Leave a review](https://apify.com/cryptosignals/linkedin-profile-scraper#reviews) - it helps a lot. Something broken? Report it on the [Issues tab](https://apify.com/cryptosignals/linkedin-profile-scraper/issues).*

# Actor input Schema

## `profileUrl` (type: `string`):

LinkedIn profile URL (e.g. https://www.linkedin.com/in/williamhgates)

## `username` (type: `string`):

LinkedIn username (e.g. williamhgates). Alternative to Profile URL.

## `profileUrls` (type: `array`):

List of LinkedIn profile URLs for batch scraping.

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

Maximum number of profiles to scrape. Default: all provided, max 50.

## Actor input object example

```json
{
  "profileUrl": "https://www.linkedin.com/in/williamhgates",
  "username": "",
  "profileUrls": [],
  "maxItems": 50
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# 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 = {
    "profileUrl": "https://www.linkedin.com/in/williamhgates",
    "username": "",
    "profileUrls": [],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("cryptosignals/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 = {
    "profileUrl": "https://www.linkedin.com/in/williamhgates",
    "username": "",
    "profileUrls": [],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("cryptosignals/linkedin-profile-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 '{
  "profileUrl": "https://www.linkedin.com/in/williamhgates",
  "username": "",
  "profileUrls": [],
  "maxItems": 50
}' |
apify call cryptosignals/linkedin-profile-scraper --silent --output-dataset

```

## MCP server setup

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