# LinkedIn Post Scraper (`fatihai-tools/linkedin-post-scraper`) Actor

Scrape LinkedIn posts with engagement metrics, comments, shares, and author data. Analyze content performance, track thought leadership, and monitor industry discussions on LinkedIn.

- **URL**: https://apify.com/fatihai-tools/linkedin-post-scraper.md
- **Developed by:** [fatih dağüstü](https://apify.com/fatihai-tools) (community)
- **Categories:** Social media
- **Stats:** 5 total users, 3 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## 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/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## LinkedIn Post Scraper - Extract Posts & Engagement Data

Scrape LinkedIn posts, articles, and engagement metrics by keyword, hashtag, or direct URL. Get author details, full post text, likes, comments, reposts, and posting date. **No login required. $2 per 1,000 posts.**

### Why Choose This LinkedIn Post Scraper?

- **No Login Required** -- Accesses public LinkedIn content without any account, cookies, or API key.
- **Full Engagement Data** -- Likes, comments, reposts/shares count for every post. Identify viral content instantly.
- **Author Information** -- Author name, headline, and profile URL included. Find industry influencers and thought leaders.
- **Keyword & Hashtag Search** -- Search any topic, industry term, or hashtag. Monitor conversations in your niche.
- **Direct URL Scraping** -- Paste specific LinkedIn post URLs to extract their data and metrics.
- **Flexible Sorting** -- Sort by relevance or recency. Filter by date (24h, week, month).
- **Pay Per Result** -- $2 per 1,000 posts. No subscription, no credit packs, no minimum.
- **Export Ready** -- JSON, CSV, Excel. Integrate with Zapier, Make, Google Sheets, or your analytics pipeline.

### What Data Do You Get?

| Field | Description | Example |
|-------|-------------|---------|
| `authorName` | Post author's full name | Satya Nadella |
| `authorHeadline` | Author's LinkedIn headline | Chairman and CEO at Microsoft |
| `authorProfileUrl` | Link to author's profile | https://linkedin.com/in/satyanadella |
| `text` | Full post text content | Excited to announce that Microsoft... |
| `postedAt` | When the post was published | 2026-03-01T10:30:00.000Z |
| `likes` | Number of reactions/likes | 15,432 |
| `comments` | Number of comments | 892 |
| `reposts` | Number of reposts/shares | 2,156 |
| `postUrl` | Direct link to the post | https://linkedin.com/posts/... |

### Use Cases

- **Content Research & Strategy** -- Discover what topics, formats, and hooks drive the most engagement in your industry. Reverse-engineer viral LinkedIn posts.
- **Competitor Monitoring** -- Track what your competitors are posting. Analyze their content strategy, posting frequency, and audience engagement.
- **Influencer Discovery** -- Find top voices and thought leaders by engagement metrics. Build lists of industry influencers for partnerships.
- **Social Selling & Lead Generation** -- Find engaged professionals discussing topics related to your product. People who comment on relevant posts are warm leads.
- **Market & Trend Analysis** -- Monitor industry conversations in real time. Detect emerging trends before they go mainstream.
- **PR & Media Monitoring** -- Track mentions of your brand, competitors, or industry keywords across LinkedIn.
- **Academic & Sentiment Research** -- Study professional discourse, opinion trends, and sentiment on industry topics at scale.
- **Recruitment Marketing** -- Analyze employer branding content. See which company culture posts attract the most engagement.

### Input Examples

**Search by keywords:**

```json
{
    "searchKeywords": ["artificial intelligence", "startup funding"],
    "maxResults": 100,
    "sortBy": "relevance",
    "datePosted": "past-week"
}
````

**Scrape specific post URLs:**

```json
{
    "postUrls": [
        "https://www.linkedin.com/posts/satyanadella-example-post-id",
        "https://www.linkedin.com/posts/elonmusk-example-post-id"
    ]
}
```

### Output Example

```json
{
    "authorName": "Satya Nadella",
    "authorHeadline": "Chairman and CEO at Microsoft",
    "authorProfileUrl": "https://www.linkedin.com/in/satyanadella",
    "text": "Excited to announce that Microsoft has reached a new milestone in AI accessibility. Our latest tools are now available to developers worldwide, making it easier than ever to build intelligent applications...",
    "postedAt": "2026-03-01T10:30:00.000Z",
    "likes": 15432,
    "comments": 892,
    "reposts": 2156,
    "postUrl": "https://www.linkedin.com/posts/satyanadella-example-post-id"
}
```

### Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `searchKeywords` | array | - | Keywords or hashtags to search for |
| `postUrls` | array | - | Direct LinkedIn post URLs to scrape |
| `maxResults` | integer | 50 | Maximum posts to extract per keyword |
| `sortBy` | string | "relevance" | Sort by "relevance" or "date" |
| `datePosted` | string | - | Filter: "past-24h", "past-week", "past-month" |
| `proxy` | object | auto | Proxy configuration |

### Pricing

**$2 per 1,000 posts** -- includes full text and engagement metrics.

| Volume | Cost | Per Post |
|--------|------|----------|
| 100 posts | $0.20 | $0.002 |
| 1,000 posts | $2.00 | $0.002 |
| 10,000 posts | $20.00 | $0.002 |
| 100,000 posts | $200.00 | $0.002 |

No monthly subscription. No minimum commitment. Free tier available on Apify's free plan.

### Alternatives Comparison

| Feature | This Actor | PhantomBuster | Taplio | Manual Search |
|---------|-----------|---------------|--------|---------------|
| No login required | **Yes** | No | No | No |
| Post text extraction | Yes | Yes | Yes | Yes |
| Engagement metrics | Yes | Limited | Yes | Yes |
| Author info | Yes | Yes | Yes | Yes |
| Keyword search | Yes | No | Yes | Yes |
| Date filtering | Yes | No | Yes | Yes |
| Bulk export (JSON/CSV) | Yes | CSV | No | No |
| Price per 1K posts | **$2** | $69/mo plan | $49/mo plan | Free (manual) |
| API & webhooks | Yes (Apify) | Yes | No | No |
| Scheduling | Yes | Yes | No | No |

### FAQ

**Does it need a LinkedIn login?**
No. This scraper accesses public LinkedIn content without any account, cookies, or authentication. Zero risk to your LinkedIn account.

**Can I search by hashtag?**
Yes. Include hashtags like "#AI", "#SaaS", or "#Marketing" in the `searchKeywords` array.

**Can I filter posts by date?**
Yes. Use `datePosted` with values "past-24h", "past-week", or "past-month" to get recent content only.

**Does it scrape LinkedIn articles (Pulse)?**
Yes. Both regular posts and long-form LinkedIn articles are supported.

**How many posts can I scrape per run?**
There is no hard limit. Use multiple keywords for broader coverage. LinkedIn typically returns up to 100 results per keyword search.

**Can I get posts from a specific author or company?**
Use the author's name or company name as a search keyword. For guaranteed results from specific profiles, use direct post URLs.

**Is the data real-time?**
Every run scrapes live data from LinkedIn. Engagement metrics (likes, comments, reposts) are accurate as of the moment of scraping.

**Can I set up monitoring for a keyword?**
Yes. Schedule the actor to run daily or weekly on Apify. Each run will capture the latest posts for your keywords, giving you ongoing monitoring.

### Related Actors

Build a complete LinkedIn data pipeline with our other scrapers:

- [LinkedIn Jobs Scraper](https://apify.com/intelligent_yaffle/linkedin-jobs-scraper) -- Scrape LinkedIn job listings without login. $2/1K jobs.
- [Contact & Email Finder](https://apify.com/intelligent_yaffle/contact-email-finder) -- Extract emails and phone numbers from any website. $3/1K domains.
- [Google Maps Email Extractor](https://apify.com/intelligent_yaffle/google-maps-email-extractor) -- Extract business contacts from Google Maps searches. $5/1K businesses.

# Actor input Schema

## `searchKeywords` (type: `array`):

Keywords to search for LinkedIn posts (e.g. 'artificial intelligence', 'startup hiring')

## `postUrls` (type: `array`):

Direct LinkedIn post/article URLs to scrape

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

Maximum number of posts to extract per keyword

## `sortBy` (type: `string`):

Sort order for search results

## `datePosted` (type: `string`):

Filter by post date

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

Proxy settings

## Actor input object example

```json
{
  "searchKeywords": [
    "artificial intelligence"
  ],
  "maxResults": 50,
  "sortBy": "relevance",
  "datePosted": "any"
}
```

# 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 = {
    "searchKeywords": [
        "artificial intelligence"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fatihai-tools/linkedin-post-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 = { "searchKeywords": ["artificial intelligence"] }

# Run the Actor and wait for it to finish
run = client.actor("fatihai-tools/linkedin-post-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchKeywords": [
    "artificial intelligence"
  ]
}' |
apify call fatihai-tools/linkedin-post-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=fatihai-tools/linkedin-post-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "LinkedIn Post Scraper",
        "description": "Scrape LinkedIn posts with engagement metrics, comments, shares, and author data. Analyze content performance, track thought leadership, and monitor industry discussions on LinkedIn.",
        "version": "1.0",
        "x-build-id": "oJc2DXj3jRbarRE1t"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/fatihai-tools~linkedin-post-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-fatihai-tools-linkedin-post-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/fatihai-tools~linkedin-post-scraper/runs": {
            "post": {
                "operationId": "runs-sync-fatihai-tools-linkedin-post-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/fatihai-tools~linkedin-post-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-fatihai-tools-linkedin-post-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchKeywords": {
                        "title": "Search Keywords",
                        "type": "array",
                        "description": "Keywords to search for LinkedIn posts (e.g. 'artificial intelligence', 'startup hiring')",
                        "items": {
                            "type": "string"
                        }
                    },
                    "postUrls": {
                        "title": "Post URLs",
                        "type": "array",
                        "description": "Direct LinkedIn post/article URLs to scrape",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Maximum number of posts to extract per keyword",
                        "default": 50
                    },
                    "sortBy": {
                        "title": "Sort By",
                        "enum": [
                            "relevance",
                            "date_posted"
                        ],
                        "type": "string",
                        "description": "Sort order for search results",
                        "default": "relevance"
                    },
                    "datePosted": {
                        "title": "Date Posted",
                        "enum": [
                            "any",
                            "past-24h",
                            "past-week",
                            "past-month"
                        ],
                        "type": "string",
                        "description": "Filter by post date",
                        "default": "any"
                    },
                    "proxy": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
