# LinkedIn Profile Data Scraper (No Cookies, Fair Pricing) (`vedarai/fresh-linkedin-profile-scraper`) Actor

Extract public LinkedIn profiles in bulk without cookies or login. Get full name, headline, current company, work experience, education, location, about summary, and public contact info. Transparent $5.00 / 1,000 successful profiles pricing — zero charges for failed or empty lookups.

- **URL**: https://apify.com/vedarai/fresh-linkedin-profile-scraper.md
- **Developed by:** [Artūras](https://apify.com/vedarai) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 92.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 results

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

## Fresh LinkedIn Profile Scraper

Lightweight scraper for extracting public LinkedIn profile data over plain HTTP without session cookies, browser logins, or personal accounts.

I put this together after running into two common issues with older LinkedIn actors: either they ask for your `li_at` cookie (which puts your account at risk), or they charge per raw HTTP request even when LinkedIn returns a 999 authwall or an empty page. This actor parses public JSON-LD (`Person` schema) and OpenGraph metadata directly, only billing when a profile actually returns data.

### How it works

You can feed it a list of profile URLs using `profileUrls`, a single `linkedin_url` if you are plugging it into an existing Make or Zapier workflow, or keyword strings in `searchQueries` (for example `"Head of Growth SaaS Amsterdam"`) to find matching profiles automatically. Keyword discovery respects `maxResultsPerQuery` (default 10, max 100).

When LinkedIn blocks a direct datacenter request with HTTP 999, enabling `useSearchCacheFallback` (on by default) falls back to public search engine index snippets so the run does not return empty rows. For large batches of direct URL lookups, using residential proxies in `proxyConfiguration` still gives the highest hit rate on full work history and education fields.

### Input options and safeguards

To avoid unexpected credit burn during large keyword runs, `maxProfiles` (default 100) acts as a hard cap. Once that many valid profiles are pushed to the dataset, the crawler stops. Duplicate URLs in the same input batch are stripped before any requests go out, and `maxConcurrency` (default 5) keeps request speed under control.

```json
{
  "profileUrls": [
    "https://www.linkedin.com/in/satyanadella",
    "https://www.linkedin.com/in/williamhgates"
  ],
  "searchQueries": [
    "Head of Growth SaaS Amsterdam"
  ],
  "maxResultsPerQuery": 5,
  "maxProfiles": 50,
  "useSearchCacheFallback": true
}
```

### Output format

Results are written to the default Apify dataset. Fields that are not publicly visible on a profile are returned as `null`.

```json
{
  "profileUrl": "https://www.linkedin.com/in/satyanadella",
  "username": "satyanadella",
  "fullName": "Satya Nadella",
  "firstName": "Satya",
  "lastName": "Nadella",
  "headline": "Chairman and CEO at Microsoft",
  "jobTitle": "Chairman and CEO",
  "companyName": "Microsoft",
  "companyUrl": "https://www.linkedin.com/company/microsoft",
  "location": "Redmond, Washington, US",
  "about": "Chairman and CEO at Microsoft...",
  "email": null,
  "phone": null,
  "followersCount": 11400000,
  "pictureUrl": "https://media.licdn.com/dms/image/...",
  "experience": [
    {
      "title": "Chairman and CEO",
      "companyName": "Microsoft",
      "companyUrl": "https://www.linkedin.com/company/microsoft",
      "startDate": "2014-02"
    }
  ],
  "education": [
    {
      "schoolName": "University of Chicago Booth School of Business",
      "startDate": "1994",
      "endDate": "1997"
    }
  ],
  "sourceMethod": "direct_ld_json",
  "billingStatus": "BILLED_1_RESULT",
  "unitCostUsd": 0.005,
  "scrapedAt": "2026-11-09T18:45:00.000Z"
}
```

### Billing

Pricing is $5.00 per 1,000 profiles ($0.005 per saved record via the `profile-scraped` event), applied uniformly across all account tiers. Invalid URLs, duplicate inputs, or blocked requests that yield no usable profile data are skipped at $0.00.

# Actor input Schema

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

Paste one or more public LinkedIn profile URLs (e.g., https://www.linkedin.com/in/satyanadella). Duplicates are automatically removed before scraping.

## `linkedin_url` (type: `string`):

Optional single LinkedIn profile URL field for 1-to-1 backward compatibility with bestscrapers/fresh-linkedin-profile-data API integrations.

## `searchQueries` (type: `array`):

Find LinkedIn profiles by keywords, job title, company, or location (e.g. 'CTO FinTech Lithuania', 'VP Sales SaaS New York'). Uses public search engine caches to discover profile URLs and metadata.

## `maxResultsPerQuery` (type: `integer`):

Maximum number of LinkedIn profiles to discover for each keyword query.

## `maxProfiles` (type: `integer`):

Hard cap on the total number of profiles extracted and billed in a single run. Protects your Apify balance from unexpected charges.

## `useSearchCacheFallback` (type: `boolean`):

Automatically fall back to public search engine index snippets if direct LinkedIn HTML returns an authwall ( HTTP 999 ). Recommended to keep enabled.

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

Select proxies to use for scraping LinkedIn. Apify Proxy (Residential or Datacenter) is strongly recommended for high-volume runs.

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

Maximum number of parallel requests.

## Actor input object example

```json
{
  "profileUrls": [
    "https://www.linkedin.com/in/williamhgates",
    "https://www.linkedin.com/in/satyanadella"
  ],
  "searchQueries": [],
  "maxResultsPerQuery": 10,
  "maxProfiles": 100,
  "useSearchCacheFallback": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 5
}
```

# Actor output Schema

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

Dataset containing the extracted LinkedIn profiles.

# 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/williamhgates",
        "https://www.linkedin.com/in/satyanadella"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vedarai/fresh-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/williamhgates",
        "https://www.linkedin.com/in/satyanadella",
    ] }

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

```

## MCP server setup

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