Publish feed posts, reels, and carousels to Instagram via the PostPeer API.
Overview
Publish feed posts, reels, and carousels to Instagram through PostPeer's unified API. PostPeer handles the Instagram Graph API complexity, including the async media publishing flow.
Note: Instagram requires a Business or Creator account linked to a Facebook Page. PostPeer's OAuth flow handles this connection.
Quick Start
1. Connect an Instagram Account
Returns an OAuth URL for Facebook/Instagram authorization. The user must have an Instagram Business Account linked to a Facebook Page.
2. Get the Account ID
Find the integration with "platform": "instagram" and note the id.
3. Publish a Post
Response:
Features
Feed Posts
Single image or video posts with captions and hashtags. Instagram requires at least one media item — text-only posts are not supported.
Reels
Upload short-form vertical videos as Instagram Reels:
Carousels
Create carousel posts with up to 10 images or videos by passing multiple mediaItems:
Media Requirements
| Type | Formats | Aspect Ratios | Duration |
|---|---|---|---|
| Image | JPG, PNG | 1:1, 4:5, 1.91:1 | — |
| Video (feed) | MP4 | 1:1, 4:5 | 3-60 seconds |
| Video (reel) | MP4 | 9:16 | 3-90 seconds |
| Carousel | JPG, PNG, MP4 | 1:1 | Up to 10 items |
PostPeer validates media against these requirements before publishing.