LinkedIn Pages

Usage Instructions

Manage LinkedIn Company Pages you administer through the Community Management API. Publish Page posts with text, an article link, or up to 20 images; list, read, and delete Page posts; read comments and reply as the Page; and pull organic impressions, clicks, and engagement. Requires a LinkedIn app approved for the Community Management API.

Actions

LinkedIn Post as Page

Publish an organic post on a LinkedIn Company Page: text only, text with an article link, or text with 1–20 images uploaded through the Images API

Input

ParameterTypeRequiredDescription
organizationstringYesOrganization ID or URN of the Page to post as (urn:li:organization:{id})
textstringYesPost text (max 3000 characters)
textFormatstringNoplain (default) escapes LinkedIn's reserved little-text characters so the text appears as written, keeping #hashtags; little sends the text as-is so @[Name](urn) mentions work
visibilitystringNoPUBLIC (default) or LOGGED_IN (signed-in members only)
feedDistributionstringNoMAIN_FEED (default) or NONE to keep the post out of the feed
disableResharebooleanNoPrevent members from resharing the post
articleUrlstringNoLink to share as an article card. LinkedIn does not scrape it, so set a title
articleTitlestringNoArticle card title (required with an article URL)
articleDescriptionstringNoArticle card description
articleThumbnailfileNoOptional JPG, PNG, or GIF thumbnail for the article card
imagesfile[]NoJPG, PNG, or GIF images (1 for a single-image post, 2–20 for a multi-image post). Cannot be combined with an article link
imageAltTextstringNoAlt text applied to the attached images

Output

ParameterTypeDescription
postIdstringURN of the created post (urn:li:share:… or urn:li:ugcPost:…)
postUrlstringFeed URL of the created post
authorstringOrganization URN the post was published as
contentTypestringtext, article, image, or multiImage
imageUrnsarrayImage URNs uploaded for the post

LinkedIn List Page Posts

List posts authored by a LinkedIn Company Page, newest first (organic and sponsored)

Input

ParameterTypeRequiredDescription
organizationstringYesOrganization ID or URN (urn:li:organization:{id})
countnumberNoPosts per page (default 10, max 100)
startnumberNoIndex of the first post (default 0); use paging.nextStart for the next page
sortBystringNoLAST_MODIFIED (default) or CREATED, both descending
viewContextstringNoREADER (default) or AUTHOR to include unpublished versions

Output

ParameterTypeDescription
postsarrayPosts authored by the Page

LinkedIn Get Post

Retrieve a LinkedIn post by its share or ugcPost URN

Input

ParameterTypeRequiredDescription
postUrnstringYesPost URN, e.g. urn:li:share:6844785523593134080 or urn:li:ugcPost:…
viewContextstringNoREADER (default) returns the published version; AUTHOR returns the latest version, including drafts and posts still processing

Output

ParameterTypeDescription
postobjectThe post

LinkedIn Delete Post

Delete a LinkedIn post by URN. Deletion is idempotent: deleting an already deleted post also succeeds

Input

ParameterTypeRequiredDescription
postUrnstringYesURN of the post to delete (urn:li:share:… or urn:li:ugcPost:…)

Output

ParameterTypeDescription
deletedbooleanWhether LinkedIn confirmed the deletion
postUrnstringURN of the deleted post

LinkedIn Get Post Comments

List comments on a LinkedIn post, or replies to a comment when given a comment URN

Input

ParameterTypeRequiredDescription
postUrnstringYesPost URN (urn:li:share:… or urn:li:ugcPost:…), or a comment URN to list its replies
countnumberNoComments per page (default 10, max 100)
startnumberNoIndex of the first comment (default 0)

Output

ParameterTypeDescription
commentsarrayComments on the post or replies to the comment

LinkedIn Comment as Page

Comment on a LinkedIn post, or reply to a comment, as a Company Page you administer

Input

ParameterTypeRequiredDescription
organizationstringYesOrganization ID or URN the comment is published as
postUrnstringYesURN of the post that holds the conversation (urn:li:share:… or urn:li:ugcPost:…)
textstringYesComment text
parentCommentUrnstringNoComment URN to reply to (urn:li:comment:(…)); omit to comment on the post itself

Output

ParameterTypeDescription
commentobjectThe created comment

LinkedIn Get Page Post Statistics

Get organic impressions, clicks, likes, comments, shares, and engagement for a Company Page: lifetime totals, daily or monthly buckets over a date range, or lifetime totals for specific posts (rolling 12-month window)

Input

ParameterTypeRequiredDescription
organizationstringYesOrganization ID or URN (the member must be a Page ADMINISTRATOR)
postUrnsstringNoComma-separated share or ugcPost URNs for per-post lifetime statistics (max 20). Cannot be combined with a time range
timeGranularitystringNoDAY or MONTH buckets for time-bound statistics (default DAY when a range is set)
startTimestringNoInclusive range start as epoch milliseconds or an ISO-8601 date
endTimestringNoExclusive range end as epoch milliseconds or an ISO-8601 date

Output

ParameterTypeDescription
statisticsarrayOne element for lifetime totals, one per time bucket, or one per requested post. Posts with no activity are omitted and can be read as all zeros

LinkedIn List Administered Pages

List the LinkedIn Company Pages the connected member holds an approved role on (ADMINISTRATOR by default)

Input

ParameterTypeRequiredDescription
rolestringNoPage role to filter by: ADMINISTRATOR (default), CONTENT_ADMINISTRATOR, DIRECT_SPONSORED_CONTENT_POSTER, ANALYST, CURATOR, RECRUITING_POSTER, LEAD_CAPTURE_ADMINISTRATOR, or LEAD_GEN_FORMS_MANAGER
startnumberNoIndex of the first result (default 0)
countnumberNoResults per page (default 10, max 100)

Output

ParameterTypeDescription
organizationsarrayPages the member holds the requested role on
↳ organizationUrnstringOrganization URN (urn:li:organization:{id})
↳ organizationIdstringNumeric organization ID
↳ rolestringPage role
↳ statestringRole state (APPROVED)
↳ roleAssigneestringMember person URN