linkedin

n8n community node for LinkedIn — posts (text, article, single/multi image carousel) with built-in image upload pipeline (initializeUpload + dms-upload + publish in one operation).

Package Information

Released: 4 mo ago
Downloads: 25 weekly / 90 monthly
Latest Version: 0.1.3
Author: xNkee

Documentation

@xnkee/n8n-nodes-linkedin

n8n community node for LinkedIn — posts (text, article, single/multi image carousel) with a built-in image upload pipeline that does initializeUpload + dms-upload + publish in one operation.

npm version

Installation

In your self-hosted n8n instance:

  1. Open Settings → Community Nodes.
  2. Click Install.
  3. Enter @xnkee/n8n-nodes-linkedin and confirm.

Or install via npm in your n8n custom directory:

npm install @xnkee/n8n-nodes-linkedin

Credentials

This node uses LinkedIn OAuth2 API (3-legged authorization code).

Default scopes: w_member_social w_organization_social r_liteprofile.

You'll need:

  • Client ID and Client Secret from your LinkedIn Developer App.
  • Redirect URL configured in the app, pointing to your n8n's OAuth callback.

The credential exposes a configurable LinkedIn-Version field (default 202509) so you can update the API version without rebuilding the package.

Resources & Operations

Post

  • Create Text Post — text-only.
  • Create Article Post — text + URL preview.
  • Create Image Post — text + 1 or more images. Adds items via a collection where each item is an image URL + optional alt text. Internally:
    • For each image: POST /rest/images?action=initializeUpload → GET <imageUrl> → PUT <uploadUrl>.
    • Then POST /rest/posts with content.media (single) or content.multiImage.images[] (carousel).
    • Returns the created post URN (extracted from the X-RestLi-Id response header).
  • Get Post — fetch by URN.
  • Delete Post — remove by URN.

Image

  • Initialize Upload — only the first step (initializeUpload). Returns uploadUrl + image URN for advanced flows.
  • Upload From URL — full pipeline: initializeUpload + download from external URL + PUT to LinkedIn. Returns the image URN.

Author URN

All operations require an Author URN in full form:

  • Person: urn:li:person:<id>
  • Organization: urn:li:organization:<id>

Development

npm install
npm run build      # tsc + copy icons
npm run dev        # tsc --watch
npm run lint
npm run lintfix

License

MIT — see LICENSE.md.

Discussion