LinkedIn Post Publisher - Text, Image & Video avatar

LinkedIn Post Publisher - Text, Image & Video

Pricing

from $50.00 / 1,000 published posts

Go to Apify Store
LinkedIn Post Publisher - Text, Image & Video

LinkedIn Post Publisher - Text, Image & Video

Publish LinkedIn posts via API: text, up to 5 images, or an MP4 video, on your personal profile or company page. Pass an access token and go - no browser, no scraping, no OAuth setup in your code.

Pricing

from $50.00 / 1,000 published posts

Rating

0.0

(0)

Developer

Alejandro Nappi

Alejandro Nappi

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

4 days ago

Last modified

Share

Publish a post to LinkedIn with one API call. Send text, up to 5 images, or an MP4 video to your personal profile or your company page, and get the URL of the published post back.

No headless browser, no scraping, no OAuth plumbing in your own code: you pass a LinkedIn access token, your text and your media URLs, and this Actor handles the whole upload flow of the official LinkedIn Posts API for you.

Use it to automate LinkedIn posting from Make, Zapier, n8n, a cron job, a CMS webhook, or your own backend — anywhere you can send an HTTP request.

What it does

  • Text-only posts, with hashtags and mentions.
  • Up to 5 images in a single post (JPG, PNG, GIF).
  • One MP4 video per post, up to 500 MB, multipart upload handled for you.
  • Alt text per image, for accessibility.
  • Personal profile (detected from your token) or company page.

How to use it

1. Get a LinkedIn access token

  1. Create an app at LinkedIn Developers and link it to a company page.
  2. Under Products, add Share on LinkedIn and Sign In with LinkedIn using OpenID Connect. To post as a company, also add Community Management API.
  3. Generate a token with the scopes you need:
To post on…Scopes
Your personal profilew_member_social, openid, profile
A company pagew_organization_social

LinkedIn tokens last 60 days — generate a new one when it expires.

2. Run the Actor

Minimal input:

{
"accessToken": "AQV...",
"text": "Hello LinkedIn 👋"
}

With images:

{
"accessToken": "AQV...",
"text": "Three shots of the new dashboard #product",
"mediaUrls": [
"https://example.com/1.png",
"https://example.com/2.png",
"https://example.com/3.png"
],
"altTexts": ["Overview", "Metrics detail", "Settings"]
}

With video:

{
"accessToken": "AQV...",
"text": "How we built it",
"mediaUrls": ["https://example.com/demo.mp4"]
}

To publish as your company page instead of your profile, add organizationId — it works the same with text, images, or video:

{
"accessToken": "AQV...",
"text": "How we built it",
"mediaUrls": ["https://example.com/demo.mp4"],
"organizationId": "5515715"
}

3. From your code

curl -X POST "https://api.apify.com/v2/acts/3_ralen~linkedin-publisher/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"accessToken":"AQV...","text":"New release 🚀 #apify"}'

The response comes back once the post is live.

Input

FieldRequiredDescription
accessTokenYour LinkedIn access token (see above).
textThe post text. Supports #hashtags and mentions like @[Name](urn:li:organization:123).
mediaUrlsPublic URLs: up to 5 images or a single MP4 video.
altTextsAlt text, in the same order as mediaUrls.
organizationIdNumeric ID of the company page. Leave empty to post on your personal profile.
visibilityPUBLIC (default) or CONNECTIONS (your 1st-degree connections only, personal profile only).

You need either text or mediaUrls — or both.

Output

{
"postId": "urn:li:share:6844785523593134080",
"url": "https://www.linkedin.com/feed/update/urn:li:share:6844785523593134080/",
"author": "urn:li:person:abc123",
"media": ["urn:li:image:C4E10AQFoyyAjHPMQuQ"]
}

Available in the dataset and under the OUTPUT key of the key-value store.

Use cases

  • Auto-post new content — publish to LinkedIn whenever your blog, YouTube channel, or newsletter goes out.
  • Schedule posts — pair it with an Apify schedule to post at the best time, without a social media tool subscription.
  • Cross-post from another platform — take the text and media you already published elsewhere and mirror it on LinkedIn.
  • Company page automation — let your CRM, CMS, or internal tool post as your organization.
  • AI content pipelines — have an LLM draft the copy and let this Actor publish it.

FAQ

Can I mix images and video? No — LinkedIn doesn't allow it. Either several images or one video.

How long does a video post take? LinkedIn processes video asynchronously. The Actor retries publishing for up to ~4 minutes while processing finishes; a small MP4 usually goes through in under 30 seconds.

I get a 403 error. Your token is missing a scope (w_member_social or w_organization_social), or your user is not an admin of the company page.

I get a 426 error. The LinkedIn API version this Actor targets was retired. Open an issue and it will be bumped.

Is my token stored? No. It is only used during the run. Mark it as secret in the input so Apify keeps it encrypted.

Not supported yet

Documents (PDF/carousel), polls, scheduled posts, group posts, and reshares.