# LinkedIn Open Profile Status Scraper (`khadinakbar/linkedin-open-profile-status-scraper`) Actor

Check which LinkedIn members accept free InMail from non-connections (Open Profile) and who publicly shows the #OpenToWork badge. Pass profile URLs or vanity names; get honest true/false/null verdicts per member with confidence and reason. Charged per profile checked plus platform usage.

- **URL**: https://apify.com/khadinakbar/linkedin-open-profile-status-scraper.md
- **Developed by:** [Khadin Akbar](https://apify.com/khadinakbar) (community)
- **Categories:** Social media, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 26 total users, 5 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 1.00 out of 5 stars

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 Open Profile Status Scraper?

LinkedIn Open Profile Status Scraper checks a list of LinkedIn person profiles and returns one dataset row per member with two separate signals: `openProfile` (the member accepts free InMail from people outside their network) and `openToWork` (the member publicly shows the #OpenToWork badge). Each signal comes with a `true`, `false` or `null` verdict plus a confidence level and a plain-language reason. Sales teams, recruiters, lead-enrichment pipelines and AI agents use it to decide who they can message directly before they spend InMail credits or connection requests.

### Why two signals instead of one

Many tools treat the #OpenToWork badge as "Open Profile". They are different settings that answer different questions:

| Field | Question it answers | Typical use |
|---|---|---|
| `openProfile` | Can a non-connection send this member a free InMail? | Outbound sales and recruiter outreach |
| `openToWork` | Does the member publicly show the #OpenToWork badge? | Candidate sourcing and job-seeker signals |

Every verdict ships with `...Confidence` (`high`, `medium`, `low`, `unknown`) and `...Reason`, so your filters can weigh a confident `false` differently from an honest `null`.

### Best fit for this Actor

- **Designed for** bounded lists of LinkedIn person profiles you already have: a prospect list, a candidate shortlist or a CRM export.
- **Best fit for** a contactability column before outreach: keep `openProfile: true` rows for a direct-message sequence, route the rest to connection requests.
- Works with full profile URLs and bare vanity names in the same list.
- When you still need the profile list itself, start with [LinkedIn People Search Scraper](https://apify.com/khadinakbar/linkedin-people-search-scraper), then pass the profile URLs into `profiles` here.
- When you want an email address for members who stay closed to free InMail, continue with [LinkedIn Email Finder](https://apify.com/khadinakbar/linkedin-email-finder) for that subset.

### Example workflow: from a lead list to a prioritized outreach list

A sales development rep starts with 80 decision-makers exported from a CRM. She pastes the profile URLs into `profiles`, keeps `includeProfileBasics` on so each row carries the name and headline, and sets `maxProfiles` to 80 to cap spend. The dataset returns one row per person. She filters `openProfile = true` with `high` confidence into a free-InMail sequence, sends the `false` rows to a connection-request cadence, and keeps `openToWork = true` rows aside for the recruiting team. She then schedules the same list monthly to compare how settings change over time and exports each result to CSV for the CRM.

### Input

```json
{
  "profiles": [
    "https://www.linkedin.com/in/reidhoffman",
    "satyanadella",
    "https://linkedin.com/in/adamgrant/"
  ],
  "maxProfiles": 100,
  "includeProfileBasics": true,
  "includeRawData": false
}
```

| Field | Type | What it controls |
|---|---|---|
| `profiles` | array of strings | Required. Full LinkedIn person profile URLs or vanity names such as `satyanadella`. |
| `maxProfiles` | integer | Cap on profiles checked in this run, 1 to 1000. Default 100. |
| `liAtCookie` | string (secret) | Optional `li_at` value from your own LinkedIn session for an authenticated Open Profile check. Paste the value only. |
| `includeProfileBasics` | boolean | Attach public `name` and `headline`. Default `true`, with no extra charge. |
| `includeRawData` | boolean | Attach a compact `rawData` payload for custom parsing. Default `false`. |

### Output

One dataset row per profile you submit.

| Field | What it contains |
|---|---|
| `inputUrl`, `profileUrl`, `vanityName` | The value you sent and the normalized profile URL and vanity name |
| `name`, `headline` | Public name and headline text (with `includeProfileBasics`) |
| `openProfile` | `true`, `false` or `null` for the free-InMail (Open Profile) setting |
| `openProfileConfidence`, `openProfileReason` | How sure the verdict is and how it was reached |
| `openToWork` | `true`, `false` or `null` for the public #OpenToWork badge |
| `openToWorkConfidence`, `openToWorkReason` | How sure the verdict is and how it was reached |
| `source`, `scrapeMethod` | Which collection path produced the row, for provenance |
| `scrapedAt` | Collection time in ISO 8601 |

```json
{
  "inputUrl": "https://www.linkedin.com/in/reidhoffman",
  "profileUrl": "https://www.linkedin.com/in/reidhoffman",
  "vanityName": "reidhoffman",
  "name": "Reid Hoffman - Co-Founder, LinkedIn, Manas AI & Inflection AI.",
  "headline": "Co-Founder, LinkedIn, Manas AI & Inflection AI. Founding Team, PayPal. Author of Superagency.",
  "openProfile": false,
  "openProfileConfidence": "high",
  "openProfileReason": "Authenticated profile view with no Open Profile signal detected.",
  "openToWork": false,
  "openToWorkConfidence": "medium",
  "openToWorkReason": "No public #OpenToWork badge signal found in a rendered profile view.",
  "source": "owned",
  "scrapeMethod": "owned-render",
  "scrapedAt": "2026-10-01T19:53:32.682Z"
}
```

Reading the three states: `true` and `false` are definitive answers. `null` means the signal stayed unknown for that profile, and the matching `...Reason` field says why. Each run also writes `OUTPUT` and `RUN_SUMMARY` records to the default key-value store with the run outcome and per-source counts.

### Pricing

This Actor uses Pay per event plus Apify platform usage. The events are:

- **Actor Start**, charged once when the run starts.
- **Profile checked**, charged for each profile row where `openProfile` or `openToWork` resolves to `true` or `false`. Rows where both stay `null` remain in the dataset for transparency and are not billed.

Worked example: a list of 50 profiles where 46 resolve at least one signal costs one Actor Start event plus 46 Profile checked events, plus the compute used by the run. Set `maxProfiles` to cap the batch, and check the live Pricing tab on this page for current event prices.

### API example

```bash
curl -X POST "https://api.apify.com/v2/acts/khadinakbar~linkedin-open-profile-status-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"profiles": ["https://www.linkedin.com/in/reidhoffman", "satyanadella"], "maxProfiles": 10}'
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("khadinakbar/linkedin-open-profile-status-scraper").call(
    run_input={"profiles": ["https://www.linkedin.com/in/reidhoffman", "satyanadella"], "maxProfiles": 10}
)
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    if row.get("openProfile") is True:
        print(row["profileUrl"], row["openProfileConfidence"])
```

### Use it with AI agents (MCP)

Connect the Actor to Claude, ChatGPT, Cursor or another MCP client through [Apify MCP](https://mcp.apify.com), then ask:

> Check these 20 LinkedIn profiles for Open Profile and #OpenToWork status. Return a table of profile URL, openProfile, openToWork and both confidence levels, and list the members I can InMail for free.

What the agent gets back: one row per profile with both verdicts, confidence and reason, read from the run's dataset with `get-dataset-items`. The agent can quote `profileUrl` and `scrapedAt` as provenance and read `OUTPUT` for the run outcome. Cost scales with resolved profiles, so a scoped `maxProfiles` keeps agent-driven spend predictable.

### Best results

| Starting situation | Helpful action | Expected outcome |
|---|---|---|
| A CRM export of profile URLs | Paste URLs directly; trailing slashes and `linkedin.com` without `www` are fine | Clean, normalized `profileUrl` per row |
| You want a definitive Open Profile answer on more rows | Add your own `li_at` value in `liAtCookie` | More `openProfile` rows resolve with an authenticated view |
| A large list | Split into batches of a few hundred and schedule them | Predictable runs and spend |
| A downstream outreach filter | Filter on verdict and confidence together, such as `openProfile = true` with `high` confidence | Higher-quality direct-message lists |
| Leaner rows for a database | Set `includeProfileBasics` to `false` | Status-only records |

### Builder's note

I built this after noticing how often the #OpenToWork badge gets sold as "Open Profile", even though one is about job seeking and the other is about who may message you. I designed every row to carry both signals side by side, each with its own confidence and reason, so a downstream filter or an AI agent can decide how much weight to give a verdict. Billing follows resolved verdicts, which keeps an unknown row informative without making it a charge.

### FAQ

#### Do I need a LinkedIn account?

No. Without an account the Actor reads public profile data, which reliably answers `openToWork`. LinkedIn shows the Open Profile (free InMail) setting only to signed-in viewers, so without your own `li_at` value `openProfile` usually stays `null` (unknown). Rows where both signals stay unknown are not charged. Add your own `li_at` value in `liAtCookie` to get `openProfile` verdicts from an authenticated view.

#### Can I check company pages?

This Actor is designed for person profiles. For organizations, use [LinkedIn Company Profile Scraper](https://apify.com/khadinakbar/linkedin-company-profile-scraper) instead.

#### What does `null` mean?

The signal stayed unknown for that profile. The `...Reason` field explains how the check ended, and the row is kept in the dataset free of charge.

### Responsible use

This Actor reads publicly visible LinkedIn profile signals for profiles you supply. Profile data is personal data under laws such as the GDPR and CCPA, so collect and use it with a lawful basis, honor opt-outs, and respect LinkedIn's terms. LinkedIn is a trademark of its owner, and this independent Actor is not affiliated with or endorsed by LinkedIn. For questions, open a ticket in the Issues tab.

# Changelog

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

# Actor input Schema

## `profiles` (type: `array`):

One or more public LinkedIn person profiles to check. Each item is either a full profile URL (e.g. https://www.linkedin.com/in/elonmusk) or just the vanity name (e.g. elonmusk). Not a company page - for companies use the linkedin-company-profile-scraper actor.

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

Maximum number of profiles to check in this run. Determined true/false Open Profile or Open To Work records are billed up to this cap (1 to 1000; default 100). Extra input values beyond this cap are ignored. Unknown-only rows are saved unbilled.

## `liAtCookie` (type: `string`):

Your own LinkedIn session cookie li_at value, used to detect the true Open Profile (free InMail) signal in an authenticated view. Without it openProfile stays null (unknown) and only the public #OpenToWork badge plus public signals are returned. Paste the value only, not the full Cookie header. Stored as a secret. Optional: leave empty for cookie-less public checks.

## `includeProfileBasics` (type: `boolean`):

Attach the member's public name and headline to each record. Defaults to true; set false for a leaner status-only record. Does not add a separate charge.

## `includeRawData` (type: `boolean`):

Add the compact raw source payload under rawData for debugging or custom parsing. Defaults to false. Increases record size noticeably; leave off for normal use.

## Actor input object example

```json
{
  "profiles": [
    "https://www.linkedin.com/in/reidhoffman"
  ],
  "maxProfiles": 100,
  "includeProfileBasics": true,
  "includeRawData": false
}
```

# Actor output Schema

## `profiles` (type: `string`):

Structured dataset records for the checked LinkedIn profiles.

## `profilesCsv` (type: `string`):

CSV export of the same LinkedIn open profile status records.

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

Machine-readable telemetry with profiles processed, sources used, provider status codes, and stop reason.

## `outputSummary` (type: `string`):

Compact agent-friendly summary with profiles checked, openProfile and openToWork counts, sources used, and stop reason.

# 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 = {
    "profiles": [
        "https://www.linkedin.com/in/reidhoffman"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("khadinakbar/linkedin-open-profile-status-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 = { "profiles": ["https://www.linkedin.com/in/reidhoffman"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,khadinakbar/linkedin-open-profile-status-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/4fyBh2lzIM7SeEmp8/builds/IcAa0CviDJJk9mrDo/openapi.json
