Publish posts, images, and videos to LinkedIn via the PostPeer API.
Overview
Publish text posts, images, videos, and articles to LinkedIn personal profiles and company pages. PostPeer handles OAuth, token management, and LinkedIn's media upload process.
Quick Start
1. Connect a LinkedIn Account
Response:
Redirect the user to the url. After authorization, the account is connected to your project.
2. Get the Account ID
Find the integration with "platform": "linkedin" and note the id.
3. Publish a Post
Response:
Features
Text Posts
Post text updates up to 3,000 characters.
Images & Videos
Attach media using the mediaItems array:
Supported media:
- Images: JPG, PNG, GIF (up to 9 per post)
- Videos: MP4 (1 per post, up to 5 GB)
Visibility
Control post visibility using platformSpecificData.visibility:
"PUBLIC"(default) — visible to everyone"CONNECTIONS"— visible to connections only
Limits
| Limit | Value |
|---|---|
| Character limit | 3,000 per post |
| Images per post | 9 |
| Videos per post | 1 |
| Max video size | 5 GB |
| Max image size | 10 MB |