Template: Publish a LinkedIn Post using RapidAPI + n8n HTTP Request

Publish LinkedIn Posts from n8n using RapidAPI (Simple 2-Node Workflow)

Since n8n does not have a native LinkedIn integration, here is a simple workflow template that lets you publish LinkedIn posts using a RapidAPI endpoint.

This allows you to automate:

  • Scheduled LinkedIn posts
  • Auto-post new blog content
  • Cross-post from Notion, Google Sheets, RSS, Airtable, etc.
  • Publish text updates to your personal profile

This workflow uses a REST endpoint exposed through RapidAPI, so the setup is extremely simple.


:locked_with_key: Before You Begin — Subscribe to the API on RapidAPI

To use this workflow, you must subscribe to the API on RapidAPI:

:backhand_index_pointing_right: https://rapidapi.com/shamiroxs/api/post-to-linkedin

Once subscribed, RapidAPI will give you two required values:

  • X-RapidAPI-Key
  • X-RapidAPI-Hostpost-to-linkedin.p.rapidapi.com

You must add your key to n8n:

In n8n → Settings → Variables

RAPIDAPI_KEY = your_rapidapi_key
RAPIDAPI_HOST = post-to-linkedin.p.rapidapi.com
LINKEDIN_ACCESS_TOKEN = your_linkedin_oauth_token

:rocket: What This Workflow Does

  1. Prepares a LinkedIn post payload
  2. Sends it to the RapidAPI endpoint
  3. The RapidAPI endpoint forwards it to the official LinkedIn UGC API
  4. LinkedIn publishes the post and returns the post ID

Works for any text-based LinkedIn post.


:wrench: RapidAPI Endpoint Used

POST https://post-to-linkedin.p.rapidapi.com/post-to-linkedin

Required Body Fields

{
  "author": "urn:li:person:YOUR_PERSON_ID",
  "text": "Your LinkedIn post content",
  "visibility": "PUBLIC",
  "access_token": "YOUR_LINKEDIN_ACCESS_TOKEN"
}

:inbox_tray: n8n Workflow Template (Import This JSON)


:puzzle_piece: Customization Ideas

You can replace “Set Post Payload” with any trigger:

  • Cron → schedule posts
  • RSS Feed → auto-post new articles
  • Google Sheets → post rows as updates
  • Notion Database → publish content
  • Twitter or Reddit → cross-post elsewhere
1 Like