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.
Before You Begin — Subscribe to the API on RapidAPI
To use this workflow, you must subscribe to the API on RapidAPI:
https://rapidapi.com/shamiroxs/api/post-to-linkedin
Once subscribed, RapidAPI will give you two required values:
- X-RapidAPI-Key
- X-RapidAPI-Host →
post-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
What This Workflow Does
- Prepares a LinkedIn post payload
- Sends it to the RapidAPI endpoint
- The RapidAPI endpoint forwards it to the official LinkedIn UGC API
- LinkedIn publishes the post and returns the post ID
Works for any text-based LinkedIn post.
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"
}
n8n Workflow Template (Import This JSON)
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