# LinkedIn public hashtag posts scraper (`w3crawler/linkedin-hashtag-posts-scraper`) Actor

Discovers public LinkedIn posts by hashtag and enriches them from public post-page JSON-LD, returning source-linked authors, text, engagement, images, hashtags, and retrieval metadata.

- **URL**: https://apify.com/w3crawler/linkedin-hashtag-posts-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 81.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 hashtag posts

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

Discover publicly indexed LinkedIn posts for supplied hashtags through bounded Brave web-index result pages, then enrich only those posts from public LinkedIn post-page JSON-LD. The Actor also probes the public LinkedIn hashtag route once for directly public structured data. It does not scroll an authenticated hashtag feed, use cookies, call a private API, or claim that the result is a complete hashtag archive.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/linkedin-hashtag-posts-scraper) and select **Try for free** or open the **Input** tab.
2. Enter one or more hashtags with or without `#` in `hashtags`. The legacy `searchQueries` field is also accepted.
3. Keep `maxPosts` and `maxPages` small for the first run; `maxPosts` is a global enriched-post cap.
4. Start the Actor, open the dataset, and export the rows as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to inspect discovery provenance and counts.

### Input

At least one `hashtags` or `searchQueries` value is required. The other fields are optional, and the defaults below are ready to use.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `hashtags` | string array | Conditional | Not supplied (prefill: `AI`) | Hashtags with or without `#`, up to 20 entries. Values are normalized for discovery. |
| `searchQueries` | string array | Conditional | Not supplied | Backward-compatible hashtag queries, up to 20 entries. They are combined with `hashtags`. |
| `maxPosts` | integer | Optional | `10` | Global maximum number of fully enriched posts across the whole run, from 1 to 100. |
| `maxPages` | integer | Optional | `1` | Maximum bounded result pages per public web-index provider, from 1 to 3. The authenticated LinkedIn hashtag feed is never scrolled. |
| `proxyConfiguration` | object | Optional | `{"useApifyProxy":false}` | Standard Apify Proxy settings. Direct requests are used by default. |

Example input using the prefilled hashtag and the schema defaults:

```json
{
  "hashtags": [
    "AI"
  ],
  "maxPosts": 10,
  "maxPages": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

The Actor requests public LinkedIn hashtag and post pages and public Brave search-result pages. A sign-in page, CAPTCHA, checkpoint, or access wall is treated as a boundary, not as a post record.

### Output

The dataset contains one row per publicly discovered post that survives validation and hashtag matching. Optional values are omitted when the public post page does not expose them; diagnostics stay in the run summary and logs.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordId` | string | Always | Stable identity in `linkedin-post:{sourceId}` form. |
| `recordType` | string enum | Always | Row discriminator; always `post`. |
| `dataAvailable` | boolean | Always | Whether the row contains usable public post data. |
| `accessStatus` | string enum | Always | Public access status; `public` for saved rows. |
| `extractionMethod` | string enum | Always | Public post extraction path; `linkedin-public-post-jsonld`. |
| `id` | string | When a legacy row provides it | Legacy identity field. Not present in every saved row. |
| `status` | string | Schema only; removed before saving | Pre-sanitization row status. It does not appear in saved rows. |
| `postUrl` | string | Always | Canonical public LinkedIn post URL. |
| `requestedPostUrl` | string | Always | Public post URL selected by discovery. |
| `title` | string | When the post exposes a headline | Public post headline. |
| `text` | string | When the post has text | Public post text. |
| `authorName` | string | When exposed | Public author name. |
| `authorUrl` | string | When exposed | Public author profile URL. |
| `authorType` | string | When exposed | Structured-data author type, such as `Person` or `Organization`. |
| `authorImageUrl` | string | When exposed | Public author image URL. |
| `authorFollowerCount` | integer | When exposed | Public author follower count. |
| `publishedAt` | string | When exposed | Public publication time in ISO UTC. |
| `modifiedAt` | string | When exposed | Public modification time in ISO UTC. |
| `imageUrls` | array | When images exist | Public post image URLs. |
| `imageCount` | integer | When images exist | Number of public post images. |
| `likes` | integer | When exposed | Public like count at collection time. |
| `comments` | integer | When exposed | Public comment count at collection time. |
| `reposts` | integer | When exposed | Public repost or share count. |
| `hashtags` | array | When hashtags are found | Hashtags found in the post and shared content. |
| `postHashtags` | array | When hashtags are found | Hashtags found in the post text. |
| `isReshare` | boolean | Always | Whether the post exposes shared content. |
| `sharedHeadline` | string | When a reshare has a headline | Shared-post headline. |
| `sharedText` | string | When a reshare has text | Shared-post text. |
| `sharedAuthorName` | string | When a reshare exposes an author | Shared-post author name. |
| `sharedAuthorUrl` | string | When a reshare exposes an author | Shared-post author URL. |
| `sharedAuthorType` | string | When a reshare exposes an author | Shared-post author type. |
| `sharedAuthorFollowerCount` | integer | When a reshare exposes an author | Shared-post author follower count. |
| `sharedImageUrls` | array | When a reshare has images | Shared-post image URLs. |
| `sharedImageCount` | integer | Always | Number of shared-post images; 0 when the post is not a reshare. |
| `sharedHashtags` | array | When a reshare has hashtags | Hashtags found in shared content. |
| `hashtag` | string | Always | Normalized hashtag used for discovery. |
| `searchQuery` | string | Always | Original normalized query value. |
| `hashtagSourceUrl` | string | Always | Public LinkedIn hashtag page probed for the query. |
| `discoverySourceUrl` | string | Always | Web-index result page used for discovery. |
| `discoveryTransport` | string | Always | Public discovery source label, such as `brave-web-index`. |
| `discoverySource` | string | Always | Truthful discovery scope, such as `brave-web-index` or `linkedin-public-hashtag-page`. |
| `discoveryPage` | integer | Always | One-based discovery page that first exposed the post. |
| `discoveryCursor` | string | Always | Public continuation value, such as `offset=0` or `initial`. |
| `sourceUrl` | string | Always | Source URL for the saved public post. |
| `finalUrl` | string | Always | Final URL after approved public redirects. |
| `sourceDomain` | string | Schema only; removed before saving | Source hostname. It does not appear in saved rows. |
| `sourceTransport` | string | Schema only; removed before saving | Transport metadata. It does not appear in saved rows. |
| `retrievalMethod` | string | Always | Public retrieval path, such as `linkedin-public-post-jsonld`. |
| `httpStatus` | integer | Schema only; removed before saving | Post response status. It does not appear in saved rows. |
| `requestUserAgent` | string | Schema only; removed before saving | Request user agent. It does not appear in saved rows. |
| `proxyUsed` | boolean | Schema only; removed before saving | Whether a proxy was used. It does not appear in saved rows. |
| `fingerprintApplied` | boolean | Schema only; removed before saving | Whether fingerprinting was applied. It does not appear in saved rows. |
| `generatedBy` | string | Schema only; removed before saving | Generator metadata. It does not appear in saved rows. |
| `dataOrigin` | string | Always | Human-readable public source boundary. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |

The example below is the complete saved row from the 2026-10-25 run. It was discovered through Brave, not through an authenticated LinkedIn hashtag feed.

```json
{
  "recordType": "post",
  "recordId": "linkedin-post:7130134007584808962",
  "postUrl": "https://www.linkedin.com/posts/evolving-ai_ai-artificialintelligence-technology-activity-7130134007584808962-n0pp",
  "requestedPostUrl": "https://www.linkedin.com/posts/evolving-ai_ai-artificialintelligence-technology-activity-7130134007584808962-n0pp",
  "title": "🚨 BREAKING: OpenAI is officially working on GPT-5.",
  "text": "🚨 BREAKING: OpenAI is officially working on GPT-5. In a new interview with FT, Sam Altman confirmed the company is working on the next-gen of GPT-4. No timeline has been announced yet. #ai #artificialintelligence #technology -- 💡 Join +3000 readers with the latest AI insights to stay ahead of the curve: evolvingai.io/subscribe",
  "authorName": "Evolving AI",
  "authorUrl": "https://www.linkedin.com/company/evolving-ai",
  "authorType": "Organization",
  "authorImageUrl": "https://media.licdn.com/dms/image/v2/D4D0BAQHrOH5g2qzZxg/company-logo_100_100/company-logo_100_100/0/1732550288999/evolving_ai_logo?e=2147483647&v=beta&t=Ip0r33zD89-RNQsaNu5ywms16anEjdwvRYrqj3Tzixk",
  "authorFollowerCount": 181168,
  "publishedAt": "2023-11-14T10:06:58.877Z",
  "imageUrls": [
    "https://media.licdn.com/dms/image/v2/D4E22AQGMSzsErZwJyA/feedshare-shrink_800/feedshare-shrink_800/0/1699956417334?e=2147483647&v=beta&t=mrW0QeC83qEC5vYxuBtjg5x_iyVSRLOF9UkYBsTecKg"
  ],
  "imageCount": 1,
  "likes": 3,
  "comments": 2,
  "hashtags": [
    "#ai",
    "#artificialintelligence",
    "#technology"
  ],
  "postHashtags": [
    "#ai",
    "#artificialintelligence",
    "#technology"
  ],
  "isReshare": false,
  "sharedImageCount": 0,
  "hashtag": "AI",
  "searchQuery": "AI",
  "hashtagSourceUrl": "https://www.linkedin.com/feed/hashtag/AI/",
  "discoverySourceUrl": "https://search.brave.com/search?q=site%3Alinkedin.com%2Fposts+%22%23AI%22&source=web&spellcheck=0",
  "discoverySource": "brave-web-index",
  "discoveryPage": 1,
  "discoveryCursor": "offset=0",
  "sourceUrl": "https://www.linkedin.com/posts/evolving-ai_ai-artificialintelligence-technology-activity-7130134007584808962-n0pp",
  "finalUrl": "https://www.linkedin.com/posts/evolving-ai_ai-artificialintelligence-technology-activity-7130134007584808962-n0pp",
  "discoveryTransport": "brave-web-index",
  "retrievalMethod": "linkedin-public-post-jsonld",
  "accessStatus": "public",
  "dataAvailable": true,
  "scrapedAt": "2026-10-25T20:49:11.693Z",
  "dataOrigin": "LinkedIn public post page discovered via public web index",
  "extractionMethod": "linkedin-public-post-jsonld"
}
```

### Run summary

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

| Field | Meaning |
| --- | --- |
| `source` | Public source description for the run. |
| `sourceScope` | Discovery scope; `public_web_index_discovery`. |
| `requestedHashtags` | Normalized hashtags or legacy queries requested. |
| `requestedCount` | Number of requested hashtags or queries. |
| `maxPosts` | Global enriched-post cap for the run. |
| `maxPages` | Maximum web-index pages per provider. |
| `paginationMode` | Description of bounded web-index paging; no authenticated feed scrolling. |
| `targetOwnedPaginationSupported` | Whether LinkedIn's own hashtag route supports pagination without authentication; `false`. |
| `targetOwnedPageProbes` | Number of probes made to the public LinkedIn hashtag route. |
| `targetOwnedAccessBoundaries` | Number of those probes that hit a login wall or access boundary. |
| `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 discovery evidence, including source, URL, cursor, counts, and errors. |
| `candidateUrlsDiscovered` | Candidate post URLs discovered. |
| `candidateUrlsAttempted` | Candidate post URLs fetched for enrichment. |
| `duplicateCandidatesSkipped` | Duplicate candidate URLs skipped. |
| `duplicatePostsSkipped` | Duplicate post records skipped. |
| `repeatedCursorStops` | Times pagination stopped because a cursor repeated. |
| `noProgressStops` | Times pagination stopped because a page added no new candidates. |
| `providerErrors` | Web-index provider errors. |
| `sourceExhausted` | Whether the provider indicated no further results. |
| `recordSources` | Saved-record counts keyed by discovery source. |
| `recordsPushed` | Rows written by the output path. |
| `itemCount` | Rows saved to the dataset. |
| `diagnosticCount` | Operational issues recorded for the run. |
| `datasetContainsDiagnostics` | Whether the dataset contains diagnostic rows; always `false`. |
| `status` | Actor process outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of the dataset: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `failureCount` | Discovery or enrichment operations that failed. |
| `optionalFailureCount` | Optional failures that did not stop saved rows from being kept. |
| `dataAvailable` | Whether at least one usable post row was saved. |
| `generatedBy` | Tool metadata recorded for the run. |
| `sourceTransport` | `direct` or `apify_proxy`. |
| `finishedAt` | Time the summary was written, in ISO UTC. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Rows were saved without a discovery or enrichment failure. |
| `SUCCEEDED` | `PARTIAL` | Rows 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 post row was saved. |

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

```json
{
  "source": "Public web-index discovery of LinkedIn hashtag posts plus public LinkedIn post pages",
  "sourceScope": "public_web_index_discovery",
  "requestedHashtags": [
    "AI"
  ],
  "requestedCount": 1,
  "maxPosts": 2,
  "maxPages": 1,
  "paginationMode": "bounded public web-index pages; no LinkedIn feed scrolling or authenticated cursor",
  "targetOwnedPaginationSupported": false,
  "targetOwnedPageProbes": 1,
  "targetOwnedAccessBoundaries": 1,
  "pagesRequested": 1,
  "pagesProcessed": 1,
  "pagesWithUniqueCandidates": 1,
  "pageProvenance": [
    {
      "source": "linkedin-public-hashtag-page",
      "page": 1,
      "cursor": "initial",
      "url": "https://www.linkedin.com/feed/hashtag/AI/",
      "candidateCount": 0,
      "uniqueCandidateCount": 0,
      "error": "Public LinkedIn page returned an access boundary or login wall"
    },
    {
      "hashtag": "AI",
      "provider": "brave-web-index",
      "page": 1,
      "cursor": "offset=0",
      "url": "https://search.brave.com/search?q=site%3Alinkedin.com%2Fposts+%22%23AI%22&source=web&spellcheck=0",
      "status": 200,
      "candidateCount": 22,
      "uniqueCandidateCount": 20,
      "duplicateCandidateCount": 2
    }
  ],
  "candidateUrlsDiscovered": 20,
  "candidateUrlsAttempted": 2,
  "duplicateCandidatesSkipped": 2,
  "duplicatePostsSkipped": 0,
  "repeatedCursorStops": 0,
  "noProgressStops": 0,
  "providerErrors": 0,
  "sourceExhausted": false,
  "recordSources": {
    "brave-web-index": 2
  },
  "recordsPushed": 2,
  "itemCount": 2,
  "diagnosticCount": 0,
  "datasetContainsDiagnostics": false,
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "PARTIAL",
  "failureCount": 1,
  "optionalFailureCount": 0,
  "dataAvailable": true,
  "generatedBy": "OpenAI Codex with GPT-6",
  "sourceTransport": "direct",
  "finishedAt": "2026-10-25T20:49:12.336Z"
}
```

### Coverage and limitations

Discovery is web-index based, not LinkedIn search. The Actor probes the public LinkedIn hashtag route once, but it does not scroll or paginate an authenticated hashtag feed. Its candidate pool comes from bounded public Brave result pages, so the dataset is limited to posts the index has published and the run was allowed to inspect. `maxPosts` caps fully enriched rows globally, not the number of candidates discovered.

A candidate is saved only when the public post page exposes usable JSON-LD, passes the Actor's minimum post-shape and richness checks, and includes the requested tag among its public hashtags; unrelated or too-thin search hits are filtered out. `maxPages` bounds pages per provider, and a run can still stop early when a cursor repeats, a page adds no new candidates, or the provider is exhausted. `pageProvenance` records what each page contributed.

Only public post-page metadata is used. Private, deleted, login-gated, or region-restricted posts are omitted. Likes and comments are aggregate counts exposed by the page, not member lists. The Actor does not collect comment text, reaction identities, or private profile data. Several schema fields exist only for pre-sanitization compatibility (`status`, `sourceDomain`, `sourceTransport`, `httpStatus`, `requestUserAgent`, `proxyUsed`, `fingerprintApplied`, `generatedBy`) and are stripped before saving; they never appear in dataset rows.

### Usage and support

Direct mode has no proxy charge; Apify compute, storage, and any selected proxy usage are billed under the account plan. Start with one hashtag, `maxPosts` of 1–5, and `maxPages: 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-hashtag-posts-scraper/issues) to report a problem. Include the run ID, the input used, and `OUTPUT_SUMMARY`; 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-hashtag-posts-scraper/changelog.md

# Actor input Schema

## `hashtags` (type: `array`):

Hashtags with or without the # prefix.

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

Optional backward-compatible hashtag queries.

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

Global maximum number of fully enriched posts across the whole run.

## `maxPages` (type: `integer`):

Maximum bounded result pages per public web-index provider (1-3). LinkedIn's authenticated hashtag feed is never scrolled.

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

Optional proxy settings. Direct requests are used by default.

## Actor input object example

```json
{
  "hashtags": [
    "AI"
  ],
  "maxPosts": 10,
  "maxPages": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset containing enriched public LinkedIn post records.

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

JSON source, per-run counts, dataset status, and completion metadata.

# 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 = {
    "hashtags": [
        "AI"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/linkedin-hashtag-posts-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 = { "hashtags": ["AI"] }

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/linkedin-hashtag-posts-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 '{
  "hashtags": [
    "AI"
  ]
}' |
apify call w3crawler/linkedin-hashtag-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/linkedin-hashtag-posts-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/NGZGwpnwNyqAh2AjX/builds/hnUxfNWGNdSTpP3f2/openapi.json
