# LinkedIn Profile Scraper: Experience, Education & Skills (`rayackery/linkedin-profile-details`) Actor

Scrape LinkedIn profiles in bulk from a list of URLs: every job, company, school, certification, project, skill and language, one row per person. Export to CSV, Excel or JSON. Works with any LinkedIn login, no Sales Navigator. $2.50 per 1,000 profiles; not-found profiles are free.

- **URL**: https://apify.com/rayackery/linkedin-profile-details.md
- **Developed by:** [Ray Ackerley](https://apify.com/rayackery) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 full profiles

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

> **More LinkedIn scrapers from the same developer**
>
> - 🔎 [**LinkedIn Sales Navigator Scraper**](https://apify.com/rayackery/linkedin-sales-navigator-scraper): export Sales Navigator lead and account searches, saved searches and lead lists to CSV, Excel or JSON.
> - 🏢 [**LinkedIn Company Employees Scraper (Sales Navigator)**](https://apify.com/rayackery/salesnav-company-employees): get every employee of a company, past the 2,500-result limit, with a found-X-of-Y report.
>
> Need the profile links first? Run one of those, then paste their `linkedinUrl` column here (see [Get profile links from Sales Navigator](#get-profile-links-from-sales-navigator)).

### What does LinkedIn Profile Scraper do?

**LinkedIn Profile Scraper turns a list of LinkedIn profile URLs into full profile data, one row per person: every job and the company behind it, every school, certifications, projects, volunteering, publications, courses, honors, languages and skills.** Download the results as CSV, Excel or JSON, or send them straight to your CRM.

It reads each profile through your own LinkedIn login, with one request per person, so every row holds what LinkedIn shows you today. **You pay only for profiles it saves.** A link with a typo, a deleted profile, or a second line for someone you already listed costs nothing.

- ✅ **Bulk LinkedIn profile scraping** from links, public identifiers or profile IDs, in one list
- ✅ **Full work history and education**, with LinkedIn company and school pages and IDs
- ✅ **Certifications, projects, volunteering, publications, courses, honors, patents, languages and skills**
- ✅ **No Sales Navigator needed.** Any logged-in LinkedIn account works
- ✅ **English labels** whatever language your LinkedIn is set to
- ✅ **$2.50 per 1,000 profiles**, with no charge for profiles LinkedIn doesn't return
- ✅ **API, schedules and integrations** with n8n, Make and Zapier

> **This Actor uses your own LinkedIn account.** It signs in to LinkedIn with the session you paste in, so every request counts as yours, and every profile it opens is a profile view from your account. LinkedIn's User Agreement prohibits automated access, and heavy use can get your account restricted. Keep your volumes moderate and read [Limits](#limits) before your first run. This Actor is not affiliated with or endorsed by LinkedIn.

### Who uses a LinkedIn profile scraper?

It's built for when you already have the people and want their full profiles.

- **Sales teams** with 300 prospects in the CRM, each with a LinkedIn link, who want work history before writing to them.
- **Recruiters** with a shortlist of 40 candidates who want every role, school and certification side by side in a spreadsheet.
- **Researchers and analysts** with a list of founders from a conference who want to see where each of them studied and worked.
- **RevOps and data teams** enriching CRM records with job titles, companies, education and location.

Paste the links, and when the run finishes, download a CSV, an Excel file or JSON.

### What LinkedIn profile data can you scrape?

| Section | What's in it |
|---|---|
| The person | Name, headline, about, profile link, public identifier, profile ID, and premium, influencer, creator, open-to-work and hiring flags |
| Location | The place as LinkedIn writes it, its country code, and the city, state and country split out (`Seattle, WA, United States` for a US place) |
| Current position | The job or jobs they hold now at their current company, with the same detail as experience |
| Experience | Every position: title, company, the company's LinkedIn page, ID and logo, employment type, location, start and end dates, duration and description |
| Education | Every school: name, the school's LinkedIn page and ID, degree, field of study, dates and logo |
| Certifications | Title, issuer, the issuer's page and logo, issue date, credential ID and the certificate link |
| Projects | Title, dates, description, link, the school or company it belongs to, and the other people who worked on it |
| Volunteering | Role, organization, cause, dates and description |
| Publications | Title, publisher and full date, link and description |
| Courses, honors and awards | Each one with the school or company it belongs to |
| Languages | Each language with its level, such as "Native or bilingual proficiency" |
| Patents and organizations | As the profile lists them |
| Skills | The first 20 skills by name |
| Section totals | LinkedIn's own count for every section, which can be higher than what the row lists (64 skills while 20 are listed) |
| Pictures | Profile photo and cover image, in every size LinkedIn offers, largest first |
| Also | Industry, causes the person cares about, profile languages and the headline in each language |

A few fields of the layout stay empty because the request the Actor makes doesn't carry them, including email addresses and connection counts. [Output](#output) lists them all, so you know before you run.

#### Why the rows are easy to use

- **Paste the link you have.** `https://www.linkedin.com/in/jane-doe`, `de.linkedin.com/in/jane-doe/details/experience/`, the share link the LinkedIn app copies (tracking parameters and all), a bare `jane-doe`, or a profile ID (`ACoAA…`) all work in one list. If some lines can't be read, the run names them in one message before it starts (the first ten, and how many more), so cleaning up a messy CRM export takes one pass.
- **The rows fit flows you may already have.** They use the common LinkedIn profile layout (`firstName`, `headline`, `experience`, `education`, `skills`, `sectionTotals` and the rest, in that order). Companies and schools link to their LinkedIn pages, and a company with no LinkedIn page links to a LinkedIn search for its name.
- **Your LinkedIn language doesn't leak into the data.** The Actor asks LinkedIn for English, so an employment type reads "Full-time" even when your own LinkedIn is set to another language.
- **Join rows back to your list.** Each row's `originalQuery.query` is the line you gave for that person, exactly as you typed it.
- **Nothing is lost when a run stops early.** Rows are saved as they're found. If Apify restarts the run, it carries on without saving or charging anyone twice. If LinkedIn ends your session halfway, the final status says how many profiles weren't reached, so you rerun only those.

### How to scrape LinkedIn profiles

1. Click **Try for free** (or **Start** if you've used the Actor before).
2. In **Profiles**, add each person on its own line: a profile link, a public identifier or a profile ID. For a first run, start with five people you know, so you can check the rows against their profiles.
3. In **LinkedIn session (Copy as cURL)**, paste your session. [How to copy your session](#how-to-copy-your-linkedin-session) takes about a minute.
4. On LinkedIn, turn on **private viewing mode** (Settings → Visibility → Profile viewing options), so the people you look up don't see your name.
5. Under **Proxy**, keep the residential proxy and pick the country you normally log in to LinkedIn from.
6. Optional but recommended: set a **maximum cost** for the run in the run options. The run stops itself before it goes over (see [Pricing](#how-much-does-it-cost-to-scrape-linkedin-profiles)).
7. Click **Start**. The status line shows progress, for example `Profile 37 of 120 · 2 not found`.
8. When the run finishes, open the **Output** tab and download the rows as CSV, Excel or JSON. The final status names any profile LinkedIn didn't return.

**How long it takes.** The Actor opens one profile every 4 to 8 seconds, at random, so 100 profiles take about 10 minutes and 500 take about an hour. The pace is deliberate, to look like a person clicking through profiles, and you can slow it down further under **Pause between profiles**.

To reuse the same list and settings, save them as a **task** and start the task whenever you need fresh data.

#### Get profile links from Sales Navigator

Don't have the links yet? Build the list with Sales Navigator first, then bring it here for the full profiles:

- From a **search, saved search or lead list**: run the [LinkedIn Sales Navigator Scraper](https://apify.com/rayackery/linkedin-sales-navigator-scraper) with **Deep** on. Its `linkedinUrl` column is the public `linkedin.com/in/` link.
- From **a company's staff**: run the [LinkedIn Company Employees Scraper](https://apify.com/rayackery/salesnav-company-employees) with **Full** rows. Its `linkedinUrl` column is the public `linkedin.com/in/` link.

Paste that column into **Profiles**. Sales Navigator lead links themselves aren't accepted here.

#### Scrape LinkedIn profiles through the API

The **API** tab on this page shows ready-made calls for your account, in several languages. The input is the same JSON as the form:

```json
{
  "queries": ["https://www.linkedin.com/in/jane-doe", "john-roe-12345", "ACoAAB1x2y3z"],
  "browserRequest": "curl 'https://www.linkedin.com/voyager/api/...' -H '...' ...",
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "US"
  }
}
```

Add `maxTotalChargeUsd` to the run call to cap what the run can cost. The session field is stored encrypted, also when you pass it through the API. If your flows already send `urls`, `publicIdentifiers` or `profileIds`, those lists work too; see [Input](#input).

#### Use it with n8n, Make, Zapier and your CRM

Apify's integrations start runs from n8n, Make or Zapier, and send the results to Slack, a webhook or your own workflow when a run finishes. For example, a new lead lands in your CRM with a LinkedIn link, a Zap starts this Actor with that one link, and the profile row goes back onto the CRM record. Set integrations up on the **Integrations** tab of this Actor or of your saved task.

### How to copy your LinkedIn session

The Actor needs one real LinkedIn request from your browser. It holds your login, so treat it like a password. The field is stored encrypted.

1. Open any LinkedIn page in Chrome while you're logged in, for example your feed.
2. Open DevTools (⌥⌘I on Mac, Ctrl+Shift+I on Windows), open the **Network** tab and type `voyager` into its filter box.
3. Reload the page, right-click any `voyager/api` row (for example `me`), and choose **Copy → Copy as cURL (bash)**. Skip rows shown in red; those requests failed.
4. Paste it into the **LinkedIn session (Copy as cURL)** field.

Choose **Copy as cURL (bash)**, not the cmd or PowerShell versions. What you paste should start with `curl '`. A request copied from a Sales Navigator tab works too. A cookie export, a file path or a link won't work.

A session lasts until LinkedIn ends it. If a run says the session ended, log in to LinkedIn in Chrome again and copy a fresh request.

### Input

| Field | Key | What it does |
|---|---|---|
| Profiles | `queries` | One profile per line: a link (`linkedin.com/in/…`, with or without `https://`, a country subdomain, a trailing path or tracking parameters), the public identifier at the end of the link, or a profile ID (`ACoAA…`). Required, unless you use one of the API-only lists below. |
| LinkedIn session (Copy as cURL) | `browserRequest` | Your session, copied as described above. Required. |
| Proxy | `proxy` | Residential proxy by default. Pick the country you normally log in from. |
| Pause between profiles | `pauseSeconds` | Seconds between two profiles; the real wait is random, between this and twice this. Default 4. |

Through the API, the Actor also reads `urls`, `publicIdentifiers` and `profileIds`: three more lists in the same formats, added after `queries`. One entry can hold several lines. `profileScraperMode` is accepted with any value. The Actor has one mode and never searches for email addresses; a mode asking for email search runs without it, and the run log says so.

A Sales Navigator lead link, or any line that isn't a LinkedIn profile, stops the run before it starts, with a message that names those lines (the first ten, and how many more).

Someone listed twice is saved and charged once. The same link or identifier twice is fetched once; a link and that person's profile ID are fetched once each, so two profile views.

### How much does it cost to scrape LinkedIn profiles?

**$2.50 per 1,000 profiles**, charged per profile saved. The exact prices are on this Actor's **Pricing** tab. There may also be a small start fee, charged once when a run starts; if there is one, the Pricing tab shows it.

| What happens | Charged? |
|---|---|
| LinkedIn returns the profile and the row is saved | Yes, one `profile` event |
| LinkedIn doesn't return the profile (a typo, a deleted or hidden profile) | No |
| The line names someone already saved in this run | No |
| LinkedIn refuses the profile | No |
| The run stops at your maximum cost, a rate limit or an ended session | Only the profiles saved before it stopped |

In short, a profile isn't charged unless its row is saved.

**Maximum cost.** Set a maximum cost for the run before you start it. Before each profile, the Actor checks that the limit still pays for it; when it doesn't, the run stops and keeps everything it saved. If the limit can't pay for a single profile, the run fails straight away, before it contacts LinkedIn.

A run that fails because the input or the session can't be used saves no rows, so nothing is charged. A start fee, if the Pricing tab shows one, still applies.

**A new run charges again.** Each run charges for every profile it saves, including profiles an earlier run already saved. Before you rerun a list, drop the lines already in your dataset: each row's `originalQuery.query` is the line you gave for it. To merge datasets from different runs, match on `id`.

### Output

One row per profile, for example (shortened, made-up person):

```json
{
  "id": "ACoAAB1x2y3z",
  "publicIdentifier": "jane-doe",
  "linkedinUrl": "https://www.linkedin.com/in/jane-doe",
  "firstName": "Jane",
  "lastName": "Doe",
  "headline": "Head of Sales at Example Robotics",
  "location": {
    "linkedinText": "Berlin, Berlin, Germany",
    "countryCode": "DE",
    "parsed": {"text": "Berlin, Berlin, Germany", "city": "Berlin", "state": "Berlin", "country": "Germany", "...": "..."}
  },
  "about": "Builds sales teams.",
  "currentPosition": [
    {
      "position": "Head of Sales",
      "companyName": "Example Robotics",
      "companyLinkedinUrl": "https://www.linkedin.com/company/example-robotics/",
      "companyId": "4242",
      "employmentType": "Full-time",
      "startDate": {"month": "Feb", "year": 2024, "text": "Feb 2024"},
      "endDate": {"text": "Present"},
      "duration": "2 yrs 10 mos",
      "...": "..."
    }
  ],
  "experience": ["..."],
  "education": [
    {
      "schoolName": "Example University",
      "schoolId": "9",
      "schoolLinkedinUrl": "https://www.linkedin.com/company/9/",
      "degree": "MSc",
      "fieldOfStudy": "Robotics",
      "period": "2015 - 2017",
      "...": "..."
    }
  ],
  "languages": [{"name": "German", "proficiency": "Native or bilingual proficiency"}],
  "skills": [{"name": "Negotiation"}, {"name": "Robotics"}],
  "sectionTotals": {"experience": 3, "education": 1, "skills": 22, "...": 0},
  "originalQuery": {"query": "https://www.linkedin.com/in/jane-doe"}
}
```

`originalQuery.query` is the line you gave for that person, as you typed it, so you can join the rows back to your own list. `sectionTotals` holds LinkedIn's own count of each section, which can be higher than what the row lists.

**Filled:** `id`, `publicIdentifier`, `linkedinUrl`, `firstName`, `lastName`, `headline`, `about`, `openToWork`, `hiring`, `premium`, `influencer`, `memorialized`, `creator`, `location`, `objectUrn`, `industry`, `currentPosition`, `profileTopEducation`, `profilePicture`, `coverPicture`, `photo`, `profileLocales`, `primaryLocale`, `multiLocaleHeadline`, `experience`, `education`, `certifications`, `projects`, `volunteering`, `publications`, `courses`, `patents`, `honorsAndAwards`, `languages`, `organizations`, `causes`, `skills` (the first 20, by name) and `sectionTotals`.

**Always empty.** The request the Actor makes doesn't carry these, so every row has them as `null` or `[]`: `connectionsCount`, `followerCount`, `pronoun`, `verified`, `registeredAt`, `topSkills`, `featured`, `interests`, `moreProfiles`, `profileActions`, `receivedRecommendations`, `givenRecommendations`, `connectedApps`, `services`, `composeOptionType` and `emails`. Each position's `workplaceType` is `null`, and `websites` is left out of the row. Skills past the first 20, and the endorsement counts and positions behind each skill, aren't included. `industry.name` is the name LinkedIn's profile data gives, which for some industries is an older name (for example "Philanthropy" rather than "Philanthropic Fundraising Services"); `industry.id` is the same.

The Output tab's **Profiles** view shows every column. Download the dataset as CSV or Excel for a spreadsheet, or as JSON to keep the nested sections as they are.

### Limits

- **Profile views.** Every profile the Actor opens is a profile view from your account. Turn on LinkedIn's private viewing mode first.
- **Keep it human-sized.** LinkedIn watches how many profiles an account opens. We suggest no more than a few hundred profiles a day per account, one run at a time per LinkedIn login, and leaving the pause at its default or higher.
- **Profiles LinkedIn doesn't show you.** A profile that doesn't exist any more, or one LinkedIn hides from your account, isn't saved; the final status names it.
- **Rate limits stop the run.** If LinkedIn slows the session down, the Actor waits and retries. If that doesn't help, it stops and keeps what it saved. Start a new run later with the profiles that are left.
- **One IP per run.** The Actor uses one residential IP for the whole run. Apify keeps an IP for about 30 minutes, so a longer run changes IP partway through, which LinkedIn may notice.

**Your LinkedIn account.** The Actor uses your own LinkedIn account and your own session. LinkedIn's User Agreement prohibits automated access, and heavy use can get your account restricted or logged out. The Actor can't prevent that. Keep volumes moderate, don't lower the pause, and use a proxy in the country you normally log in from. You're responsible for how you use your account.

### FAQ

#### Will the people I look up see that I viewed their profile?

Only if your profile views are visible. Each profile the Actor opens counts as a view from your account, exactly as if you'd clicked it. Turn on private viewing mode on LinkedIn (Settings → Visibility → Profile viewing options) before you run, and those views show up as anonymous.

#### How many LinkedIn profiles can I scrape?

As many as your maximum cost pays for, but your LinkedIn account is the real limit. We suggest a few hundred profiles a day per account, one run at a time. For a list of 2,000, run 300 or so a day over a week rather than all at once.

#### Do I need LinkedIn Sales Navigator?

No. Any logged-in LinkedIn account works, and a session copied from Sales Navigator works too. If you do have Sales Navigator and want to export searches or whole companies, see the [LinkedIn Sales Navigator Scraper](https://apify.com/rayackery/linkedin-sales-navigator-scraper) and the [LinkedIn Company Employees Scraper](https://apify.com/rayackery/salesnav-company-employees).

#### My LinkedIn isn't in English. Will the rows be?

Yes. The Actor asks LinkedIn for English whatever language your account uses, so labels such as the employment type ("Full-time") and language levels come back in English. Names, headlines and descriptions stay as the person wrote them.

#### The run says LinkedIn ended the session. What now?

Log in to LinkedIn in Chrome and copy a fresh request as described in [How to copy your LinkedIn session](#how-to-copy-your-linkedin-session). The profiles saved before the session ended are kept, and the final status says how many weren't reached (`Not reached: …`). Start the new run with only the profiles that aren't in your dataset yet (each row's `originalQuery.query` is the line you gave for it): a new run charges for every profile it saves, including ones an earlier run saved. The same goes for a run stopped by a rate limit or your maximum cost.

#### Some profiles are listed as not found. Why?

LinkedIn didn't return them: the link has a typo, the person changed their public identifier or closed their account, or LinkedIn hides the profile from your account. Check the link in your browser. Those profiles aren't charged.

#### What happens if Apify restarts my run?

The run carries on where it stopped. Profiles already saved aren't fetched, saved or charged again, and profiles LinkedIn didn't return aren't asked for again. This applies only to the same run; a new run you start yourself starts over (see [Pricing](#how-much-does-it-cost-to-scrape-linkedin-profiles)).

#### Can I get email addresses?

No. The Actor doesn't find or guess email addresses, and `emails` is always empty. If you need emails, run the rows through the email finder you already use: the name and current company in each row are what those tools ask for.

#### Can I use Sales Navigator lead links?

No. Use the person's `linkedin.com/in/` link instead; Sales Navigator shows it on the lead page. To turn a whole Sales Navigator search into those links, see [Get profile links from Sales Navigator](#get-profile-links-from-sales-navigator).

#### Why does it need my LinkedIn session?

Because it reads LinkedIn as you. That's how it sees the profiles your account can see, and it's also why each profile counts as your profile view and why the Limits above matter. The session is stored encrypted and is never written to the run log, the status line or the dataset.

#### Is it legal to scrape LinkedIn profiles?

The results are names, jobs and profile details of real people, so they're personal data. You're responsible for using them in line with LinkedIn's terms and the privacy laws that apply to you, such as GDPR. If you're unsure, ask a lawyer about your use case.

### More LinkedIn scrapers

| Actor | Use it to |
|---|---|
| [LinkedIn Sales Navigator Scraper](https://apify.com/rayackery/linkedin-sales-navigator-scraper) | Export Sales Navigator lead and account searches, saved searches and lead lists |
| [LinkedIn Company Employees Scraper (Sales Navigator)](https://apify.com/rayackery/salesnav-company-employees) | Get every employee of a company, past the 2,500-result limit, with a found-X-of-Y report |
| **LinkedIn Profile Scraper** (this one) | Get full profiles for a list of people |

# Actor input Schema

## `queries` (type: `array`):

One profile per line: a profile link (linkedin.com/in/…), the public identifier at the end of that link (for example <code>jane-doe</code>), or a profile ID (<code>ACoAA…</code>). Someone listed twice is saved and charged once. Sales Navigator lead links aren't supported.

## `browserRequest` (type: `string`):

Copy your session from Chrome:<br>1. Open any LinkedIn page in Chrome while you're logged in, for example your feed.<br>2. Open DevTools (⌥⌘I on Mac, Ctrl+Shift+I on Windows), open the Network tab and filter <code>voyager</code>.<br>3. Reload, right-click any <code>voyager/api</code> row, and choose Copy → Copy as cURL (bash).<br>4. Paste the result here. It holds your login; it's stored encrypted.

## `proxy` (type: `object`):

Residential proxies are used by default. Choose your own country so the run looks like it comes from where you normally log in to LinkedIn.

## `pauseSeconds` (type: `integer`):

Seconds to wait between two profiles. The real wait is random, between this and twice this. Raise it if LinkedIn starts slowing you down.

## Actor input object example

```json
{
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "pauseSeconds": 4
}
```

# Actor output Schema

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

All rows of the run, with the Profiles table view.

# 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 = {
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rayackery/linkedin-profile-details").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 = { "proxy": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    } }

# Run the Actor and wait for it to finish
run = client.actor("rayackery/linkedin-profile-details").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 '{
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call rayackery/linkedin-profile-details --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rayackery/linkedin-profile-details"
        }
    }
}
```

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/QZxTGq3FwQewjLwMk/builds/eQ5qrgheKiz8HkHRk/openapi.json
