# LinkedIn Scraper: All-in-One (Profiles, Companies, Jobs, Posts) (`true-data/linkedin-scraper-all-in-one`) Actor

\[$2.00/1k Scrapes] 🔥 All LinkedIn data in one Actor 🔥 Paste any LinkedIn URLs or search by name/keyword: profiles, companies, jobs, posts and Ad Library ads, detected automatically. ✅ No login or cookies ✅ From $2/1k requests, $3.50/1k profiles ✅ Failed URLs never charged. Export JSON, CSV, Excel.

- **URL**: https://apify.com/true-data/linkedin-scraper-all-in-one.md
- **Developed by:** [True Data](https://apify.com/true-data) (community)
- **Categories:** Lead generation, Social media, Jobs
- **Features:** Limited permissions
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.0005 / actor start

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

### 🔎 What is LinkedIn Scraper: All-in-One?

**LinkedIn Scraper: All-in-One** takes any mix of LinkedIn URLs and turns them into clean, structured data. Paste profiles, company pages, job ads and posts into one list: each URL is recognized automatically and you get one dataset with a `recordType` on every row. No URLs yet? **Search** LinkedIn people by name, jobs by keyword and filters, or pull the posts of any profile or company.

- 🧭 **One input for everything.** Profiles, companies, jobs and posts in a single run. No separate Actors to chain.
- 🔍 **Search too.** People search (name → full profiles), job search (keyword, location, filters → job ads), posts from profiles / companies (with a date range).
- 📣 **LinkedIn Ad Library too.** Mode **Ads** searches LinkedIn's public Ad Library by advertiser, keyword, payer, countries and dates and returns up to **Max results** ads, each with its text, media and (where LinkedIn shows them) run dates, impressions and targeting.
- 🔓 **No login, no cookies.** Your LinkedIn account is never used or put at risk.
- 💸 **Pay per record, per type.** From **$2.00 per 1,000 jobs** and **$3.50 per 1,000 profiles**, lower on bigger plans.
- ✅ **Failed URLs are free.** Private, deleted, mistyped, duplicate or unsupported links are never charged.
- 🛑 **Budget-safe.** The run stops at your **Max cost per run** and never scrapes more than you pay for.
- ⚡ **Fast.** Batches of 100, 2 batches in parallel.
- 📦 **Any format.** JSON, CSV, Excel, HTML, or straight from the API.

#### What data does LinkedIn Scraper: All-in-One extract?

| 👤 Profiles | 🏢 Companies | 💼 Jobs | 📝 Posts |
|---|---|---|---|
| Name, headline | Name, about, logo | Job title | Post text |
| City, country | Industry, specialties | Company name & link | Date posted |
| Current company | Company size | Location | Likes, comments |
| Full experience | Employees on LinkedIn | Seniority, job function | Top visible comments |
| Education | Website, founded | Employment type | Hashtags |
| Followers, connections | Headquarters, locations | Pay range, salary | Images, videos |
| Recent posts & activity | Funding, investors | Applicants, posted date | Tagged people & companies |
| People also viewed | Similar & affiliated pages | Apply link, Easy Apply | Author name, title, followers |

> ⚠️ **Only public data.** Fields that are hidden on LinkedIn's public pages come back empty. Emails and phone numbers are not included.

### 💰 How much does it cost?

You pay only for records that are actually delivered. Each record type has its own price, and the price depends on your Apify plan:

| Record type | Free | Starter | Scale | Business and higher |
|---|---|---|---|---|
| 👤 Profile | $3.50 | **$3.50** | **$3.00** | **$2.50** |
| 🏢 Company | $3.50 | **$3.50** | **$3.00** | **$2.50** |
| 💼 Job | $2.00 | **$2.00** | **$2.00** | **$1.90** |
| 📝 Post | $2.50 | **$2.50** | **$2.20** | **$2.00** |
| 🔍 People search result (full profile) | $5.00 | **$5.00** | **$4.50** | **$4.20** |
| 📣 Ad | $4.00 | **$4.00** | **$3.75** | **$3.50** |

Prices are per **1,000 records**. Free plan: try up to **10 records in total across our LinkedIn Actors**. Plus a flat **$0.005 per run**. Platform usage is included, so there are no surprise compute bills.

> 💡 **Example:** one run on the Starter plan with 5,000 profiles, 1,000 companies, 2,000 jobs and 1,000 posts:
> 5 × $3.50 + 1 × $3.50 + 2 × $2.00 + 1 × $2.50 = **$27.50**.
> If 200 of the profile links are dead, you pay 0.2 × $3.50 = $0.70 less = **$26.80**.

Search modes are charged per record delivered too: a people search per **people search result** (one full profile found by name; it costs more than a profile by URL because we search and then scrape each person), a job search per **job**, posts from profiles / companies per **post**. Searches with no results cost nothing, and you never get more than **Max results**.

> 💡 **Search example (Starter):** a people search for 3 names with **Max results** 300 delivers up to 300 full profiles = at most 0.3 × $5.00 = **$1.50**. A job search with **Max results** 1,000 = at most 1 × $2.00 = **$2.00**.

### 🚀 How to scrape LinkedIn

1. Click **Try for free** (or **Start**). Keep **What to scrape** on **Auto** for URLs (or pick a search mode, see [Search modes](#-search-modes)).
2. Paste LinkedIn URLs into **LinkedIn URLs**, one per line. Mix any types you like.
3. Optional: set **Max results**, or **Max cost per run** in the run options.
4. Click **Start** and watch progress in the status bar: `Scraped 40 profiles, 12 companies, 3 jobs…`
5. Open the **Output** tab, pick the **Profiles**, **Companies**, **Jobs** or **Posts** view, and download your data.

**Scrape LinkedIn ads:** set **What to scrape** to **Ads**, fill in **Ad Library search** (for example advertiser `Microsoft`), set **Max results** (required, e.g. `100`) and click **Start**. Open the **Ads** view in the Output tab.

> 💡 **Big lists welcome.** Put thousands of URLs in a single run. They are grouped by type and split into batches of 100 automatically.

### ⬇️ Input

| Field | Type | Required | Description |
|---|---|---|---|
| `mode` | string | – | `auto` (default): scrape the URLs you paste. `people_search`, `job_search`, `posts_from`: see [Search modes](#-search-modes). `ads`: search the LinkedIn Ad Library with `adSearch`. |
| `urls` | array | ✅ (auto) | Any LinkedIn URLs, one per line. Supported: profiles (`linkedin.com/in/…`), companies (`linkedin.com/company/…`, also `/school/…` and `/showcase/…` pages), jobs (`linkedin.com/jobs/view/…`, or any jobs link with `?currentJobId=…`), posts (`linkedin.com/posts/…`, `linkedin.com/feed/update/…`, `linkedin.com/pulse/…` articles) and ads (`linkedin.com/ad-library/detail/…`). With or without `https://` or `www.`, country subdomains like `uk.linkedin.com` work too. Unsupported and duplicate URLs are skipped and never charged. |
| `adSearch` | object | in mode `ads` | `advertiser`, `keyword`, `payer` (at least one), `countries` (e.g. `["US","GB"]`, empty = all), `dateRange` (`all`, `last-30-days`, `current-month`, `current-year`, `last-year`, `custom` + `startDate`/`endDate` as `YYYY-MM-DD`). Or `searchUrl`: a pasted `https://www.linkedin.com/ad-library/search?…` link. |
| `maxResults` | integer | – (✅ in search modes and `ads`) | Auto: stop after this many records in total (all types together); leave empty to scrape all. **Required in the other modes.** People search, job search, posts from: total for the run, split across your searches (each search returns at most 1,000 records). Ads: total ads for the run, up to 12,000 (500 Ad Library pages × 24 ads). |

```json
{
  "urls": [
    "https://www.linkedin.com/in/satyanadella/",
    "https://www.linkedin.com/company/microsoft/",
    "https://www.linkedin.com/jobs/view/4012345678/",
    "linkedin.com/in/williamhgates"
  ],
  "maxResults": 500
}
```

Ads mode:

```json
{
  "mode": "ads",
  "adSearch": { "advertiser": "Microsoft", "countries": ["US", "GB"], "dateRange": "last-30-days" },
  "maxResults": 100
}
```

#### Which URLs are supported?

| Type | Example | Charged event |
|---|---|---|
| 👤 Profile | `https://www.linkedin.com/in/satyanadella/` | `profile` |
| 🏢 Company | `https://www.linkedin.com/company/microsoft/` (also `/school/…`, `/showcase/…`) | `company` |
| 💼 Job | `https://www.linkedin.com/jobs/view/4012345678/` or `…/jobs/search/?currentJobId=4012345678` | `job` |
| 📝 Post | `https://www.linkedin.com/posts/<author>_<slug>-activity-<id>-…`, `…/feed/update/urn:li:activity:<id>/`, `…/pulse/<article-slug>/` | `post` |
| 📣 Ad | `https://www.linkedin.com/ad-library/detail/1631743074` (or mode **Ads** with a search) | `ad` |

Search result pages without a job id, groups, events, newsletters and non-LinkedIn links are skipped (not charged). The run log tells you how many.

### 🔍 Search modes

Pick a mode in **What to scrape** (`mode`). Every search mode needs **Max results** (`maxResults`): the total number of records for the run, split evenly across your searches. The run never asks for more than your **Max cost per run** covers, and searches with no results cost nothing.

> ⚠️ **Up to 1,000 results per search.** Each search (one name, one job search, one profile or company URL) returns at most 1,000 records. Need more? Split it into narrower searches (more names, other locations or filters, shorter date ranges) in the same run.

| Mode | You give | You get | Charged event |
|---|---|---|---|
| 👤 `people_search` | First + last name per person | Full profiles of the people found (`recordType: "profile"`) | `search-result` |
| 💼 `job_search` | Location (required), keyword, filters | Job ads | `job` |
| 📝 `posts_from` | Profile or company URLs, optional date range | Their posts | `post` |

#### 👤 People search

Finds LinkedIn members by **first and last name** (both required) and scrapes the **full profile** of every match: the same data as a profile URL, so the output looks exactly like the [profile example](#-profile) (`recordType: "profile"`). Each delivered profile is charged as one **people search result** (see [prices](#-how-much-does-it-cost)). Search by keyword, title or company is not supported.

```json
{
  "mode": "people_search",
  "searches": [
    { "firstName": "John", "lastName": "Smith" },
    { "firstName": "Mary Ann", "lastName": "Jones" }
  ],
  "maxResults": 50
}
```

> 💡 Common names match people all over the world. Use **Max results** to keep the list short, then filter on `city`, `country_code` or `current_company`.

#### 💼 Job search

The same filters as LinkedIn's job search page. **Location** is required (city, region or country); everything else is optional.

| Field | Values |
|---|---|
| `keyword` | Job title, skill or company, e.g. `python developer` |
| `location` | ✅ e.g. `Berlin`, `United States` |
| `country` | 2-letter code, e.g. `DE` |
| `timeRange` | `Past 24 hours`, `Past week`, `Past month`, `Any time` |
| `jobType` | `Full-time`, `Part-time`, `Contract`, `Temporary`, `Volunteer` |
| `experienceLevel` | `Internship`, `Entry level`, `Associate`, `Mid-Senior level`, `Director`, `Executive` |
| `remote` | `On-site`, `Remote`, `Hybrid` |
| `company` | Only jobs at this company, e.g. `Microsoft` |
| `locationRadius` | `Exact location`, `5 miles (8 km)`, `10 miles (16 km)`, `25 miles (40 km)`, `50 miles (80 km)` |

```json
{
  "mode": "job_search",
  "jobSearch": { "keyword": "data engineer", "location": "Vilnius", "timeRange": "Past month", "remote": "Hybrid" },
  "maxResults": 100
}
```

Output rows are `job` records like the [job example](#-job):

```json
{
  "recordType": "job",
  "job_title": "Senior Data Engineer",
  "company_name": "Contoso",
  "job_location": "Vilnius, Vilnius, Lithuania",
  "job_employment_type": "Full-time",
  "job_posted_date": "2026-10-29T10:12:44.000Z",
  "url": "https://www.linkedin.com/jobs/view/4484059850"
}
```

#### 📝 Posts from profiles / companies

Paste **profile** (`linkedin.com/in/…`) or **company** (`linkedin.com/company/…`) URLs into **LinkedIn URLs** and get their posts, newest first. Narrow it down with **Posts from** / **Posts to** (`postsFrom`, `postsTo`, dates like `2026-10-31`, both inclusive).

```json
{
  "mode": "posts_from",
  "urls": ["https://www.linkedin.com/company/microsoft/", "https://www.linkedin.com/in/satyanadella/"],
  "postsFrom": "2026-10-01",
  "postsTo": "2026-10-31",
  "maxResults": 40
}
```

Output rows are `post` records like the [post example](#-post); `inputUrl` is the profile or company they came from:

```json
{
  "recordType": "post",
  "user_name": "Microsoft",
  "post_text": "Meet the new…",
  "date_posted": "2026-10-13T20:30:08.354Z",
  "num_likes": 1830,
  "num_comments": 112,
  "url": "https://www.linkedin.com/posts/microsoft_ai-activity-7512…",
  "inputUrl": "https://www.linkedin.com/company/microsoft/"
}
```

### ⬆️ Output

Each record is one row in the dataset. The first field, `recordType`, tells you what it is: `profile`, `company`, `job` or `post`. The **Output** tab has a table view per type; exports (JSON, CSV, Excel, HTML) contain all rows, so filter on `recordType` if you want one type only.

The examples below are shortened and illustrative.

#### 👤 Profile

```json
{
  "recordType": "profile",
  "name": "Satya Nadella",
  "position": "Chairman and CEO at Microsoft",
  "city": "Redmond, Washington, United States",
  "country_code": "US",
  "current_company": { "name": "Microsoft", "company_id": "microsoft", "title": "Chairman and CEO" },
  "experience": [{ "title": "Chairman and CEO", "company": "Microsoft", "start_date": "Feb 2014", "end_date": "Present" }],
  "education": [{ "title": "The University of Chicago Booth School of Business", "start_year": "1994", "end_year": "1996" }],
  "followers": 12297268,
  "connections": 500,
  "url": "https://www.linkedin.com/in/satyanadella",
  "inputUrl": "https://www.linkedin.com/in/satyanadella/"
}
```

#### 🏢 Company

```json
{
  "recordType": "company",
  "name": "Microsoft",
  "about": "Every company has a mission. What's ours? To empower every person and every organization to achieve more…",
  "industries": "Software Development",
  "company_size": "10,001+ employees",
  "employees_in_linkedin": 228000,
  "website": "https://news.microsoft.com/",
  "founded": 1975,
  "headquarters": "Redmond, Washington",
  "specialties": "Business Software, Developer Tools, Cloud Computing, …",
  "followers": 25000000,
  "similar": [{ "title": "Google", "Links": "https://www.linkedin.com/company/google" }],
  "url": "https://www.linkedin.com/company/microsoft",
  "inputUrl": "https://www.linkedin.com/company/microsoft/"
}
```

#### 💼 Job

```json
{
  "recordType": "job",
  "job_title": "Senior Software Engineer",
  "company_name": "Contoso",
  "company_url": "https://www.linkedin.com/company/contoso",
  "job_location": "Berlin, Germany",
  "job_seniority_level": "Mid-Senior level",
  "job_function": "Engineering and Information Technology",
  "job_employment_type": "Full-time",
  "job_industries": "Software Development",
  "job_base_pay_range": "€70,000.00/yr - €90,000.00/yr",
  "job_num_applicants": 87,
  "job_posted_date": "2026-11-03",
  "apply_link": "https://careers.contoso.example/jobs/123",
  "is_easy_apply": false,
  "job_summary": "We are looking for a senior engineer to help build…",
  "url": "https://www.linkedin.com/jobs/view/4012345678",
  "inputUrl": "https://www.linkedin.com/jobs/view/4012345678/"
}
```

#### 📝 Post

```json
{
  "recordType": "post",
  "user_name": "Jane Doe",
  "user_title": "Head of Growth at Fabrikam",
  "user_followers": 15400,
  "post_text": "Three things we learned from shipping weekly for a year…",
  "date_posted": "2026-10-28T09:14:00.000Z",
  "hashtags": ["#growth", "#startups"],
  "num_likes": 1240,
  "num_comments": 86,
  "top_visible_comments": [{ "user_name": "John Smith", "comment": "Great read, thanks for sharing." }],
  "images": ["https://media.licdn.com/…"],
  "tagged_companies": [{ "name": "Fabrikam", "link": "https://www.linkedin.com/company/fabrikam" }],
  "url": "https://www.linkedin.com/posts/janedoe_growth-startups-activity-7254…",
  "inputUrl": "https://www.linkedin.com/posts/janedoe_growth-startups-activity-7254…"
}
```

#### 📣 Ad

```json
{
  "recordType": "ad",
  "adId": "1631743074",
  "adLibraryUrl": "https://www.linkedin.com/ad-library/detail/1631743074",
  "advertiserName": "ScriptRunner - The #1 Microsoft Automation Platform",
  "advertiserUrl": "https://www.linkedin.com/company/16217038",
  "advertiserLogo": "https://media.licdn.com/dms/image/…/company-logo_100_100/…",
  "paidBy": "ScriptRunner Software GmbH",
  "format": "SINGLE_IMAGE",
  "formatLabel": "Single Image Ad",
  "headline": "Keep your PowerShell automation on track",
  "body": "Real use cases, real decisions: join HLB and ScriptRunner on 25 Nov…",
  "cta": "Register",
  "clickUrl": "https://www.scriptrunner.com/event/powershell-automation-beyond-diy-hlb?utm_campaign=…",
  "imageUrl": "https://media.licdn.com/dms/image/…/image-shrink_1280/…",
  "videoUrl": null,
  "documentUrl": null,
  "startDate": "2026-11-02",
  "endDate": "2026-11-10",
  "impressions": "1k-5k",
  "impressionsMin": 1000,
  "impressionsMax": 5000,
  "impressionsPerCountry": [
    { "country": "United Kingdom", "impressions": "44%", "percent": 44 },
    { "country": "Germany", "impressions": "18%", "percent": 18 }
  ],
  "targeting": { "language": "English", "location": "Germany, Switzerland, Netherlands, Austria, Belgium, United Kingdom" },
  "targetingParameters": { "company": { "targeted": false, "excluded": true }, "job": { "targeted": true, "excluded": false } },
  "scrapedAt": "2026-11-10T13:58:56.000Z"
}
```

#### Main output fields

| Type | Fields |
|---|---|
| All | `recordType`, `url`; `inputUrl` = the LinkedIn URL this row was scraped from (normalized), on rows scraped from a URL (not on ad, job search or people search rows) |
| 👤 Profile | `name`, `first_name`, `last_name`, `position`, `city`, `country_code`, `about`, `current_company`, `experience[]`, `education[]`, `followers`, `connections`, `posts[]`, `activity[]`, `people_also_viewed[]`, `similar_profiles[]`, `avatar`, `linkedin_id` |
| 🏢 Company | `name`, `about`, `specialties`, `company_size`, `employees_in_linkedin`, `industries`, `website`, `founded`, `headquarters`, `locations[]`, `funding`, `investors[]`, `stock_info`, `crunchbase_url`, `employees[]` (sample), `similar[]`, `affiliated[]`, `updates[]`, `logo` |
| 💼 Job | `job_title`, `company_name`, `company_id`, `company_url`, `job_location`, `job_summary`, `job_description_formatted`, `job_seniority_level`, `job_function`, `job_employment_type`, `job_industries`, `job_base_pay_range`, `base_salary`, `job_num_applicants`, `job_posted_date`, `apply_link`, `is_easy_apply`, `job_poster` |
| 📣 Ad | `adId`, `adLibraryUrl`, `advertiserName`, `advertiserUrl`, `advertiserLogo`, `paidBy`, `format` (`SINGLE_IMAGE`, `VIDEO`, `CAROUSEL`, `DOCUMENT`, `MESSAGE`, `EVENT`, `LINKEDIN_ARTICLE`, …), `formatLabel`, `creativeType`, `headline`, `body`, `cta`, `ctas[]`, `clickUrl`, `imageUrl`, `imageUrls[]`, `videoUrl`, `videoPosterUrl`, `documentUrl`, `documentTitle`, `documentPageCount`, `carouselCards[]`, `member` (thought-leader ads), `sender` (message ads), `event`, `startDate`, `endDate`, `impressions`, `impressionsMin`, `impressionsMax`, `impressionsPerCountry[]`, `targeting`, `targetingParameters`. LinkedIn hides run dates, impressions and targeting for some ads: those fields are then empty |
| 📝 Post | `post_text`, `date_posted`, `hashtags[]`, `num_likes`, `num_comments`, `top_visible_comments[]`, `images[]`, `videos[]`, `tagged_people[]`, `tagged_companies[]`, `repost`, `user_name`, `user_title`, `user_followers`, `document_page_count` |

### 🎯 Use cases

| | Who | What they do with it |
|---|---|---|
| 🤝 | **Sales teams** | Enrich leads with job title and company, then pull the company page for size, industry and website in the same run |
| 🧑‍💼 | **Recruiters** | Scrape job ads and the candidates' profiles side by side to match roles and people |
| 📊 | **Market analysts** | Track competitors' company pages, open roles and what their leaders post |
| 📣 | **Marketing teams** | Measure post reach (likes, comments, hashtags) for creators and brands |
| 🤖 | **AI agents** | One tool for any LinkedIn link: send a URL, get structured data back via API or MCP |

### 🔌 Integrations and API

Connect LinkedIn Scraper: All-in-One to **Make, Zapier, n8n, Google Sheets, Slack, webhooks** and more from the **Integrations** tab, or put it on a **schedule**.

Run it and get results in one call (get your token in **Console → Settings → API & Integrations**):

```bash
curl -X POST "https://api.apify.com/v2/acts/true-data~linkedin-scraper-all-in-one/run-sync-get-dataset-items?token=<APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://www.linkedin.com/in/satyanadella/", "https://www.linkedin.com/company/microsoft/"]}'
```

Ready-made code for **JavaScript, Python, CLI, OpenAPI and MCP** is on the **API** tab.

> 💡 **AI agents:** this Actor works out of the box with the [Apify MCP server](https://mcp.apify.com) in Claude, Cursor and other MCP clients.

### ❓ FAQ

#### Do I need a LinkedIn account or cookies?

No. You only provide URLs. No login, no cookies, no browser extension.

#### Do I have to tell the Actor which type each URL is?

No. Every URL is recognized automatically. Mix profiles, companies, jobs and posts in one list as you like.

#### How am I charged when I mix types?

Each delivered record is charged at the price of its own type (see the table above). A run with 100 profiles and 100 jobs costs 0.1 × $3.50 + 0.1 × $2.00 = $0.55 on the Starter plan. Profiles found by a people search are charged as people search results ($5.00 per 1,000 on Starter).

#### Why are some records missing from my results?

The page is private or deleted, the URL is mistyped, or the link is not a supported type. Two different URLs that lead to the same record (for example a company's numeric ID and its name) are delivered once. All of these are skipped and **not charged**. The run log and the final status show how many per reason.

#### My links look like linkedin.com/in/ACoAA… or come from Sales Navigator

Those are internal LinkedIn IDs (from Sales Navigator or CRM exports), not public profile URLs. They are skipped and **not charged**. Use the public profile URL instead: `https://www.linkedin.com/in/<name>/`.

#### Does it return emails or phone numbers?

No. The Actor returns public LinkedIn data only; emails and phone numbers are not included.

#### What happens when my budget runs out?

The run plans the work so it fits your **Max cost per run** before anything is scraped, and stops cleanly when the budget is used. Everything scraped so far stays in your dataset and you pay only for that.

#### How does the LinkedIn Ad Library mode work and what does it cost?

Set **What to scrape** to **Ads**. The Actor searches LinkedIn's public Ad Library (same filters as linkedin.com/ad-library), then opens each ad for the full details. You pay one `ad` event per delivered ad; search pages are free, and ads that fail to load are not charged. **Max results** is required: the Actor scrapes up to that many ads, in the order LinkedIn lists them, and stops earlier at your budget or the free plan limit. One run reads at most **500 search pages (24 ads each, so up to 12,000 ads)**; for more, split the search (by country or date range) into several runs. Free plan: 3 search pages per run. LinkedIn caps custom date ranges at about the last 12 months, and it hides run dates, impressions and targeting for some ads.

#### Can I search LinkedIn (people search, job search)?

Yes. Pick **People search**, **Job search** or **Posts from profiles / companies** in **What to scrape** and set **Max results**. See [Search modes](#-search-modes).

#### Why did my search return fewer results than Max results?

LinkedIn had fewer matches, some matches were private or duplicates, or your budget or the free-plan limit ran out first. You are charged only for records delivered.

#### Is it legal to scrape LinkedIn?

This Actor collects publicly available data only. You are responsible for how you use it, including compliance with data-protection laws such as GDPR when you process personal data.

#### I found a bug or need a feature

Open an issue on the **Issues** tab. We usually reply within a few hours.

# Actor input Schema

## `mode` (type: `string`):

Auto (default): paste LinkedIn URLs of any type. People search: find people by first + last name and get their full profiles. Job search: find job ads by keyword, location and filters. Posts from profiles / companies: get the posts of LinkedIn profiles or company pages. Ads: search LinkedIn's public Ad Library by advertiser, keyword, payer, countries and dates (fill in “Ad Library search” below).

## `urls` (type: `array`):

Mode “Auto”: paste any mix of LinkedIn URLs, one per line. The type is detected automatically: profiles (linkedin.com/in/…), companies (linkedin.com/company/…, /school/…, /showcase/…), jobs (linkedin.com/jobs/view/… or any jobs link with ?currentJobId=…) and posts (linkedin.com/posts/…, /feed/update/…, /pulse/… articles) and ads (linkedin.com/ad-library/detail/…). Mode “Posts from profiles / companies”: paste profile or company URLs; their posts are scraped. Unsupported and duplicate URLs are skipped and never charged.

## `maxResults` (type: `integer`):

Auto mode: stop after this many records in total (all types together); leave empty for all. REQUIRED in the other modes. People search, job search, posts from: total records for the run, split evenly across your searches or URLs; each search returns at most 1,000 records. Ads: total ads for the run (one search), up to 12,000 per run (500 Ad Library pages × 24 ads). Free Apify plan: up to 10 records in total across our LinkedIn Actors.

## `searches` (type: `array`):

One row per person: first name + last name (both required). Results are split evenly across searches up to Max results.

## `jobSearch` (type: `object`):

Location is required for job search (a city, region or country, e.g. Berlin, United States). Everything else is optional.

## `postsFrom` (type: `string`):

Only posts published on or after this date. Leave empty for the most recent posts.

## `postsTo` (type: `string`):

Only posts published on or before this date (inclusive).

## `adSearch` (type: `object`):

Ad Library search filters (used only in mode “Ads”).

## Actor input object example

```json
{
  "mode": "auto",
  "urls": [
    "https://www.linkedin.com/in/satyanadella/",
    "https://www.linkedin.com/company/microsoft/"
  ],
  "searches": [
    {
      "firstName": "John",
      "lastName": "Smith"
    }
  ],
  "jobSearch": {
    "keyword": "python developer",
    "location": "Berlin",
    "timeRange": "Past week"
  },
  "adSearch": {
    "advertiser": "Microsoft",
    "dateRange": "last-30-days"
  }
}
```

# Actor output Schema

## `records` (type: `string`):

Scraped LinkedIn profiles, companies, jobs, posts and Ad Library ads (JSON, CSV, Excel via dataset export). Filter by recordType.

# 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 = {
    "urls": [
        "https://www.linkedin.com/in/satyanadella/",
        "https://www.linkedin.com/company/microsoft/"
    ],
    "searches": [
        {
            "firstName": "John",
            "lastName": "Smith"
        }
    ],
    "jobSearch": {
        "keyword": "python developer",
        "location": "Berlin",
        "timeRange": "Past week"
    },
    "adSearch": {
        "advertiser": "Microsoft",
        "dateRange": "last-30-days"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("true-data/linkedin-scraper-all-in-one").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 = {
    "urls": [
        "https://www.linkedin.com/in/satyanadella/",
        "https://www.linkedin.com/company/microsoft/",
    ],
    "searches": [{
            "firstName": "John",
            "lastName": "Smith",
        }],
    "jobSearch": {
        "keyword": "python developer",
        "location": "Berlin",
        "timeRange": "Past week",
    },
    "adSearch": {
        "advertiser": "Microsoft",
        "dateRange": "last-30-days",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("true-data/linkedin-scraper-all-in-one").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 '{
  "urls": [
    "https://www.linkedin.com/in/satyanadella/",
    "https://www.linkedin.com/company/microsoft/"
  ],
  "searches": [
    {
      "firstName": "John",
      "lastName": "Smith"
    }
  ],
  "jobSearch": {
    "keyword": "python developer",
    "location": "Berlin",
    "timeRange": "Past week"
  },
  "adSearch": {
    "advertiser": "Microsoft",
    "dateRange": "last-30-days"
  }
}' |
apify call true-data/linkedin-scraper-all-in-one --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,true-data/linkedin-scraper-all-in-one"
        }
    }
}
```

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/ruQAUiUD5nekr0wMt/builds/N7JXd32s7fWrRuB1D/openapi.json
