Skip to content

LinkedIn termsUpdated

LinkedIn activity ID

Also called: LinkedIn post ID, activity URN, urn:li:activity

Definition

A LinkedIn activity ID is the long number that identifies one post in LinkedIn's feed. You'll find it in the post's link, after “activity-” in a /posts/ address or after urn:li:activity: in a /feed/update/ address.

Where to find the ID

Open the post, click the three dots (…) and choose Copy link to post. The number is part of whichever link format you end up with:

Where you see itExampleThe ID
Shared post linklinkedin.com/posts/name_topic-activity-7123456789012345678-AbCdThe digits after “activity-”
Feed linklinkedin.com/feed/update/urn:li:activity:7123456789012345678/The digits after urn:li:activity:
“Embed this post” code…/embed/feed/update/urn:li:share:7123456789012345…A share or ugcPost ID, which can be a different number

Activity ID vs share and ugcPost IDs

A single post can carry more than one identifier. The activity ID refers to the post as an item in the feed, while LinkedIn's Posts API identifies the content itself with a urn:li:share or urn:li:ugcPost URN. That's why the number in an embed code doesn't always match the one in the post link, even though both point to the same post.

The short code at the end of a /posts/ link (AbCd in the example) and any tracking parameters after a question mark aren't part of the ID.

What the ID is useful for

  • Dating a post: the LinkedIn post date extractor reads the ID to show when the post was published.
  • Embedding one post: the embed code generator reads it from a pasted link.
  • Pointing to a post exactly, in a support ticket, report or spreadsheet, without relying on a long tracking-laden URL.

Common mix-ups

  • Copying a profile link, a company page link or an lnkd.in short link instead of the post's own link.
  • Trimming digits off the end of the ID when shortening the URL.
  • Expecting an ID to open a connections-only post: visibility settings still apply.
  • Sharing links full of tracking parameters when the clean post link does the same job.

Related terms

LinkedIn URN
A LinkedIn URN (uniform resource name) is a text identifier in the form urn:li:{entityType}:{id}. LinkedIn uses URNs to name members, organizations, posts, images and other objects, for example urn:li:organization:12345 for a company.
LinkedIn repost
A LinkedIn repost shares someone else's public post with your own network. A plain repost passes it on unchanged; “Repost with your thoughts” adds your commentary on top, with the original post shown underneath.
Embed code
Embed code is a snippet of HTML you paste into a web page to display content hosted somewhere else, such as a video, a social media post or a widget. It's usually an iframe tag, a script tag with a placeholder element, or a combination.
oEmbed
oEmbed is an open format that lets a website turn a pasted link into embedded content. The site asks the content provider's oEmbed endpoint about the URL and gets back data such as a title, a thumbnail and, for rich content, ready-made HTML.

Show your LinkedIn on your website

Paste a LinkedIn URL and embed it with one snippet. Free plan, no credit card.

Create a free widget

Full glossary A–Z

Put your LinkedIn on your website today

Create your first widget in about two minutes. Free plan, no credit card required.