# LinkedIn Post Scraper (No Cookies or Login Required) (`curly/linkedin-post-scraper`) Actor

Scrape public LinkedIn posts and first available comments from person or company post URLs. Get text, author, dates, media, engagement, and comment details. No cookies, login, or proxy setup required. ($0.50 USD per 1,000 results)

- **URL**: https://apify.com/curly/linkedin-post-scraper.md
- **Developed by:** [Curly](https://apify.com/curly) (community)
- **Categories:** Automation, Lead generation, Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.50 / 1,000 post 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 (No Cookies or Login Required)

Scrape public LinkedIn posts and their first publicly available comments. Paste post URLs from people or companies and get structured post text, author details, dates, media, engagement, and comments.

No LinkedIn cookies, account, login, or proxy setup is required. Proxies and retry handling are included.

### Quick start

1. Paste one public LinkedIn post URL per line.
2. Click **Start**.
3. Download the results as JSON, CSV, Excel, XML, or another supported dataset format.

That is the entire setup. The Actor has no other input fields.

#### Input

```json
{
  "postUrls": [
    "https://www.linkedin.com/posts/leeyuehang_fable-5-just-destroyed-prospecting-work-activity-7472483108613681152-4R-c",
    "https://www.linkedin.com/posts/openai_a-note-to-it-admins-activity-7487581078262681600-vAk2"
  ]
}
```

Accepted values:

- Public `linkedin.com/posts/...` URLs authored by people
- Public `linkedin.com/posts/...` URLs authored by companies
- Localized LinkedIn post URLs such as `de.linkedin.com/posts/...`

You can enter up to 100 post URLs per run. Tracking parameters are removed and duplicate activity IDs are processed once.

LinkedIn `/feed/update/` URLs, profile pages, company pages, search pages, and non-LinkedIn URLs are rejected because they are not the same public post-detail surface.

### What you get

One input post URL returns one dataset item. Each item can include:

- Post ID, URNs, canonical URL, headline, text, and exact publication time
- Author type, name, profile or company URL, image, and follower count when public
- Content type, media, linked article, hashtags, mentions, and external URLs
- Reaction, comment, and repost counts when public
- The first comments LinkedIn exposes without login
- Comment IDs, URNs, authors, profile images, text, exact dates, relative times, and reaction counts
- `comments_returned` and `comments_truncated`, so you can distinguish the returned public batch from the total comment count

Example result:

```json
{
  "post_id": "7487581078262681600",
  "post_urn": "urn:li:activity:7487581078262681600",
  "attributed_urn": "urn:li:ugcPost:7487581077159677953",
  "post_url": "https://www.linkedin.com/posts/openai_a-note-to-it-admins-activity-7487581078262681600-vAk2",
  "author": {
    "type": "company",
    "name": "OpenAI",
    "url": "https://www.linkedin.com/company/openai",
    "image_url": "https://media.licdn.com/example-company-logo.png",
    "follower_count": 11360000
  },
  "headline": "IT admins have made every era of computing work.",
  "text": "IT admins have made every era of computing work...",
  "published_at": "2026-07-27T18:54:01.561Z",
  "content_type": "document",
  "is_repost": false,
  "original_author": null,
  "media": [
    {
      "type": "document",
      "url": "https://media.licdn.com/example-document-manifest.json",
      "thumbnail_url": "https://media.licdn.com/example-cover.png",
      "title": "A note to IT admins",
      "alt_text": "Accessible document"
    }
  ],
  "article": null,
  "hashtags": [],
  "mentions": [],
  "external_urls": [],
  "reaction_count": 280,
  "comment_count": 55,
  "repost_count": null,
  "comments_returned": 10,
  "comments_truncated": true,
  "comments": [
    {
      "comment_id": "7487618419475759104",
      "comment_urn": "urn:li:comment:(urn:li:ugcPost:7487581077159677953,7487618419475759104)",
      "author": {
        "type": "person",
        "name": "Example Commenter",
        "url": "https://www.linkedin.com/in/example-commenter",
        "image_url": "https://media.licdn.com/example-profile-image.png"
      },
      "text": "Example public comment.",
      "published_at": "2026-07-27T21:22:24.427Z",
      "relative_time": "2h",
      "reaction_count": 7
    }
  ],
  "scraped_at": "2026-07-28T12:00:00.000Z",
  "source": "linkedin_post"
}
```

Fields that LinkedIn does not expose publicly are returned as `null` or an empty array instead of being guessed.

### Price

The price is **$0.0005 per stored post** — **$0.50 per 1,000 results**.

Comments are nested inside the post result and do not create extra charges. Failed and duplicate URLs are not charged.

### Run with the LinkedIn post API

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/curly~linkedin-post-scraper/run-sync-get-dataset-items?format=json" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"postUrls":["https://www.linkedin.com/posts/openai_a-note-to-it-admins-activity-7487581078262681600-vAk2"]}'
```

The same input works with the Apify API client, schedules, webhooks, n8n, Make, Zapier, and other integrations.

### Limits and responsible use

- The Actor returns the first comments visible on LinkedIn's public no-login post page, not every comment on the post.
- `comments_truncated` is `true` when the total public comment count is greater than the returned comment batch.
- Deleted, private, login-only, or geographically unavailable posts cannot be returned.
- Public counts and follower totals can change between runs.
- Use the Actor only for lawful purposes and comply with applicable privacy, data protection, and platform rules.

### FAQ

#### Do I need LinkedIn cookies or an account?

No. The Actor accesses public post pages without your LinkedIn credentials.

#### Do I need to configure a proxy?

No. Proxy access is included and configured automatically.

#### Can I mix company and personal posts?

Yes. Put both types of public `/posts/` URLs in the same input list.

#### Does it return all comments?

No. It returns the first comment batch LinkedIn makes public without login. Use `comment_count`, `comments_returned`, and `comments_truncated` to see the difference.

#### What counts as one paid result?

One successfully stored post is one result. Its nested comments are included in that result at no additional per-comment charge.

#### Is this a LinkedIn post API?

Yes. You can run the Actor through Apify's REST API or official clients and receive structured JSON for each public post URL.

# Actor input Schema

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

Paste one public LinkedIn /posts/ URL per line. Company and personal posts are supported. Duplicate posts are processed once.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.linkedin.com/posts/openai_a-note-to-it-admins-activity-7487581078262681600-vAk2"
  ]
}
```

# Actor output Schema

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

No description

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

No description

## `failedInputs` (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 = {
    "postUrls": [
        "https://www.linkedin.com/posts/openai_a-note-to-it-admins-activity-7487581078262681600-vAk2"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("curly/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 = { "postUrls": ["https://www.linkedin.com/posts/openai_a-note-to-it-admins-activity-7487581078262681600-vAk2"] }

# Run the Actor and wait for it to finish
run = client.actor("curly/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 '{
  "postUrls": [
    "https://www.linkedin.com/posts/openai_a-note-to-it-admins-activity-7487581078262681600-vAk2"
  ]
}' |
apify call curly/linkedin-post-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/aJDNESs2OXfTz7k3c/builds/dz4FLLlbLNyaO8zBx/openapi.json
