LinkedIn

LinkedIn API

Public post text
and engagement

Fetch public LinkedIn post text, author details, media and article cards, plus public reaction and comment totals.

  • Post text and canonical public URL
  • Author, media and article context
  • Public reaction and comment totals only

Historical recordings · 1 recorded item in the saved sample

POST/acts/meka.im~linkedin-public-post-scraper/run-sync-get-dataset-items

LinkedIn · public post

LinkedIn · recorded sample

1 recorded item

LinkedIn post

Pass in employee attributes that you might have in your on-prem identity store, and leverage those as part of access control decisions within #AWS https://lnkd.in/gus7uSz #ABAC @AWSIdentity

Jim Scharf

Reactions

77

Comments

1

Published

Nov 23, 2019, 01:33:43 UTC

Post type

article

The saved fixture is a historical public recording and may use the recording's own field names.

Recorded Sep 24, 2026Historical sample

Overview

What this API returns

Fetch public LinkedIn post text, author details, media and article cards, plus public reaction and comment totals.

postUrls accepts one to 1,000 public LinkedIn post URLs or numeric activity IDs. Duplicate identities are fetched once and reported at their later input positions.

Only public data is returned. engagement carries public total reactions and comments, not private audience data. A restricted, invalid or duplicate result is reported through the error object rather than a fabricated post.

Input

Post URLs or activity IDs

Output

Public post records

01

Send post identities

Provide public post URLs or numeric activity IDs to the Actor endpoint.

02

Read each public post

The Actor keeps the text, author, media and optional article or job cards exposed by the public page.

03

Read public engagement

Each row reports only public reaction and comment totals, plus any public limitations.

Use cases

Where these records fit

The record is designed to sit inside research and review workflows. The examples below are starting points, not packaged scores.

Content research

Collect public post text and author context for a set of company or creator pages.

  • text
  • author
  • publishedAt

Campaign review

Compare public reaction and comment totals across selected posts.

  • engagement
  • postType
  • media

Editorial archiving

Keep the canonical public URL and media references for a post collection.

  • postUrl
  • media
  • article

Try it

Inspect a recorded public post

Read the saved post row, then inspect the original Dataset item as JSON. Only public fields are recorded.

Checking live preview

Checking live preview availability… Saved samples remain available.

Enter a public LinkedIn post URL or activity ID.

POSThttps://api.apify.com/v2/acts/meka.im~linkedin-public-post-scraper/run-sync-get-dataset-items
Recorded sample
Copyable cURL uses the current preview input and the Actor endpoint.

Rendered

Recorded
LinkedIn
1 record

LinkedIn post

Jim Scharf

article

Pass in employee attributes that you might have in your on-prem identity store, and leverage those as part of access control decisions within #AWS https://lnkd.in/gus7uSz #ABAC @AWSIdentity

Reactions

77

Comments

1

Published

Nov 23, 2019, 01:33:43 UTC

Post and source

Post ID
6603817662688702465
Post type
article
Published
Nov 23, 2019, 01:33:43 UTC
Response details (9 fields)

Post

Post ID
6603817662688702465
Post type
article
Published
Nov 23, 2019, 01:33:43 UTC
Text
Pass in employee attributes that you might have in your on-prem identity store, and leverage those as part of access control decisions within #AWS https://lnkd.in/gus7uSz #ABAC @AWSIdentity

Author

Name
Jim Scharf

Public engagement

Only publicly exposed reaction and comment totals are reported. Reaction breakdowns and share counts are not public.

Reactions
77
Comments
1

Only returned fields are shown.

All returned fields

postId
6603817662688702465
postUrl
https://www.linkedin.com/posts/jimscharf_new-for-identity-federation-use-employee-activity-6603817662688702465-YTu-
text
Pass in employee attributes that you might have in your on-prem identity store, and leverage those as part of access control decisions within #AWS https://lnkd.in/gus7uSz #ABAC @AWSIdentity
postType
article
publishedAt
2019-11-23T01:33:43.710Z
authorName
Jim Scharf
authorUrl
https://www.linkedin.com/in/jimscharf
totalReactions
77
comments
1

Recorded Sep 24, 2026 · Historical snapshot · Source: LinkedIn

JSON

Recordedapplication/json
1[2  {3    "postId": "6603817662688702465",4    "postUrl": "https://www.linkedin.com/posts/jimscharf_new-for-identity-federation-use-employee-activity-6603817662688702465-YTu-",5    "text": "Pass in employee attributes that you might have in your on-prem identity store, and leverage those as part of access control decisions within #AWS\nhttps://lnkd.in/gus7uSz  #ABAC @AWSIdentity",6    "postType": "article",7    "publishedAt": "2019-11-23T01:33:43.710Z",8    "authorName": "Jim Scharf",9    "authorUrl": "https://www.linkedin.com/in/jimscharf",10    "totalReactions": 77,11    "comments": 112  }13]

Reference

Request and response contract

POST to the Apify Actor endpoint with a bearer token. Request examples use $APIFY_TOKEN and the current product defaults; response examples come from a saved historical record.

Parameters

Request fields accepted by the Actor. Preview input is sent only when you run a live request.

postUrlsstring[]Required

One to 1,000 public LinkedIn post URLs or numeric activity IDs. Duplicate identities are fetched once and reported explicitly at their later input positions.

Response

Published response fields are listed below. The saved historical fixture may use different public field names and is shown unchanged.

okbooleanRequired

True only for a successfully fetched public post.

inputstringRequired

Original input value.

postIdstring | null

LinkedIn activity ID.

Example: 6603817662688702465

postUrlstring | null

Canonical public post URL.

Example: https://www.linkedin.com/posts/jimscharf_new-for-identity-federation-use-employee-activity-6603817662688702465-YTu-

textstring | null

Post text exposed publicly.

Example: Pass in employee attributes that you might have in your on-prem identity store, and leverage those as part of access control decisions within #AWS https://lnkd.in/gus7uSz #ABAC @AWSIdentity

postTypestring | null

Observed public post type.

Example: article

publishedAtstring | null

Exact JSON-LD publication time when exposed.

Example: 2019-11-23T01:33:43.710Z

authorobject | null

Public author information.

mediaobject[]

Public images, video, or document resources.

articleobject | null

Public external article card.

jobobject | null

Public attached job card.

repostobject | null

Public original-post details fetched from its own page.

engagementobject | null

Only public total reactions and comments.

sourceobjectRequired

Live public-source declaration.

fetchedAtstringRequired

Time of the live fetch.

limitationsstring[]

Unavailable public-data capabilities.

errorobject | null

Explicit non-billable invalid, restricted, or duplicate result.

curl -X POST 'https://api.apify.com/v2/acts/meka.im~linkedin-public-post-scraper/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
  "postUrls": [
    "6603817662688702465"
  ]
}'

Recorded sample

1 recorded item · historical sample

[
  {
    "postId": "6603817662688702465",
    "postUrl": "https://www.linkedin.com/posts/jimscharf_new-for-identity-federation-use-employee-activity-6603817662688702465-YTu-",
    "text": "Pass in employee attributes that you might have in your on-prem identity store, and leverage those as part of access control decisions within #AWS\nhttps://lnkd.in/gus7uSz  #ABAC @AWSIdentity",
    "postType": "article",
    "publishedAt": "2019-11-23T01:33:43.710Z",
    "authorName": "Jim Scharf",
    "authorUrl": "https://www.linkedin.com/in/jimscharf",
    "totalReactions": 77,
    "comments": 1
  }
]

Recorded Sep 24, 2026 · historical snapshot

Pricing & access

Usage is billed through the Actor

Published FREE-plan event rates from public Apify metadata. Plan-specific rates and usage terms remain on the Actor's pricing page.

Pricing

Pay per delivered event

Apify FREE-plan rate

$1.00per 1,000 posts

Per delivered public post Dataset item.

Checked 19 Oct 2026Apify pricing

Access

One POST endpoint

  • Authenticate with an Apify Bearer token.
  • Send a JSON body to the posted Actor endpoint.
  • Read the Dataset items array returned by the run.

https://api.apify.com/v2/acts/meka.im~linkedin-public-post-scraper/run-sync-get-dataset-items

FAQ

Questions about the contract

Authentication, response shape, recorded data and availability.

Are reaction and comment totals complete?

They are the public totals exposed for the post. The contract does not promise private audience data or a complete engagement breakdown.

What happens to duplicate inputs?

Duplicate identities are fetched once and reported explicitly at their later input positions.

What does a restricted post return?

A restricted, invalid or duplicate result is represented through the error object. The page does not convert that into post content.

How do I authenticate requests?

Send an Apify token as a Bearer token in the Authorization header, as shown in the request examples.

Are the results on this page live?

Not by default. Saved samples are historical recordings from the source; each keeps the fields and values from that record and does not verify current availability. Live data is requested directly from the published Apify Actor endpoint with your own token.

Where can I find current pricing?

Current pricing and usage terms are published on the Apify Actor page.