# Linkedin Conversation Scraper (`data_link_miner/linkedin-conversation-scraper`) Actor

Extract and manage LinkedIn inbox chat / message / messaging conversations at scale. Allows you to analyze LinkedIn chat history from your inbox. Supports inbox filtering. Data about conversations, participants, messages. Perfect for CRM sync, sales workflow, recruiting pipelines, and analytic

- **URL**: https://apify.com/data_link_miner/linkedin-conversation-scraper.md
- **Developed by:** [Data LinkMiner](https://apify.com/data_link_miner) (community)
- **Categories:** Automation, Lead generation, Social media
- **Security:** Limited permissions
- **Stats:** 39 total users, 3 monthly users, 41.0% runs succeeded, 4 bookmarks
- **User rating**: 3.00 out of 5 stars

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Conversation Scraper

Extract and manage LinkedIn inbox chat / message / messaging conversations at scale.

The LinkedIn Conversation Scraper allows you to analyze, manage, and extract LinkedIn chat history from your inbox.

It supports inbox filtering and provides structured data about conversations, participants, messages, and activity timelines.

Perfect for CRM sync, sales workflows, recruiting pipelines, and analytics.

### How to provide cookie session ?

- install "Copy Cookies" chrome extension
- login to your account and go to your linkedin home page
- Use the extension (clicking will copy cookies)
- Paste the cookies in the input "cookies" from the actor

### Included features

📥 Extract conversations from LinkedIn inbox

🗂️ Select inbox type (Primary, Archived, etc.)

🔍 Filter conversations by status or unread messages

👥 Extract participant profiles (name, headline, distance, profile URL, avatar)

🕒 Get conversation metadata

- Creation date

- Last activity date

- Last read timestamp

✉️ Extract messages content

- Message text

- Sender (who sent the message)

- Message timestamp

📊 Identify:

- Last message sender

- Last message content

- Total messages count

- Unread count

👥 Detect 1-to-1 vs group conversations

📦 Clean and structured JSON output

🤖 Built for automation and integrations

### Use Cases

🤝 CRM synchronization (HubSpot, Salesforce, Pipedrive)

📈 Sales pipeline monitoring

🧲 Lead qualification & follow-up automation

🧑‍💼 Recruitment and candidate tracking

📊 Conversation activity analytics

🕵️ Spam & outreach detection

🗂️ Inbox auditing and archiving

🤖 AI-powered conversation analysis

### OUTPUT

```json
{
  "participants": [
    {
      "url": "https://www.linkedin.com/in/ACoAAADXSB8B07lQotS-UN6oykRY6i3UKpbAHio",
      "distance": "DISTANCE_3",
      "pronoun": null,
      "picture": "https://media.licdn.com/dms/image/v2/D4E03AQF0XJNUnYkuEA/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1719085317252?e=1761782400&v=beta&t=uk0g9Kx_olOnfRj7Oci97OSPNi45cvFRe48bDRATkII",
      "firstname": "Matt",
      "lastname": "Schenck",
      "headline": "EVP, Admissions",
      "entityUrn": "ACoAAADXSB8B07lQotS-UN6oykRY6i3UKpbAHio"
    },
    {
      "url": "https://www.linkedin.com/in/ACoAABi6e98BnhfuzL7uraGA7pwpJqUTn4jopfg",
      "distance": "SELF",
      "pronoun": null,
      "picture": "https://media.licdn.com/dms/image/v2/D4E03AQGHYv61mAZX1w/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1723101833828?e=1761782400&v=beta&t=RKREVA6BBXC6GQBkEcIusUw1zMySDJtUvrrq-9jnH7M",
      "firstname": "Thomas",
      "lastname": "Lopes",
      "headline": "Building tools for RevOps and GTM Engineers @saswave",
      "entityUrn": "ACoAABi6e98BnhfuzL7uraGA7pwpJqUTn4jopfg"
    }
  ],
  "status": "ACTIVE",
  "unread_count": 0,
  "last_read_at": "2025-09-27 13:02:56",
  "last_activity_at": "2025-09-26 17:17:45",
  "is_group_chat": false,
  "creator": "ACoAAADXSB8B07lQotS-UN6oykRY6i3UKpbAHio",
  "created_at": "2025-09-26 17:17:45",
  "messages": [
    {
      "content": "Hi Thomas,\nYour impressive background and career path caught our attention. I lead MBA and Executive MBA Admissions at Quantic — a modern online business school challenging top traditional MBAs.\nBased on your profile, I’d like to invite you to apply with our France Leadership Scholarship. This partial tuition award blends our mission of access in education with a commitment to empower leaders from specific talent-rich countries in our selective US-accredited MBA programs.\nhttps://quantic.edu/invite/leaders-in-france\nIf admitted, you would join over 15,000 global alumni in our flexible, 15-month degree, delivering top MBA career outcomes without the usual high cost.\nNext step? Just sign up to review scholarship details, sample courses, preview our alumni network, and start the free application before the upcoming deadline.\nBest regards,Matt SchenckEVP, AdmissionsQuantic School of Business and Technology",
      "date": "2025-09-26 17:17:45",
      "who": "her/him"
    }
  ],
  "total_messages": 1,
  "last_message_date": "2025-09-26 17:17:45",
  "last_message_content": "Hi Thomas,\nYour impressive background and career path caught our attention. I lead MBA and Executive MBA Admissions at Quantic — a modern online business school challenging top traditional MBAs.\nBased on your profile, I’d like to invite you to apply with our France Leadership Scholarship. This partial tuition award blends our mission of access in education with a commitment to empower leaders from specific talent-rich countries in our selective US-accredited MBA programs.\nhttps://quantic.edu/invite/leaders-in-france\nIf admitted, you would join over 15,000 global alumni in our flexible, 15-month degree, delivering top MBA career outcomes without the usual high cost.\nNext step? Just sign up to review scholarship details, sample courses, preview our alumni network, and start the free application before the upcoming deadline.\nBest regards,Matt SchenckEVP, AdmissionsQuantic School of Business and Technology",
  "last_message_who": "her/him",
  "days_from_today": 0
}
```

### SUPPORT

Create an issue and share the failed run.

We will help resolve the problem.

We also stay available for questions

# Actor input Schema

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

Provide your own exported cookie session

## `list_type` (type: `string`):

Choose inbox to extract conversations from

## `filter` (type: `string`):

Choose inbox filter to apply before extracting conversations from

## `max_convs` (type: `integer`):

0 = no limit

## `max_messages_per_conv` (type: `integer`):

0 = no limit

## `today_limit` (type: `boolean`):

If selected, We only get new messages from today (takes priority on date_limit if both provided)

## `date_limit` (type: `string`):

Select absolute date in format YYYY-MM-DD,  extract all messages from this date to today

## Actor input object example

```json
{
  "list_type": "PRIMARY_INBOX",
  "filter": "",
  "max_convs": 5,
  "max_messages_per_conv": 5,
  "today_limit": false
}
```

# Actor output Schema

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

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("data_link_miner/linkedin-conversation-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("data_link_miner/linkedin-conversation-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 '{}' |
apify call data_link_miner/linkedin-conversation-scraper --silent --output-dataset

```

## MCP server setup

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