# Linkedin Profile Scraper - OpenClaw MCP Native (`openclaw/linkedin-profile-scraper`) Actor

- **URL**: https://apify.com/openclaw/linkedin-profile-scraper.md
- **Developed by:** [John Smith](https://apify.com/openclaw) (community)
- **Categories:** AI, Agents, Lead generation
- **Stats:** 71 total users, 5 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/platform/actors/running/actors-in-store#pay-per-usage

## 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 — No Cookies 🍪

Scrape public LinkedIn profile data **without login or cookies**. Extract names, headlines, current titles, companies, locations, education, skills, and more from any public LinkedIn profile.

Built with [CheerioCrawler](https://crawlee.dev/) (no browser overhead). Pay per result.

### What it extracts

| Field | Source | Always available? |
|-------|--------|-------------------|
| Full name | JSON-LD / OG / HTML | ✅ |
| Headline | JSON-LD / OG | ✅ |
| **Current title** | JSON-LD / HTML | ✅ |
| **Current company** | JSON-LD / HTML | ✅ |
| Location | JSON-LD / OG / HTML | ✅ |
| About / bio | HTML / OG description | Usually |
| Profile image | JSON-LD / OG | ✅ |
| Work experience | JSON-LD + HTML | Optional |
| Education | JSON-LD + HTML | Optional |
| Skills | HTML | Optional |
| Follower count | OG / HTML | Sometimes |
| Connection count | OG / HTML | Sometimes |
| Data quality flag | — | ✅ |

### Input

Paste LinkedIn profile URLs (one per line). Accepts:
- `https://www.linkedin.com/in/satyanadella`
- `https://linkedin.com/in/satyanadella/`
- `linkedin.com/in/satyanadella`
- `satyanadella` (bare slug)

#### Options

- **Include Experience** — full work history (default: on)
- **Include Education** — education list (default: on)
- **Include Skills** — skills list (default: off)
- **Slow Mode** — add random delays for 50+ profiles (default: off)
- **Max Concurrency** — parallel requests, 1–20 (default: 5)
- **Proxy** — residential proxies strongly recommended

### How it works

1. Normalizes and deduplicates input URLs
2. Fetches each public profile page via CheerioCrawler with proxy rotation
3. Extracts structured data from `<script type="application/ld+json">` (JSON-LD Person object)
4. Supplements with OG meta tags and visible HTML parsing
5. Detects login walls and flags blocked profiles

No headless browser. No cookies. No account risk.

### Data quality flags

- `full` — JSON-LD Person data found (best quality)
- `partial` — Name found but no JSON-LD (OG/HTML only)
- `minimal` — Very limited data extracted
- `blocked` — Login wall detected
- `failed` — Request failed after retries

### Pricing

Pay per result: **$2.00 / 1,000 profiles**

No charge for blocked or failed requests.

### Limitations

- LinkedIn may change their public page structure at any time. The scraper uses JSON-LD → OG meta → HTML fallback strategies.
- Some profiles are fully private and return no public data.
- Skills data is limited on public pages (usually top 3–5 only).
- Residential proxies significantly improve reliability.
- Rate limiting is common at scale. Use Slow Mode for 50+ profiles.

### Deploy

#### 1. Push to GitHub

```bash
## Create a new repo on GitHub (github.com → New repository), then:
git remote add origin https://github.com/YOUR_USERNAME/linkedin-profile-scraper.git
git branch -M main
git push -u origin main
````

Or with SSH: `git@github.com:YOUR_USERNAME/linkedin-profile-scraper.git`

#### 2. Apify Console → Link Git repo → Build

1. Go to [Apify Console](https://console.apify.com/) → **Actors** → **Create new** → **Import from Git repository**.
2. Paste your repo URL (e.g. `https://github.com/YOUR_USERNAME/linkedin-profile-scraper`) and connect (GitHub OAuth if needed).
3. Apify will detect `.actor/actor.json` and use it. Click **Build** to build the Docker image.
4. (Optional) Set **Pay per result** pricing at $2/1,000 profiles, then **Publish** to the Apify Store.

### Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by LinkedIn Corporation. LinkedIn® is a registered trademark of LinkedIn Corporation. All trademarks are property of their respective owners. Please use this tool responsibly and in accordance with applicable laws and regulations.

# Actor input Schema

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

List of LinkedIn profile URLs to scrape. Accepts formats like: https://www.linkedin.com/in/username, https://linkedin.com/in/username, or just the username slug.

## `includeExperience` (type: `boolean`):

Extract full work experience history (titles, companies, dates). Slower but more data.

## `includeEducation` (type: `boolean`):

Extract education history (schools, degrees, dates).

## `includeSkills` (type: `boolean`):

Extract listed skills from the profile.

## `slowMode` (type: `boolean`):

Add random delays between requests to reduce blocking risk. Recommended for 50+ profiles.

## `maxConcurrency` (type: `integer`):

Maximum number of parallel requests. Lower = safer, higher = faster.

## `cookie` (type: `string`):

Your LinkedIn li\_at session cookie. Enables access to unmasked job titles and richer profile data. Get it from Chrome DevTools → Application → Cookies → linkedin.com → li\_at. Optional but strongly recommended.

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

Proxy settings. Residential proxies strongly recommended for reliability.

## Actor input object example

```json
{
  "profileUrls": [
    "https://www.linkedin.com/in/satyanadella"
  ],
  "includeExperience": true,
  "includeEducation": true,
  "includeSkills": false,
  "slowMode": false,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "profileUrls": [
        "https://www.linkedin.com/in/satyanadella"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("openclaw/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 = {
    "profileUrls": ["https://www.linkedin.com/in/satyanadella"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("openclaw/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 '{
  "profileUrls": [
    "https://www.linkedin.com/in/satyanadella"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call openclaw/linkedin-profile-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Linkedin Profile Scraper - OpenClaw MCP Native",
        "version": "0.0",
        "x-build-id": "xpsUrSihBJFDBFbBI"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/openclaw~linkedin-profile-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-openclaw-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/openclaw~linkedin-profile-scraper/runs": {
            "post": {
                "operationId": "runs-sync-openclaw-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/openclaw~linkedin-profile-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-openclaw-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": [
                    "profileUrls"
                ],
                "properties": {
                    "profileUrls": {
                        "title": "Profile URLs",
                        "type": "array",
                        "description": "List of LinkedIn profile URLs to scrape. Accepts formats like: https://www.linkedin.com/in/username, https://linkedin.com/in/username, or just the username slug.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "includeExperience": {
                        "title": "Include Experience Details",
                        "type": "boolean",
                        "description": "Extract full work experience history (titles, companies, dates). Slower but more data.",
                        "default": true
                    },
                    "includeEducation": {
                        "title": "Include Education Details",
                        "type": "boolean",
                        "description": "Extract education history (schools, degrees, dates).",
                        "default": true
                    },
                    "includeSkills": {
                        "title": "Include Skills",
                        "type": "boolean",
                        "description": "Extract listed skills from the profile.",
                        "default": false
                    },
                    "slowMode": {
                        "title": "Slow Mode (Safer)",
                        "type": "boolean",
                        "description": "Add random delays between requests to reduce blocking risk. Recommended for 50+ profiles.",
                        "default": false
                    },
                    "maxConcurrency": {
                        "title": "Max Concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Maximum number of parallel requests. Lower = safer, higher = faster.",
                        "default": 5
                    },
                    "cookie": {
                        "title": "LinkedIn Cookie (li_at)",
                        "type": "string",
                        "description": "Your LinkedIn li_at session cookie. Enables access to unmasked job titles and richer profile data. Get it from Chrome DevTools → Application → Cookies → linkedin.com → li_at. Optional but strongly recommended."
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings. Residential proxies strongly recommended for reliability."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
