# Linkedin People Search Scraper : generate leads from Linkedin (`logical_scrapers/linkedin-people-search-scraper`) Actor

scrapes LinkedIn people search results. Extract detailed profile information with support for advanced filtering including industry, location, company, experience, and more.

- **URL**: https://apify.com/logical_scrapers/linkedin-people-search-scraper.md
- **Developed by:** [Goldmine](https://apify.com/logical_scrapers) (community)
- **Categories:** Lead generation, Social media, Business
- **Stats:** 202 total users, 1 monthly users, 100.0% runs succeeded, 8 bookmarks
- **User rating**: 1.00 out of 5 stars

## Pricing

from $3.99 / 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.
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 People Search Scraper

A powerful Apify Actor that scrapes LinkedIn people search results. Extract detailed profile information with support for advanced filtering including industry, location, company, experience, and more.

### ✨ Features

- **🔍 Advanced Search**: Support for all LinkedIn search filters including keywords, location, industry, company, etc.
- **📊 Rich Profile Data**: Extract names, titles, locations, profile images, connection degrees, summaries, and more
- **🌐 Global Coverage**: Search across any location with LinkedIn's geo targeting
- **🏢 Company Filtering**: Filter by current company, past company, or specific organizations
- **🎓 Education Filtering**: Search by schools, education level, and academic background
- **🛡️ Residential Proxies**: Built-in support for Apify residential proxies to avoid detection
- **📈 Pagination Support**: Automatically fetch multiple pages of results
- **⚡ Fast & Efficient**: Async implementation with rate limiting for optimal performance

### 🚀 Quick Start

#### Input Parameters

- **Search URL** (required): LinkedIn people search URL with your desired filters
- **Max Profiles** (optional): Maximum number of profiles to scrape (default: 50, max: 1000)
- **Cookies** (required): LinkedIn session cookies in browser export format
- **Proxy Configuration** (optional): Proxy settings with residential proxies as default

#### Example Input

```json
{
  "searchUrl": "https://www.linkedin.com/search/results/people/?keywords=software%20engineer&geoUrn=90000084&industry=%5B%224%22%5D",
  "maxProfiles": 100,
  "cookies": [
    { "name": "li_at", "value": "AQEDATUXKeAAfczcAAABmAp3NH8..." },
    { "name": "JSESSIONID", "value": "ajax:3650725343089769379" },
    { "name": "bcookie", "value": "v=2&878078fd-1eeb-4b8c..." },
    { "name": "bscookie", "value": "v=1&202311142347541a4167c5..." }
    { ...}
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

### 🎯 Search URL Examples

#### Basic Search

```
https://www.linkedin.com/search/results/people/?keywords=data%20scientist&origin=FACETED_SEARCH
```

#### Location-Based Search

```
https://www.linkedin.com/search/results/people/?keywords=product%20manager&geoUrn=90000084&origin=FACETED_SEARCH
```

#### Industry + Experience Filter

```
https://www.linkedin.com/search/results/people/?keywords=marketing&industry=%5B%226%22%5D&experience=%5B%222%22%5D&origin=FACETED_SEARCH
```

#### Advanced Multi-Filter Search

```
https://www.linkedin.com/search/results/people/?keywords=UI%20UX%20designer&currentCompany=%5B%221035%22%5D&schoolFilter=%5B%2218166%22%5D&profileLanguage=%5B%22en%22%5D&origin=FACETED_SEARCH
```

### Cookie Extraction

To extract cookies from Linkedin:

1. Install the Cookie Editor extension from Chrome Web Store or Firefox Add-ons
2. Login to Linkedin in your browser
3. Click on the Cookie Editor extension icon
4. Export cookies as JSON
5. Paste the exported JSON into the cookies field

***

[!video](https://youtu.be/LK7EnP6YFPA)

***

### 📤 Output Format

Each scraped profile contains:

```json
{
  "entity_urn": "urn:li:fsd_profile:ACoAABh9SZk...",
  "name": "John Doe",
  "title": "Senior Software Engineer at Google",
  "location": "San Francisco Bay Area",
  "profile_url": "https://www.linkedin.com/in/johndoe",
  "profile_image_url": "https://media.licdn.com/dms/image/...",
  "connection_degree": "2nd",
  "company": "Google",
  "summary": "Experienced software engineer with 5+ years...",
  "mutual_connections": "12 mutual connections",
  "followers_count": "500+ followers",
  "verified": false
}
```

### 🎛️ Supported Search Filters

| Filter Type          | LinkedIn Parameter | Description             | Example                  |
| -------------------- | ------------------ | ----------------------- | ------------------------ |
| **Keywords**         | `keywords`         | Search terms            | `software engineer`      |
| **Location**         | `geoUrn`           | Geographic location     | `90000084` (SF Bay Area) |
| **Industry**         | `industry`         | Industry sector         | `4` (Computer Software)  |
| **Current Company**  | `currentCompany`   | Current employer        | `1035` (Microsoft)       |
| **Past Company**     | `pastCompany`      | Previous employer       | `2382910` (Google)       |
| **School**           | `schoolFilter`     | Educational institution | `18166` (Stanford)       |
| **Experience Level** | `experience`       | Years of experience     | `2` (2-5 years)          |
| **Profile Language** | `profileLanguage`  | Profile language        | `en`, `fr`, `es`         |
| **First Name**       | `firstName`        | First name filter       | `John`                   |
| **Last Name**        | `lastName`         | Last name filter        | `Smith`                  |
| **Title**            | `titleFreeText`    | Job title search        | `VP Engineering`         |
| **Service Category** | `serviceCategory`  | Service offerings       | `3387` (Consulting)      |
| **Open to Work**     | `openToVolunteer`  | Open to opportunities   | `true`                   |

#### Proxy Support

Built-in integration with Apify residential proxies to avoid IP blocking and maintain anonymity.

### Important Notes

1. **Valid Cookies Required**: You must provide valid LinkedIn session cookies from a logged-in account
2. **Rate Limits**: LinkedIn may rate limit or block requests if too many are made too quickly
3. **Cookie Expiration**: LinkedIn cookies expire, so you may need to refresh them periodically
4. **Account Safety**: Use residential proxies and reasonable delays to avoid account restrictions
5. **Terms of Service**: Ensure your usage complies with LinkedIn's Terms of Service

#### Troubleshooting

**"400 Bad Request" errors:**

- Check that your cookies are valid and not expired
- Ensure the search URL is properly formatted
- Verify that required cookies (`li_at`, `JSESSIONID`) are included

**"No profiles found":**

- Try a broader search with fewer filters
- Check that the search URL works in your browser first
- Verify your cookies haven't expired

#### Getting Help

If you encounter issues:

1. Check that your search URL works in LinkedIn's web interface
2. Verify your cookies are fresh and complete
3. Enable residential proxies for better reliability
4. Contact support with specific error messages and input configuration

#### Privacy & Security

- All scraping is done through LinkedIn's public search interface
- No private or restricted information is accessed
- Residential proxies help maintain user privacy
- Cookies are handled securely and not stored permanently

***

**Ready to start scraping LinkedIn profiles?** Configure your input parameters and run the actor!

### Related scrapers

**Linkedin Company scraper** : https://apify.com/logical_scrapers/linkedin-company-scraper
**Linkedin profile scraper** : https://apify.com/logical_scrapers/linkedin-profile-scraper
**Extract leads from any website** : https://apify.com/logical_scrapers/extract-email-from-any-website
**Get Qualified leads from Google Maps** : https://apify.com/logical_scrapers/google-maps-email-extractor

**LinkedIn company posts scraper** : https://apify.com/logical_scrapers/linkedin-company-posts-scraper
linkedin search, linkedin people search, generate 1000 leads from linkedin, how to generate high qaulity leads from linkedin? , lean generation, linkedin leads, linkedin automation, social, automation, developer tool

### Contact & Support

If this Actor saves you time, please **leave a ⭐ rating** on its [Apify Store page](https://apify.com/logical_scrapers/linkedin-people-search-scraper). Ratings help other users find it and keep it maintained.

# Actor input Schema

## `searchUrl` (type: `string`):

LinkedIn people search URL with filters (e.g., https://www.linkedin.com/search/results/people/?keywords=software%20engineer\&geoUrn=90000084)

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

Maximum number of profiles to scrape

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

LinkedIn session cookies in browser export format. Required cookies: li_at, JSESSIONID. Export from browser dev tools > Application > Cookies.

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

Select proxies to be used by your crawler. Residential proxies are recommended for better success rates and avoiding blocks.

## Actor input object example

```json
{
  "searchUrl": "https://www.linkedin.com/search/results/people/?keywords=software%20engineer&origin=FACETED_SEARCH",
  "maxProfiles": 50,
  "cookies": [
    {
      "name": "li_at",
      "value": "AQEDATUXKeAAfczcAAABmAp3NH8..."
    },
    {
      "name": "JSESSIONID",
      "value": "ajax:3650725343089769379"
    },
    {
      "name": "bcookie",
      "value": "v=2&878078fd-1eeb-4b8c..."
    },
    {
      "name": "bscookie",
      "value": "v=1&202311142347541a4167c5..."
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroup": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "searchUrl": "https://www.linkedin.com/search/results/people/?keywords=software%20engineer&origin=FACETED_SEARCH",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroup": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("logical_scrapers/linkedin-people-search-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 = {
    "searchUrl": "https://www.linkedin.com/search/results/people/?keywords=software%20engineer&origin=FACETED_SEARCH",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroup": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("logical_scrapers/linkedin-people-search-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 '{
  "searchUrl": "https://www.linkedin.com/search/results/people/?keywords=software%20engineer&origin=FACETED_SEARCH",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroup": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call logical_scrapers/linkedin-people-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,logical_scrapers/linkedin-people-search-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/qm39DTq40MoS5ihJc/builds/cHYMwwcUH7ZAN3Gl9/openapi.json
