App Logo
linkedin.com

Get LinkedIn post

Fetch a single LinkedIn post by its permalink. Returns url, urn, text, media, author (name, headline, url, type), postedAgo, reactions, comments, and reposts. If the URL has no post behind it — deleted, removed, or a wrong id — it says so straight away instead of stalling. Use get_post_comments for the thread and get_post_reactors for who reacted.

Input

postUrl required

LinkedIn post permalink, e.g. https://www.linkedin.com/posts/<slug>-<id>-<code>/ or https://www.linkedin.com/feed/update/urn:li:activity:<id>/. Query string is stripped. A sponsored post's permalink has no viewable page and will be refused.

Output

url required
urn optional

Displayed identity: signed in, from the reaction facepile (urn:li:activity:… or urn:li:ugcPost:…, may differ from the URL's id); signed out, the guest card's own data-activity-urn. Null only if that element doesn't render (rare) — not tied to a zero reaction count.

text optional

Commentary text; null on media-only posts — and on a quote-reshare with no commentary of its own (the quoted content is in quotedPost, never here). Signed out this is the LD articleBody, the full untruncated commentary.

media optional

video | image | document | none (best-effort; a multi-image carousel reads as image)

author optional
reposts optional

Null signed-out: the guest action bar renders no repost control and the LD carries no repost statistic, so the count is unobserved rather than zero.

comments optional
postedAgo optional
reactions optional
quotedPost optional

The embedded original when this post is a quote-reshare ('repost with thoughts'). Null when the post embeds no quoted update. On the SDUI shell the quoted author's headline is not extracted (null).

datePublished optional

ISO instant the post was published, from the signed-out page's schema.org block. Null on the signed-in shells, which render only a relative age — so when an exact time matters, a managed (signed-out) run is the one that has it.

Start building not clicking