# LinkedIn public profile scraper (`w3crawler/linkedin-profile-scraper`) Actor

Uses a Playwright browser to extract public LinkedIn profile metadata, experience, education, skills, certifications, posts, articles, and source-page diagnostics.

- **URL**: https://apify.com/w3crawler/linkedin-profile-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Features:** Limited permissions
- **Stats:** 4 total users, 3 monthly users, 89.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 profiles

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

Extract source-linked public LinkedIn person-profile metadata with an anonymous Playwright browser. Depending on the requested sections, a row can include identity, headline, location, About text, connections, followers, current position and company, profile image, work experience, education, skills, certifications, languages, volunteering, accomplishments, recent articles and posts, public structured data, and a per-section availability report. The Actor does not sign in, accept caller cookies, use credentials, bypass authentication challenges, or publish access-redacted placeholders as facts.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/linkedin-profile-scraper) and select **Try for free** or open the **Input** tab.
2. Supply one or more public LinkedIn `/in/` profile URLs in `profileUrls`.
3. Choose which sections to request. Skills and certifications are often unavailable without authentication, so their absence is reported rather than guessed.
4. Start the Actor, open the dataset, and export the profiles as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to inspect section statuses and counts.

### Input

`profileUrls` is required. The other fields are optional, and the defaults below are ready to use. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `profileUrls` | string array | Required | Not supplied (prefill: `https://www.linkedin.com/in/williamhgates`) | Public LinkedIn person-profile URLs, 1–200 entries. |
| `scrapeExperience` | boolean | Optional | `true` | Request the public work-experience section. |
| `scrapeEducation` | boolean | Optional | `true` | Request the public education section. |
| `scrapeSkills` | boolean | Optional | `true` | Request public skills and endorsements. The section can be unavailable without login. |
| `scrapeCertifications` | boolean | Optional | `true` | Request public licenses and certifications. The section can be unavailable without login. |
| `maxProfiles` | integer | Optional | `10` | Maximum profiles processed, from 1 to 200. |
| `proxyConfiguration` | object | Optional | `{"useApifyProxy":false}` | Standard Apify Proxy settings. Direct access is used by default. |

Example input using the prefilled profile URL and the schema defaults:

```json
{
  "profileUrls": [
    "https://www.linkedin.com/in/williamhgates"
  ],
  "scrapeExperience": true,
  "scrapeEducation": true,
  "scrapeSkills": true,
  "scrapeCertifications": true,
  "maxProfiles": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

The Actor opens public profile pages in an anonymous browser with a fixed locale, timezone, viewport, and user agent. It does not log in or navigate login-gated profile sections.

### Output

The dataset contains one row per processed public profile. Optional values are omitted when the public page does not expose them. `sectionAvailability` records whether each requested section succeeded, was unavailable, or was only partially exposed.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordId` | string | Always | Stable profile identity in `linkedin-profile:{slug}` form. |
| `recordType` | string enum | Always | Row discriminator; always `linkedin-profile`. |
| `dataAvailable` | boolean | Always | Whether usable public profile data is present. |
| `accessStatus` | string enum | Always | Public page access outcome: `public` or `authentication_required`. |
| `extractionMethod` | string enum | Always | Extraction path; `linkedin-public-dom-jsonld`. |
| `id` | string | When a legacy row provides it | Legacy profile identity. Not present in every saved row. |
| `name` | string | Always | Public profile name. |
| `headline` | string | When exposed | Public headline or job title. |
| `profileUrl` | string | Always | Canonical public LinkedIn `/in/` profile URL. |
| `location` | string | When exposed | Public location. |
| `about` | string | When exposed | Public About or summary text. |
| `connections` | string | When exposed | Public connection label. |
| `followers` | string or number | When exposed | Public follower count or display label. |
| `currentPosition` | string | When exposed | Public current position. |
| `currentCompany` | string | When exposed | Public current company. |
| `currentCompanyUrl` | string | When exposed | Public current-company URL. |
| `isOpenToWork` | boolean | When publicly observed | Open-to-work signal. It is never inferred from unrelated page text. |
| `profileImageUrl` | string | When exposed | Public profile image URL. |
| `experiences` | array | When the section is requested and public | Work-experience entries with fields such as `title`, `company`, `companyUrl`, `startDate`, and `endDate`. |
| `educations` | array | When the section is requested and public | Education entries with fields such as `school`, `schoolUrl`, `startDate`, and `endDate`. |
| `skills` | array | When the section is requested and public | Skills and endorsement labels. |
| `certifications` | array | When the section is requested and public | Licenses and certifications. |
| `languages` | array | When public | Language entries. |
| `volunteering` | array | When public | Volunteering entries. |
| `accomplishments` | object | When public | Accomplishment sections. |
| `recentArticles` | array | When public structured data exposes them | Article metadata such as title, URL, publication time, image, and likes. |
| `recentPosts` | array | When public structured data exposes them | Post metadata such as text, URL, publication time, and likes. |
| `publicMetadata` | object | Always | Public page metadata and structured-data counts, including page title, description, canonical URL, locale, article count, post count, and redacted-value count. |
| `publicStructuredData` | object | Always | Public Person JSON-LD with redacted values removed. |
| `sectionAvailability` | object | Always | Per-section status with `requested`, `status`, `itemCount`, `observedCount`, `sectionPresent`, `redactedValues`, and `reason`. |
| `experienceCount` | integer | When experience data is available | Number of normalized experiences. |
| `educationCount` | integer | When education data is available | Number of normalized educations. |
| `skillCount` | integer | When skills are available | Number of normalized skills. |
| `certificationCount` | integer | When certifications are available | Number of normalized certifications. |
| `articleCount` | integer | When page counts are reported | Number of public articles reported by the page metadata. |
| `postCount` | integer | When page counts are reported | Number of public posts reported by the page metadata. |
| `accessMessage` | string | When more sections require authentication | Public explanation of the access boundary. |
| `sourceUrl` | string | Always | Requested public profile URL. |
| `finalUrl` | string | Always | Final public profile URL. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |

The example below is a real saved row from the 2026-10-25 run. `recentArticles` and `recentPosts` are shortened samples of the public lists; the scalar fields and section statuses are complete.

```json
{
  "recordId": "linkedin-profile:williamhgates",
  "recordType": "linkedin-profile",
  "dataAvailable": true,
  "accessStatus": "public",
  "extractionMethod": "linkedin-public-dom-jsonld",
  "name": "Bill Gates",
  "headline": "Chair, Gates Foundation and Founder, Breakthrough Energy",
  "profileUrl": "https://www.linkedin.com/in/williamhgates",
  "location": "Seattle, Washington, United States",
  "about": "Chair of the Gates Foundation. Founder of Breakthrough Energy. Co-founder of Microsoft. Voracious reader. Avid traveler. Active blogger.",
  "connections": "8",
  "followers": 40752609,
  "currentPosition": "Co-chair",
  "currentCompany": "Gates Foundation",
  "currentCompanyUrl": "https://www.linkedin.com/company/gates-foundation",
  "profileImageUrl": "https://media.licdn.com/dms/image/v2/D5603AQF-RYZP55jmXA/profile-displayphoto-shrink_200_200/B56ZRi8g.aGsAY-/0/1736826818802?e=2147483647&v=beta&t=bKWfN6UwwtiCqFWsG7rBELbd48qJOAMLdxhBzzkJV0k",
  "experiences": [
    {
      "company": "Gates Foundation",
      "companyUrl": "https://www.linkedin.com/company/gates-foundation",
      "title": "Co-chair",
      "startDate": 2000
    },
    {
      "company": "Breakthrough Energy",
      "companyUrl": "https://www.linkedin.com/company/breakthrough-energy",
      "title": "Founder",
      "startDate": 2015
    },
    {
      "company": "Microsoft",
      "companyUrl": "https://www.linkedin.com/company/microsoft",
      "title": "Co-founder",
      "startDate": 1975
    }
  ],
  "educations": [
    {
      "school": "Harvard University",
      "schoolUrl": "https://www.linkedin.com/school/harvard-university/",
      "startDate": 1973,
      "endDate": 1975
    }
  ],
  "recentArticles": [
    {
      "title": "6 things you should know on World Polio Day",
      "url": "https://www.linkedin.com/pulse/6-things-you-should-know-world-polio-day-bill-gates-ycree",
      "publishedAt": "2026-10-24T15:54:10.000+00:00",
      "imageUrl": "https://media.licdn.com/dms/image/v2/D4E12AQGy6pQI3vMmVQ/article-cover_image-shrink_720_1280/B4EaFumG73HoAQ-/0/1792856849611?e=2147483647&v=beta&t=2QmmumsGYgIaGVcztnLlWnXPZtyFMqHl9yIm81SSYrg",
      "likes": 2211
    },
    {
      "title": "For an affordable climate win, look to the sky",
      "url": "https://www.linkedin.com/pulse/affordable-climate-win-look-sky-bill-gates-eoj7e",
      "publishedAt": "2026-10-12T20:10:59.000+00:00",
      "likes": 4057
    },
    {
      "title": "AI, equity, and the choice we can’t delay",
      "url": "https://www.linkedin.com/pulse/ai-equity-choice-we-cant-delay-bill-gates-d1gte",
      "publishedAt": "2026-09-17T15:18:20.000+00:00",
      "imageUrl": "https://media.licdn.com/dms/image/v2/D4E12AQFwjr3EOC2slQ/article-cover_image-shrink_720_1280/B4EaCvyLnRKAAQ-/0/1789655564567?e=2147483647&v=beta&t=LlizryNgZ1ezXY4ev0mnp5KI3svHbPVgHXT5gNgHwdM",
      "likes": 2999
    }
  ],
  "recentPosts": [
    {
      "text": "AI is the most profound technology I’ve seen, both in its ability to help people and to disrupt their lives. I’m optimistic about the good it can do, but we need to take its risks seriously. The level of action we are seeing doesn’t yet match what’s at stake.",
      "url": "https://www.linkedin.com/posts/williamhgates_bill-gates-says-to-prepare-for-20-years-of-activity-7519483868391956480-KCgz",
      "publishedAt": "2026-10-23T19:44:19.477Z",
      "likes": 1656
    },
    {
      "text": "In 1988, polio paralyzed 350,000 children a year and was endemic in 125 countries. Because of partnerships like the Global Polio Eradication Initiative (GPEI), we’re down to two polio endemic countries. But RAMESH FERRIS isnt satisfied—and he won’t stop fighting and advocating until he sees the end of polio in his lifetime.",
      "url": "https://www.linkedin.com/posts/williamhgates_in-1988-polio-paralyzed-350000-children-activity-7519169780654714880-taX5",
      "publishedAt": "2026-10-22T22:56:15.126Z",
      "likes": 1474
    },
    {
      "text": "Vaccines are among the best investments a country can make to save lives, protect communities, and boost its economy.​ \n\nIn 2025 alone, Gavi, the Vaccine Alliance worked with countries to immunize over 73 million children, preventing over 2.2 million deaths and generating $30 billion in economic benefits. This progress was supported by a record $301 million in domestic financing.​ \n\nThis is a precarious time in global health, so results like these are especially encouraging. We need to keep building on this progress to end vaccine-preventable deaths for good.",
      "url": "https://www.linkedin.com/posts/williamhgates_vaccines-deliver-over-us-30-billion-in-economic-activity-7518737092244414464-hfbz",
      "publishedAt": "2026-10-21T18:16:54.169Z",
      "likes": 1305
    }
  ],
  "publicMetadata": {
    "pageTitle": "Bill Gates - Chair, Gates Foundation and Founder, Breakthrough Energy | LinkedIn",
    "description": "Chair, Gates Foundation and Founder, Breakthrough Energy · Chair of the Gates Foundation. Founder of Breakthrough Energy. Co-founder of Microsoft. Voracious reader. Avid traveler. Active blogger. · Experience: Gates Foundation · Education: Harvard University · Location: Seattle · 8 connections on LinkedIn. View Bill Gates’ profile on LinkedIn, a professional community of 1 billion members.",
    "canonicalUrl": "https://www.linkedin.com/in/williamhgates",
    "ogType": "profile",
    "locale": "en_US",
    "articleCount": 10,
    "postCount": 7,
    "redactedValues": 0
  },
  "publicStructuredData": {
    "@context": "http://schema.org",
    "@type": "Person",
    "address": {
      "@type": "PostalAddress",
      "addressCountry": "US",
      "addressLocality": "Seattle, Washington, United States"
    },
    "alumniOf": [
      {
        "@type": "EducationalOrganization",
        "name": "Harvard University",
        "url": "https://www.linkedin.com/school/harvard-university/",
        "member": {
          "@type": "OrganizationRole",
          "startDate": 1973,
          "endDate": 1975
        }
      }
    ],
    "disambiguatingDescription": "Creator, Top Voice",
    "image": {
      "@type": "ImageObject",
      "contentUrl": "https://media.licdn.com/dms/image/v2/D5603AQF-RYZP55jmXA/profile-displayphoto-shrink_200_200/B56ZRi8g.aGsAY-/0/1736826818802?e=2147483647&v=beta&t=bKWfN6UwwtiCqFWsG7rBELbd48qJOAMLdxhBzzkJV0k"
    },
    "jobTitle": [
      "Co-chair",
      "Founder",
      "Co-founder"
    ],
    "name": "Bill Gates",
    "sameAs": "https://www.linkedin.com/in/williamhgates",
    "url": "https://www.linkedin.com/in/williamhgates",
    "worksFor": [
      {
        "@type": "Organization",
        "name": "Gates Foundation",
        "url": "https://www.linkedin.com/company/gates-foundation",
        "member": {
          "@type": "OrganizationRole",
          "startDate": 2000
        }
      },
      {
        "@type": "Organization",
        "name": "Breakthrough Energy",
        "url": "https://www.linkedin.com/company/breakthrough-energy",
        "member": {
          "@type": "OrganizationRole",
          "startDate": 2015
        }
      },
      {
        "@type": "Organization",
        "name": "Microsoft",
        "url": "https://www.linkedin.com/company/microsoft",
        "member": {
          "@type": "OrganizationRole",
          "startDate": 1975
        }
      }
    ],
    "interactionStatistic": {
      "@type": "InteractionCounter",
      "interactionType": "https://schema.org/FollowAction",
      "name": "Follows",
      "userInteractionCount": 40752609
    },
    "description": "Chair of the Gates Foundation. Founder of Breakthrough Energy. Co-founder of Microsoft. Voracious reader. Avid traveler. Active blogger."
  },
  "sectionAvailability": {
    "experience": {
      "requested": true,
      "status": "succeeded",
      "itemCount": 3,
      "observedCount": 3,
      "sectionPresent": true,
      "redactedValues": 0,
      "reason": "Non-redacted public entries were extracted."
    },
    "education": {
      "requested": true,
      "status": "succeeded",
      "itemCount": 1,
      "observedCount": 1,
      "sectionPresent": true,
      "redactedValues": 0,
      "reason": "Non-redacted public entries were extracted."
    },
    "skills": {
      "requested": true,
      "status": "unavailable",
      "itemCount": 0,
      "observedCount": 0,
      "sectionPresent": false,
      "redactedValues": 0,
      "reason": "The public page did not expose this section."
    },
    "certifications": {
      "requested": true,
      "status": "unavailable",
      "itemCount": 0,
      "observedCount": 0,
      "sectionPresent": false,
      "redactedValues": 0,
      "reason": "The public page did not expose this section."
    }
  },
  "experienceCount": 3,
  "educationCount": 1,
  "articleCount": 10,
  "postCount": 7,
  "sourceUrl": "https://www.linkedin.com/in/williamhgates",
  "finalUrl": "https://www.linkedin.com/in/williamhgates",
  "scrapedAt": "2026-10-25T20:51:18.733Z"
}
```

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT_SUMMARY`.

| Field | Meaning |
| --- | --- |
| `recordType` | Summary discriminator; `linkedin-profile-run-summary`. |
| `status` | Actor process outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of the dataset: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `optionalFailureCount` | Optional section failures that did not remove the saved profile row. |
| `requested` | Profile URLs supplied in the input. |
| `itemCount` | Profile rows saved to the dataset. |
| `recordsPushed` | Profile rows written by the output path. |
| `diagnosticCount` | Operational issues recorded for the run. |
| `partialRecordCount` | Saved profiles with at least one partially extracted requested section. |
| `succeededCount` | Profiles processed into usable rows. |
| `failedCount` | Profiles or requests that failed. |
| `datasetContainsDiagnostics` | Compatibility flag hardcoded to `true` in this summary; diagnostic records are not written to the dataset. |
| `sectionStatusCounts` | Per-section counts of `succeeded`, `unavailable`, and `partial` outcomes. |
| `dataAvailable` | Whether at least one usable profile row was saved. |
| `proxyConfigured` | Whether a proxy configuration was supplied. |
| `authenticated` | Always `false`; the run uses an anonymous public browser. |
| `fingerprintApplied` | Always `false`. |
| `generatedBy` | Tool metadata recorded for the run. |
| `sourceTransport` | `direct` or `apify_proxy`. |
| `completedAt` | Time the summary was written, in ISO UTC. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Profiles were saved without missing requested sections. |
| `SUCCEEDED` | `PARTIAL` | Profiles were saved, but at least one requested section was partial. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | Profiles completed cleanly and returned no usable public data. |
| `FAILED` | `FAILED` | A fatal error occurred before any usable profile was saved. |

Example `OUTPUT_SUMMARY` from the 2026-10-25 run:

```json
{
  "recordType": "linkedin-profile-run-summary",
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "COMPLETE",
  "optionalFailureCount": 0,
  "requested": 1,
  "itemCount": 1,
  "recordsPushed": 1,
  "diagnosticCount": 0,
  "partialRecordCount": 0,
  "succeededCount": 1,
  "failedCount": 0,
  "datasetContainsDiagnostics": true,
  "sectionStatusCounts": {
    "experience": {
      "succeeded": 1
    },
    "education": {
      "succeeded": 1
    },
    "skills": {
      "unavailable": 1
    },
    "certifications": {
      "unavailable": 1
    }
  },
  "dataAvailable": true,
  "proxyConfigured": false,
  "authenticated": false,
  "fingerprintApplied": false,
  "generatedBy": "OpenAI Codex with GPT-6",
  "sourceTransport": "direct",
  "completedAt": "2026-10-25T20:51:19.226Z"
}
```

### Coverage and limitations

The Actor accepts explicit public `/in/` profile URLs and processes up to `maxProfiles`. It does not search by name, accept company pages, or discover related profiles. Each saved row describes one public profile at collection time.

The four request toggles control experience, education, skills, and certifications. `sectionAvailability` records whether each requested section succeeded, was unavailable, or was partial, along with observed counts and any redacted values. Skills and certifications are frequently unavailable without login; their absence is reported, not inferred. Languages, volunteering, accomplishments, recent articles, and recent posts are included only when the public page or its structured data exposes them.

Experience, education, and other section lists can be truncated by the public page, lazy loading, or profile privacy settings. Article and post lists are selected public items, not a complete publishing history. Counts such as `articleCount`, `postCount`, `experienceCount`, and `skillCount` describe what the page exposed during the run, not guaranteed lifetime totals.

The Actor never signs in, uses caller cookies, solves CAPTCHAs, or visits login-gated sections. It does not collect email addresses, phone numbers, or other contact details. `accessStatus` records `authentication_required` when LinkedIn gates the page. Public profile data can change or disappear after the run.

### Usage and support

This is browser-based work, so runtime and platform compute depend on profile count, page loading, lazy sections, retries, and optional proxy routing. Start with one profile and all section toggles at their defaults; inspect `sectionAvailability` and the dataset before scaling. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/linkedin-profile-scraper/issues) to report a problem. Include the run ID, the input used, and `OUTPUT_SUMMARY`; do not include tokens, cookies, or private data. This Actor is not affiliated with LinkedIn. Use it only for public data and in accordance with LinkedIn's terms, robots guidance, and applicable law. Public profiles contain personal information; use the output only for lawful purposes.

# Changelog

This Actor's version history is a separate document: https://apify.com/w3crawler/linkedin-profile-scraper/changelog.md

# Actor input Schema

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

List of LinkedIn profile URLs to scrape (e.g. https://www.linkedin.com/in/williamhgates).

## `scrapeExperience` (type: `boolean`):

Scrape work experience section.

## `scrapeEducation` (type: `boolean`):

Scrape education history.

## `scrapeSkills` (type: `boolean`):

Scrape skills and endorsements.

## `scrapeCertifications` (type: `boolean`):

Scrape licenses and certifications.

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

Maximum number of profiles to scrape.

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

Optional proxy settings. Leave unset for a direct local run.

## Actor input object example

```json
{
  "profileUrls": [
    "https://www.linkedin.com/in/jeffweiner08"
  ],
  "scrapeExperience": true,
  "scrapeEducation": true,
  "scrapeSkills": true,
  "scrapeCertifications": true,
  "maxProfiles": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset containing public or cookie-authenticated profile records.

## `summary` (type: `string`):

No description

## `runSummary` (type: `string`):

Run status and counters stored by the Actor.

# 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"
    ],
    "maxProfiles": 10
};

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

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

```

## MCP server setup

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