Get LinkedIn post
Input
postUrl requiredLinkedIn 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 requiredurn optionalDisplayed 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 optionalCommentary 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 optionalvideo | image | document | none (best-effort; a multi-image carousel reads as image)
author optionalreposts optionalNull 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 optionalpostedAgo optionalreactions optionalquotedPost optionalThe 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 optionalISO 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.
