# LinkedIn Public Profile Scraper - No Login (`mrdoe/linkedin-profile-scraper`) Actor

Scrape public LinkedIn profiles in bulk: name, headline, location, current company, photo, education and follower count. No login, no cookies, no account needed.

- **URL**: https://apify.com/mrdoe/linkedin-profile-scraper.md
- **Developed by:** [MrDoe](https://apify.com/mrdoe) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.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/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 hero](https://api.apify.com/v2/key-value-stores/ZufoLXRwZJKRdXU7w/records/linkedin-profile-scraper--hero.png)

## LinkedIn Public Profile Scraper — no login

**Give it a list of LinkedIn profiles (public identifiers or URLs) and get back the public preview of each one: name, headline, location, current company, photo, education and follower count.** No login, no cookies, no account.

***

### What does it do?

For each profile you pass, the Actor fetches its **public preview** — the version LinkedIn shows to logged-out visitors — and returns one clean row:

| Field                | Description                                                        |
| -------------------- | --------------------------------------------------------------- |
| `publicIdentifier`   | The slug from `/in/<slug>`                                      |
| `linkedinUrl`        | Canonical profile URL                                           |
| `fullName` / `firstName` / `lastName` | Name, split                                    |
| `headline`           | The profile headline / current title                           |
| `about`              | Short bio / summary, when the preview exposes it               |
| `location`           | Free-text location                                             |
| `countryCode`        | ISO country code, when available                               |
| `currentCompany` / `currentCompanyUrl` | Current employer                             |
| `photoUrl`           | Profile picture URL                                            |
| `education`          | `[{ schoolName, url }]` from the preview                       |
| `followerCount`      | Follower count, when the preview exposes it                    |
| `sameAs`             | Other links on the profile (personal site, other socials)     |
| `source`             | `public-profile` (structured data) or `og-tags` (fallback)    |
| `status`             | `OK`, `BLOCKED` (login wall hit), `NO_DATA`, or `ERROR`        |
| `scrapedAt`          | ISO timestamp                                                  |

### How it works

![How the LinkedIn Public Profile Scraper works](https://api.apify.com/v2/key-value-stores/ZufoLXRwZJKRdXU7w/records/linkedin-profile-scraper--how-it-works.png)

1. **Your input** — one or more public identifiers or full profile URLs.
2. **The Actor collects the data** — it handles everything between your input and clean results: no login, anti-bot handling, rate limiting, retries, and rotating identities over residential IPs.
3. **Output** — one dataset row per profile with its public preview fields.

### Input parameters

| Parameter            | Type    | Required | Default           | Description                                                                    |
| -------------------- | ------- | -------- | ----------------- | ---------------------------------------------------------------------------- |
| `profiles`           | Array   | Yes      | —                 | Public identifiers (`williamhgates`) or profile URLs. One per line.          |
| `maxItems`           | Integer | No       | all               | Cap on profiles scraped this run.                                            |
| `maxConcurrency`     | Integer | No       | `3`               | Parallel fetches. Keep low to stay under LinkedIn's rate limits.             |
| `proxyConfiguration` | Object  | Yes      | Apify Residential | Required. LinkedIn blocks datacenter and unproxied traffic — use residential. |

### Example output

```json
{
    "publicIdentifier": "williamhgates",
    "linkedinUrl": "https://www.linkedin.com/in/williamhgates",
    "fullName": "Bill Gates",
    "firstName": "Bill",
    "lastName": "Gates",
    "headline": "Co-chair, Gates Foundation",
    "about": "Sharing things I'm learning through my foundation work and other interests.",
    "location": "Seattle, Washington, United States",
    "countryCode": "US",
    "currentCompany": "Bill & Melinda Gates Foundation",
    "photoUrl": "https://media.licdn.com/dms/image/...",
    "education": [{ "schoolName": "Harvard University", "url": "https://www.linkedin.com/school/harvard-university/" }],
    "followerCount": 37000000,
    "sameAs": [],
    "source": "public-profile",
    "status": "OK",
    "scrapedAt": "2026-09-03T10:40:12.001Z"
}
```

You can download the dataset in JSON, CSV, Excel, XML, or HTML formats, or pull it via the API into your own pipeline.

### How to use

1. Open the Actor's **Input** tab.
2. Paste identifiers or URLs into **`profiles`**, one per line.
3. Keep **`proxyConfiguration`** on residential.
4. Press **Start**. Rows appear in the **Dataset** tab.

### What this Actor is — and isn't

- It reads the **public, logged-out preview** of a profile. That covers name, headline, location, current company, photo, education and follower count for most profiles.
- It does **not** log in, so it cannot return the full experience history, skills, endorsements, recommendations, connections, or contact details — those are only visible to signed-in users.
- Some profiles serve a **login wall** to logged-out visitors. Those come back as `status: "BLOCKED"`. Rotating residential IPs and lower concurrency reduce how often this happens.
- No email finding. This Actor returns only what the profile page itself shows.

### Limitations

- `BLOCKED` results are expected for a share of profiles — LinkedIn decides per request.
- `about` / `followerCount` are only present when the preview includes them.
- A row is a snapshot at scrape time.
- Very large lists: keep `maxConcurrency` low and expect LinkedIn to throttle.

### FAQ

**Do I need a LinkedIn account or cookies?**
No.

**Why is a profile `BLOCKED`?**
LinkedIn served the login wall to the logged-out request. Retry later, use a different residential IP, or lower concurrency.

**Can it get work history and skills?**
No — those need a signed-in session, which this Actor does not use.

**Can it find email addresses?**
No.

### Support

Found a bug or a field that changed shape? Open an issue on the Actor's **Issues** tab in the Apify Console.

### Legal / responsible use

This Actor accesses only the public, logged-out preview of a LinkedIn profile and uses no credentials. You are responsible for how you use the Actor and its output, including compliance with LinkedIn's Terms of Service and the data-protection laws that apply to you (GDPR, CCPA and others). Do not use it for spam, harassment or unlawful profiling.

# Actor input Schema

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

Public identifiers (e.g. "williamhgates") or full profile URLs (e.g. "https://www.linkedin.com/in/williamhgates"). One per line.

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

Upper limit on how many profiles to scrape this run. Leave empty to scrape all of them.

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

How many profiles to fetch in parallel. Keep this low to stay under LinkedIn's rate limits.

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

Required. LinkedIn blocks datacenter and unproxied traffic. A residential proxy is strongly recommended.

## Actor input object example

```json
{
  "profiles": [
    "williamhgates"
  ],
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "profiles": [
        "williamhgates"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrdoe/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": ["williamhgates"] }

# Run the Actor and wait for it to finish
run = client.actor("mrdoe/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 '{
  "profiles": [
    "williamhgates"
  ]
}' |
apify call mrdoe/linkedin-profile-scraper --silent --output-dataset

```

## MCP server setup

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