Platform GuidesHow to Schedule LinkedIn Posts via API
How to Schedule LinkedIn Posts via API
Schedule LinkedIn posts programmatically with the SocialRails API. Covers character limits, formatting tips, media support, and code examples for automated LinkedIn posting.
Schedule LinkedIn posts programmatically using the SocialRails API. This guide covers character limits, text formatting, media support, code examples, and best practices for automated LinkedIn posting.
Character Limits
- Post text: 3,000 characters
- Article titles: 100 characters
- Comments: 1,250 characters
- Company page posts: 700 characters (recommended for feed visibility)
Supported Content Types
API Example
# Schedule a LinkedIn post
curl -X POST https://socialrails.com/api/v1/posts \
-H "Authorization: Bearer sr_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "3 things I learned building a public API this week:\n\n1. Rate limiting is harder than you think\n2. Good error messages save developer hours\n3. Documentation IS the product\n\nWhat would you add to this list?\n\n#API #DevExperience #BuildInPublic",
"platform": "linkedin",
"scheduled_for": "2026-03-04T08:30:00Z"
}'Formatting Tips
LinkedIn supports basic text formatting:
- Use line breaks (
\n) to create readable paragraphs - Bullet points with emoji or dashes improve readability
- Hashtags at the end of the post (3-5 max)
- Tag people with
@Name, though API posts can't create actual mention links - First 210 characters appear before the "see more" fold, make them count
Best Practices
- Optimal posting times: Tuesday-Thursday, 7-8am or 12pm
- Post length: 1,300-2,000 characters for maximum engagement
- Hashtags: 3-5 relevant hashtags at the end of the post
- Images: Posts with images get 2x the engagement
- Video: Native video gets 5x the engagement of links
- Engage with comments within the first hour to improve algorithm visibility
Rate Limits
LinkedIn API limits:
- 150 API calls per day per member
- 100 posts per day per organization page
- Images: 10MB max file size
SocialRails manages these limits and queues posts automatically.
Frequently Asked Questions
What is the character limit for LinkedIn API posts?
LinkedIn posts support up to 3,000 characters. For company page posts, LinkedIn recommends keeping text under 700 characters for maximum feed visibility. The first 210 characters appear before the 'see more' fold.
Can I schedule LinkedIn posts through an API?
Yes. The SocialRails API lets you schedule LinkedIn posts by sending a POST request to /api/v1/posts with the platform set to 'linkedin' and a scheduled_for timestamp. Posts are published automatically at the scheduled time.
Does LinkedIn support images and videos via API?
Yes. You can attach a single image (JPEG or PNG, up to 10MB) or a video (up to 10 minutes, 5GB max) to LinkedIn posts. Upload media first via the /api/v1/media/upload endpoint, then include the media key when creating your post.
How many LinkedIn posts can I schedule per day via API?
LinkedIn allows 150 API calls per day per member and 100 posts per day per organization page. SocialRails tracks these limits and queues posts automatically to stay within LinkedIn's rate limits.
Updated 2 days ago