# LinkedIn Post Search Scraper (`w3crawler/linkedin-post-search-scraper`) Actor

Discover and extract source-linked metadata from public LinkedIn post pages, with explicit diagnostics when public access is unavailable.

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

## Pricing

from $2.99 / 1,000 post search results

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 Post Discovery via Public Web Index

Discover publicly indexed LinkedIn post URLs through bounded Brave web-index pages or supply public post URLs directly, then extract source-linked metadata from pages LinkedIn publishes without authentication in an anonymous Chromium context. The Actor does not claim authenticated LinkedIn search. It validates requested, redirected, canonical, author, media, and comment URLs and does not use caller cookies or bypass access controls.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/linkedin-post-search-scraper) and select **Try for free** or open the **Input** tab.
2. Use `searchQueries` for web-index discovery, `targetUrls` for direct public posts, or both.
3. Keep `maxPosts` and `searchPages` small for the first run. Enable `scrapeComments` only if embedded public comments are needed.
4. Start the Actor, open the dataset, and export the rows as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT`) to inspect discovery provenance and counts.

### Input

At least one search query or target URL is required; the default query is ready to use. Other fields are optional, and the defaults below apply. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `searchQueries` | string array | Conditional | `["artificial intelligence"]` | Free-text queries used to discover publicly indexed LinkedIn posts, up to 100 entries. This is not authenticated LinkedIn search. |
| `targetUrls` | string array | Conditional | Not supplied | Direct public LinkedIn `/posts/` or `/feed/update/` URLs, up to 100 entries. |
| `maxPosts` | integer | Optional | `20` | Maximum fully enriched posts across the run, from 1 to 100. |
| `searchPages` | integer | Optional | `1` | Bounded Brave result pages inspected per keyword, from 1 to 3. LinkedIn's authenticated search route is not paginated. |
| `sortBy` | string enum | Optional | `relevance` | Metadata label retained with results: `relevance` or `date`. It does not change Brave's ranking. |
| `scrapeComments` | boolean | Optional | `false` | Include comments embedded in public post JSON-LD. |
| `maxComments` | integer | Optional | `5` | Maximum publicly embedded comments retained per post, from 1 to 100. |
| `scrapeReactions` | boolean | Optional | `false` | Retain public aggregate reaction data. Member-level reaction identities are not fabricated. |
| `proxyConfiguration` | object | Optional | `{"useApifyProxy":false}` | Standard Apify Proxy routing. Direct public access is used by default. |

Full default input:

```json
{
  "searchQueries": [
    "artificial intelligence"
  ],
  "maxPosts": 20,
  "searchPages": 1,
  "sortBy": "relevance",
  "scrapeComments": false,
  "maxComments": 5,
  "scrapeReactions": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

Direct `targetUrls` are fetched without web-index discovery. Query-based runs use Brave result pages, then fetch only the public post pages selected from those results.

### Output

The dataset contains one row per saved public post, comment, or reaction record. Optional values are omitted when the public page does not expose them. A set of operational fields exists in the dataset schema for compatibility but is removed by the dataset sanitizer before saving; those fields are listed separately below and never appear in real rows.

#### Saved dataset fields

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `id` | string | Always | Stable record identity, such as `linkedin-post:{sourceId}`. |
| `recordType` | string enum | Always | Record type: `post`, `comment`, or `reaction`. |
| `postId` | string | When a post identity is available | LinkedIn post or activity identifier. |
| `commentId` | string | For comment records | Comment identifier. |
| `reactionId` | string | For reaction records when exposed | Reaction identifier. |
| `postUrl` | string | Always | Canonical public LinkedIn post URL. |
| `postContent` | string | When the post has text | Public post text. |
| `contentAttributes` | array | When exposed | Public content attributes. |
| `authorId` | string | When exposed | Author identifier. |
| `authorName` | string | When exposed | Public author name. |
| `authorType` | string | When exposed | Author type, such as `Person` or `Organization`. |
| `authorUrl` | string | When exposed | Public author profile URL. |
| `authorInfo` | string | When exposed | Public author headline or description. |
| `authorWebsite` | string | When exposed | Author website URL. |
| `authorWebsiteLabel` | string | When exposed | Author website label. |
| `authorAvatarUrl` | string | When exposed | Author avatar URL. |
| `authorAvatarWidth` | integer | When exposed | Author avatar width. |
| `authorAvatarHeight` | integer | When exposed | Author avatar height. |
| `postedAt` | string | When exposed | Post publication time. |
| `postedTimestamp` | integer | When exposed | Post publication time as a Unix timestamp. |
| `postedAgoShort` | string | When exposed | Short relative-time label. |
| `postedAgoText` | string | When exposed | Full relative-time label. |
| `postImages` | array | When images exist | Public post image URLs. |
| `imageCount` | integer | When image counts are reported | Number of public post images. |
| `postVideos` | string array | When videos exist | Public post video URLs. |
| `videoCount` | integer | When video counts are reported | Number of public post videos. |
| `mediaReferences` | object array | When media is exposed | Public media references with `url`, `kind`, `source`, and optional dimensions or duration. |
| `mediaType` | string enum | When media is exposed | `image`, `video`, or `mixed`. |
| `mediaWidth` | integer | When exposed | Media width in pixels. |
| `mediaHeight` | integer | When exposed | Media height in pixels. |
| `mediaDurationSeconds` | number | When exposed | Media duration in seconds. |
| `mediaAvailable` | boolean | When public media is detected | Whether public media was detected. |
| `poll` | object | When the post contains a poll | Structured public poll data. |
| `shareUrn` | string | When exposed | LinkedIn share URN. |
| `shareUrl` | string | When exposed | Public share URL. |
| `shareLinkedinUrl` | string | When exposed | Public LinkedIn share URL. |
| `engagementLikes` | number | When exposed | Public like count. |
| `engagementComments` | number | When exposed | Public comment count. |
| `engagementShares` | number | When exposed | Public share count. |
| `engagementReactions` | number | When exposed | Public aggregate reaction count. |
| `reactionBreakdown` | object array | When exposed | Aggregate reaction counts by type, with source evidence. |
| `commentText` | string | For comment records | Public comment text. |
| `commentLikeCount` | number | For comment records when exposed | Public comment like count. |
| `commentSource` | string | For comment records | Evidence source for the comment. |
| `reactionType` | string | For reaction records when exposed | Reaction type label. |
| `createdAt` | string | When exposed | Record creation time. |
| `commentAuthorName` | string | For comment or reaction records | Comment or reaction author name. |
| `commentAuthorUrl` | string | For comment or reaction records | Comment or reaction author URL. |
| `searchQuery` | string | When discovered by a query | Query that produced the candidate. |
| `searchSortBy` | string | When discovered by a query | Sort label retained for the query. |
| `searchPage` | string | When discovered by a query | One-based search page label. |
| `discoverySource` | string | When discovery metadata exists | Truthful source scope, such as `brave-web-index` or `direct-target-url`. |
| `discoverySourceUrl` | string | When discovery metadata exists | Result page or direct URL used for discovery. |
| `discoveryPage` | integer | When discovery metadata exists | One-based discovery page that exposed the post. |
| `discoveryCursor` | string | When discovery metadata exists | Public continuation value, such as `offset=0`. |
| `discoverySiteFilter` | string | When discovery metadata exists | Site filter used for the query, such as `site:linkedin.com/posts`. |
| `sourceUrl` | string | Always | Source URL requested for the saved record. |
| `finalUrl` | string | Always | Final URL after approved public redirects. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |

#### Schema-only operational fields

These fields are declared in the dataset schema for compatibility, but the dataset sanitizer removes them before any row is written. They are not present in the saved-row example.

| Field | Meaning |
| --- | --- |
| `actorName` | Actor name metadata. |
| `actorSlug` | Actor slug metadata. |
| `targetHint` | Internal target hint. |
| `accessPolicy` | Internal access-policy metadata. |
| `generatedBy` | Generator metadata. |
| `status` | Pre-sanitization record status. |
| `actorStatus` | Actor process status metadata. |
| `accessStatus` | Pre-sanitization access status. |
| `found` | Pre-sanitization found flag. |
| `dataAvailable` | Pre-sanitization data-availability flag. |
| `sourceWebsite` | Source website metadata. |
| `sourceDomain` | Source domain metadata. |
| `sourceTransport` | Request transport metadata. |
| `sourceHttpStatus` | Source HTTP status. |
| `httpStatus` | Post-page HTTP status. |
| `apiHttpStatus` | API HTTP status. |
| `jobsHttpStatus` | Jobs-page HTTP status. |
| `requestAttempts` | Request-attempt count. |
| `totalRequestAttempts` | Total request-attempt count. |
| `responseBytes` | Response size in bytes. |
| `proxyConfigured` | Whether a proxy was configured. |
| `proxyUsed` | Whether a proxy was used. |
| `fingerprintApplied` | Whether fingerprinting was applied. |
| `browserFingerprinting` | Browser-fingerprinting metadata. |
| `headlessBrowser` | Headless-browser metadata. |
| `requestUserAgent` | Request user agent. |
| `extractionMethod` | Extraction-method metadata. |
| `scrapeMode` | Scrape-mode metadata. |
| `rawRecord` | Raw record payload. |
| `rawPost` | Raw post payload. |
| `rawPublication` | Raw publication payload. |
| `rawUser` | Raw user payload. |

The example below is the complete saved row from the 2026-10-25 run. It was discovered through a Brave query and enriched from the public post page.

```json
{
  "id": "linkedin-post:7490376044844101632",
  "recordType": "post",
  "postId": "7490376044844101632",
  "postUrl": "https://www.linkedin.com/posts/natosto_artificial-intelligence-one-of-nine-emerging-activity-7490376044844101632-5ZN-",
  "postContent": "Artificial intelligence - one of nine emerging and disruptive technologies (EDTs) identified by NATO - has the potential to radically transform the modern battlefield, presenting both challenges and opportunities to the Alliance. \n\nIn this video, a NATO STO researcher explains what AI is, why it matters for NATO militaries, and how the NATO STO is working to stay ahead in this critical field ⬇️",
  "postImages": [
    "https://dms.licdn.com/playlist/vid/v2/D4E05AQGO0sBRZjCAjg/thumbnail-with-play-button-overlay-high/B4EZ82j1OgKQC0-/0/1783326803100?e=2147483647&v=beta&t=xAi4F7M2MJrgoeEiAGTJZgipx_ZgOu12ruYRAjhthkE"
  ],
  "imageCount": 1,
  "videoCount": 0,
  "mediaReferences": [
    {
      "url": "https://dms.licdn.com/playlist/vid/v2/D4E05AQGO0sBRZjCAjg/thumbnail-with-play-button-overlay-high/B4EZ82j1OgKQC0-/0/1783326803100?e=2147483647&v=beta&t=xAi4F7M2MJrgoeEiAGTJZgipx_ZgOu12ruYRAjhthkE",
      "kind": "image",
      "source": "public_meta"
    }
  ],
  "mediaType": "image",
  "mediaAvailable": true,
  "shareUrn": "urn:li:activity:7490376044844101632",
  "shareLinkedinUrl": "https://www.linkedin.com/posts/natosto_artificial-intelligence-one-of-nine-emerging-activity-7490376044844101632-5ZN-",
  "searchQuery": "artificial intelligence",
  "searchSortBy": "relevance",
  "searchPage": "1",
  "discoverySource": "brave-web-index",
  "discoverySourceUrl": "https://search.brave.com/search?q=site%3Alinkedin.com%2Fposts+%22artificial+intelligence%22&source=web&spellcheck=0",
  "discoveryPage": 1,
  "discoveryCursor": "offset=0",
  "discoverySiteFilter": "site:linkedin.com/posts",
  "sourceUrl": "https://www.linkedin.com/posts/natosto_artificial-intelligence-one-of-nine-emerging-activity-7490376044844101632-5ZN-",
  "finalUrl": "https://www.linkedin.com/posts/natosto_artificial-intelligence-one-of-nine-emerging-activity-7490376044844101632-5ZN-",
  "scrapedAt": "2026-10-25T20:50:16.579Z"
}
```

### Run summary

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

| Field | Meaning |
| --- | --- |
| `source` | Public source description for the run. |
| `sourceScope` | Discovery scope; `public_web_index_discovery`. |
| `discoveryProvider` | Web-index provider used for query discovery. |
| `targetOwnedSearchClaim` | Whether the run claims authenticated LinkedIn search; always `false`. |
| `searchPagesRequested` | Bounded web-index pages requested per query. |
| `candidateLimitPerQuery` | Maximum candidate URLs considered per query. |
| `pagesRequested` | Web-index result pages requested. |
| `pagesProcessed` | Web-index result pages processed. |
| `pagesWithUniqueCandidates` | Pages that yielded at least one new candidate URL. |
| `pageProvenance` | Per-page evidence, including query, site filter, URL, status, and candidate counts. |
| `candidateUrlsDiscovered` | Candidate post URLs discovered. |
| `candidateUrlsAttempted` | Candidate URLs fetched for enrichment. |
| `duplicateCandidatesSkipped` | Duplicate candidate URLs skipped. |
| `duplicatePostsSkipped` | Duplicate posts skipped. |
| `repeatedCursorStops` | Times pagination stopped after a repeated cursor. |
| `noProgressStops` | Times pagination stopped after a page added no new candidates. |
| `sourceExhausted` | Whether the provider indicated no further results. |
| `normalRecordsByPage` | Count of saved normal records keyed by discovery page. |
| `status` | Actor process outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of the dataset: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `itemCount` | Rows saved to the dataset. |
| `commentCount` | Comment records saved. |
| `recordCount` | Total records saved across post, comment, and reaction types. |
| `diagnosticCount` | Operational issues recorded for the run. |
| `failureCount` | Discovery or enrichment operations that failed. |
| `optionalFailureCount` | Optional failures that did not stop saved rows from being kept. |
| `lastErrorCode` | Machine-readable code for the last failure, when one occurred. |
| `lastErrorMessage` | Bounded message for the last failure, when one occurred. |
| `dataAvailable` | Whether at least one usable row was saved. |
| `generatedBy` | Tool metadata recorded for the run. |
| `sourceTransport` | `direct` or `apify_proxy`. |
| `proxyConfigured` | Whether a proxy configuration was supplied. |
| `completedAt` | Time the summary was written, in ISO UTC. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Records were saved without a discovery or enrichment failure. |
| `SUCCEEDED` | `PARTIAL` | Records were saved, but at least one page, candidate, or optional step failed. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | Discovery completed cleanly and found no matching public posts. |
| `FAILED` | `FAILED` | A fatal error occurred before any usable record was saved. |

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

```json
{
  "source": "Public web-index discovery of LinkedIn posts plus public LinkedIn post pages",
  "sourceScope": "public_web_index_discovery",
  "discoveryProvider": "brave-web-index",
  "targetOwnedSearchClaim": false,
  "searchPagesRequested": 1,
  "candidateLimitPerQuery": 10,
  "pagesRequested": 2,
  "pagesProcessed": 2,
  "pagesWithUniqueCandidates": 1,
  "pageProvenance": [
    {
      "query": "artificial intelligence",
      "page": 1,
      "cursor": "offset=0",
      "url": "https://search.brave.com/search?q=site%3Alinkedin.com%2Fposts+%22artificial+intelligence%22&source=web&spellcheck=0",
      "source": "brave-web-index",
      "siteFilter": "site:linkedin.com/posts",
      "status": 200,
      "candidateCount": 19,
      "uniqueCandidateCount": 10,
      "duplicateCandidateCount": 0
    },
    {
      "query": "artificial intelligence",
      "page": 1,
      "cursor": "offset=0",
      "url": "https://search.brave.com/search?q=site%3Alinkedin.com%2Ffeed%2Fupdate+%22artificial+intelligence%22&source=web&spellcheck=0",
      "source": "brave-web-index",
      "siteFilter": "site:linkedin.com/feed/update",
      "status": 200,
      "candidateCount": 2,
      "uniqueCandidateCount": 0,
      "duplicateCandidateCount": 0
    }
  ],
  "candidateUrlsDiscovered": 10,
  "candidateUrlsAttempted": 1,
  "duplicateCandidatesSkipped": 0,
  "duplicatePostsSkipped": 0,
  "repeatedCursorStops": 0,
  "noProgressStops": 0,
  "sourceExhausted": false,
  "normalRecordsByPage": {
    "1": 1
  },
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "COMPLETE",
  "itemCount": 1,
  "commentCount": 0,
  "recordCount": 1,
  "diagnosticCount": 0,
  "failureCount": 0,
  "optionalFailureCount": 0,
  "dataAvailable": true,
  "generatedBy": "OpenAI Codex with GPT-6",
  "sourceTransport": "direct",
  "proxyConfigured": false,
  "completedAt": "2026-10-25T20:50:16.834Z"
}
```

### Coverage and limitations

Query-based discovery is web-index based, not LinkedIn search. The Actor searches Brave for `site:linkedin.com/posts` and `site:linkedin.com/feed/update`, then fetches only the public post pages selected from those results. A direct `targetUrls` run skips discovery but still reads only public post pages. Results depend on what the web index has published, so a hashtag, company, or author may have public posts that this Actor cannot discover.

`searchPages` is bounded to 1–3 per query. Candidate URLs are deduplicated and capped per query before enrichment, and `maxPosts` is a global cap on fully enriched posts. `pageProvenance` records what each page contributed and whether any candidate step failed.

Post metadata comes from public JSON-LD and public page evidence. `scrapeComments` adds only comments embedded in the public post page, up to `maxComments`; comments that require login or interaction are not fetched. `scrapeReactions` reports public aggregate counts and breakdowns; member-level reaction identities are not fabricated. Media references are public URLs, not downloaded bytes.

The dataset schema contains operational fields that are removed by the sanitizer before saving, including `accessStatus`, `dataAvailable`, `extractionMethod`, `httpStatus`, `sourceDomain`, `sourceTransport`, `requestUserAgent`, `proxyConfigured`, `proxyUsed`, `fingerprintApplied`, `generatedBy`, `status`, and the `raw*` fields. They are listed above for completeness but never appear in saved rows. Private, deleted, login-gated, or region-restricted posts are omitted, and no CAPTCHA or access control is bypassed.

### Usage and support

Apify compute, browser memory, dataset storage, and optional proxy traffic determine the run cost; there is no separate per-post event configured for this Actor. Start with one query, `maxPosts` of 1–5, and `searchPages: 1`; inspect `pageProvenance` 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-post-search-scraper/issues) to report a problem. Include the run ID, the input used, and `OUTPUT`; do not include tokens, cookies, or private data. This Actor is not affiliated with LinkedIn or Brave. Use it only for public data and in accordance with the applicable terms, robots guidance, and law. Public posts can 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-post-search-scraper/changelog.md

# Actor input Schema

## `searchQueries` (type: `array`):

Free-text queries used to discover publicly indexed LinkedIn posts; this is not authenticated LinkedIn search.

## `targetUrls` (type: `array`):

Optional direct LinkedIn post URLs.

## `maxPosts` (type: `integer`):

Maximum number of fully enriched posts across the run.

## `searchPages` (type: `integer`):

Number of bounded Brave public web-index result pages to inspect per keyword (1-3). LinkedIn's authenticated search route is not paginated.

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

Metadata label retained with results.

## `scrapeComments` (type: `boolean`):

Include comments embedded in public post JSON-LD.

## `maxComments` (type: `integer`):

Maximum number of publicly embedded comments to include for each post.

## `scrapeReactions` (type: `boolean`):

Public pages expose aggregate counts only; member records are not fabricated.

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

Optional Apify Proxy routing. Direct public access is used by default.

## Actor input object example

```json
{
  "searchQueries": [
    "artificial intelligence"
  ],
  "maxPosts": 20,
  "searchPages": 1,
  "sortBy": "relevance",
  "scrapeComments": false,
  "maxComments": 5,
  "scrapeReactions": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

## `keyValueStore` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/linkedin-post-search-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("w3crawler/linkedin-post-search-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 w3crawler/linkedin-post-search-scraper --silent --output-dataset

```

## MCP server setup

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