Skip to main content
GET
Get a single post

Endpoint

Authentication

Include your API key in the request header:

Parameters

string
required
Professional post URL or URN. Accepts any of:
  • Activity URN: urn:li:activity:7524292314127810561
  • ugcPost or share URN (the shareUrn of a post): urn:li:ugcPost:7524292224508096512, urn:li:share:7526456101387657217
  • Post URL: https://www.linkedin.com/feed/update/urn:li:activity:7524292314127810561/ or https://www.linkedin.com/posts/username_post-slug-activity-7524292314127810561-j6rb
All the URNs of a post return the same post, with id set to its activity URN. Anything that is not a post URL or URN is rejected with a free 400 INVALID_URN.

Response

The post itself (not wrapped in a list), with the same fields as a post returned by Get Posts: see the Post object there for the full reference. The main ones:
string
Activity URN of the post (urn:li:activity:...), whichever URN you passed.
string
Share URN of the post (urn:li:share:... or urn:li:ugcPost:...).
string
Post text. An empty string when the post has no text of its own.
string
ISO 8601 timestamp of when the post was published.
integer
Total reactions. reactionsByType breaks it down by type.
integer
Total comments.
integer
Total reposts.
string
text, image, document, article, linkedinVideo, job, event, celebration, or repost (see Reposts).
object
Who published the post, member or organization page: read type. Same object as in Get Posts.
object
required
The author, in the Get Posts profile shape. profile.urn is urn:li:fsd_profile:<profileId> for a member and urn:li:fsd_company:<companyId> for an organization page.
string
The author’s profile id (ACoAA…), the same value as profileId in Fetch Profile. Members only: omitted when an organization page published the post.
array
The members and companies tagged in the text. Empty when there are none.
object
The quoted post in full, when the post quotes another one (resharedPostUrn is then set too). Its reactionCount, commentCount and sharesCount are included when the source provides them, which it usually does on this endpoint.
array
Every image of the post (url, width, height). imageUrl is the first.
object
Video attached to the post, or null. videoUrl mirrors video.url.

Reposts

A repost without commentary has an activity URN of its own. Pass it and it comes back exactly as Get Posts returns it with includeReposts=true: postType is "repost", content is "", author and profile are the reposter (also named in repostedBy), the item carries no counts of its own, and the original post is under resharedPost. A repost with commentary is a post of its own: its text is in content and the post it quotes is under resharedPost.

Example Request

Example Response

Trimmed to the fields documented above; the response carries every field of a Get Posts item.

Errors

See Error Handling for the full list of error codes and recommended handling.
  • 400 — MISSING_PARAMETER, INVALID_URN
  • 401 — INVALID_API_KEY
  • 404 — POST_NOT_FOUND: the post does not exist, was deleted, or is not publicly visible
  • 402 — QUOTA_EXHAUSTED
  • 429 — RATE_LIMITED
  • 500 — INTERNAL_ERROR
  • 503 — SERVICE_UNAVAILABLE

Notes

This endpoint consumes 1 credit from your credit balance per API call. Errors are free — with one exception: a 404 not found costs 1 credit. See Quotas.
Need the comments, reactions or reposts too? Pass the same postUrlOrUrn to Get Post Comments, Get Post Reactions or Get Post Reposts.

Authorizations

X-API-Key
string
header
required

Query Parameters

postUrlOrUrn
string
required

Professional post URL or URN: urn:li:activity:<id>, urn:li:ugcPost:<id>, urn:li:share:<id>, or any post URL containing one. All three URNs of a post return the same post, with id set to its activity URN. Anything else is a free 400 INVALID_URN.

Example:

"urn:li:activity:7524292314127810561"

Response

The post, as one item of GET /api/v1/posts

id
string

Activity URN. References the post in the urn:li:activity:* namespace.

Example:

"urn:li:activity:1234567890"

shareUrn
string

Share URN. References the same post as id but in the urn:li:share:* or urn:li:ugcPost:* namespace (depends on the post type).

Example:

"urn:li:ugcPost:7123456789012345678"

content
string
Example:

"This is a post content..."

date
string<date-time>
reactionCount
integer

Omitted on a repost item, which has no counts of its own.

commentCount
integer

Omitted on a repost item, which has no counts of its own.

sharesCount
integer

Number of times the post was reshared. Omitted on a repost item, which has no counts of its own.

imageUrl
string
videoUrl
string
profile
object
resharedPostUrn
string

Set when the author reshared someone else's post WITH their own commentary: the URN of the quoted post, which is also returned in full as resharedPost. Absent on an original post, so !resharedPostUrn selects originals only. Also set on a repost item (includeReposts=true).

Example:

"urn:li:activity:7123456789012345670"

postType
enum<string>

Kind of content attached to the post. 'article' means a link preview card is attached; long-form articles the member published are NOT returned by this endpoint. 'job', 'event' and 'celebration' are shared cards, detailed in the object of the same name. 'repost' is a repost without commentary, returned only with includeReposts=true.

Available options:
text,
image,
document,
article,
linkedinVideo,
job,
event,
celebration,
repost
Example:

"image"

shareUrl
string

Public permalink to the post.

Example:

"https://www.linkedin.com/posts/williamhgates_my-time-in-rwanda-..."

reactionsByType
object

Reaction counts broken down by type. Only the types the post actually received are present, and they sum to reactionCount. Keys: like, praise, empathy, interest, appreciation, entertainment, superLike. Omitted on a repost item, and on a quoted post whose counts the source did not provide.

Example:
images
object[]

Every image of the post with its dimensions (empty for non-image posts). imageUrl is the first one, kept for backward compatibility.

video
object | null

Video attached to the post, or null. videoUrl mirrors video.url.

authorProfileId
string

Author id, the same value as the profileId returned by /profile.

Example:

"ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"

authorType
enum<string>

Whether the post was published by a member or by an organization page.

Available options:
Person,
Company
Example:

"Person"

permissions
object

What the post allows, as published.

author
object

Who published the item, member or organization page. On a repost item it is the reposting profile; inside resharedPost, the original author.

mentions
object[]

The members and companies tagged in the text, one entry each. Empty when there are none.

contentAttributes
object[]

Annotated ranges of content: tags, mentions, hashtags and links. start and length index into content.

job
object

The shared job, on postType: "job". Each field is present when the card carries it.

event
object

The shared event, on postType: "event". Each field is present when the card carries it. No timestamp is available for the event.

celebration
object

The celebration card, on postType: "celebration". Each field is present when the card carries it.

resharedPost
object

The quoted post in full, whenever resharedPostUrn is set: the same shape as an item of posts. Its reactionCount, commentCount, sharesCount, reactionsByType and reactionTypeCounts are OMITTED when the source did not provide them - usually the case for a quoted post - never reported as 0.

repostedBy
object

Only on a postType: "repost" item: who reposted.