# Instagram API without Meta Graph plumbing

Publish Instagram Reels, 20-item carousels, Stories, collaborators, people tags and first comments from one REST API with live comment webhooks.

Meta’s Instagram Graph API makes you juggle Page-linked tokens, two-step media containers, carousel child IDs, status polling loops and strict aspect-ratio rejections. PostSyncer turns Reels, Stories, mixed carousels, collaborators, people tags and live comments into one REST API.

**REST API:** https://postsyncer.com/api/v1 · **MCP server:** https://postsyncer.com/mcp · **Docs:** https://postsyncer.com/docs/platforms/instagram

## Example Instagram request

```bash
curl -X POST "https://postsyncer.com/api/v1/posts" \
  -H "Authorization: Bearer $POSTSYNCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workspace_id": 4815,
    "schedule_type": "schedule",
    "schedule_for": {
      "date": "2026-12-08",
      "time": "11:00",
      "timezone": "America/Los_Angeles"
    },
    "content": [
      {
        "text": "Behind the espresso bar: dialing in our spring Guji harvest.",
        "media": [
          "https://cdn.postsyncer.com/examples/rosetta-pour.mp4"
        ],
        "cover_image": {
          "thumbnail": "https://cdn.postsyncer.com/examples/rosetta-cover.jpg"
        }
      },
      {
        "text": "Full tasting notes and brew recipe linked in bio.",
        "is_first_comment": true,
        "first_comment_delay": 1
      }
    ],
    "accounts": [
      {
        "id": 16235,
        "settings": {
          "post_type": "REELS",
          "share_to_feed": true,
          "collaborators": [
            "millstreetbakery"
          ],
          "audio_name": "Morning Pour Ambient",
          "ai_generated": false
        }
      }
    ]
  }'
```

```json
{
  "id": 81412,
  "status": "SCHEDULED",
  "platforms": [
    {
      "account_id": 16235,
      "platform": "instagram",
      "status": "PENDING",
      "settings": {
        "post_type": "REELS",
        "share_to_feed": true,
        "collaborators": [
          "millstreetbakery"
        ]
      }
    }
  ],
  "skipped_accounts": [],
  "needs_media": []
}
```

## Quick start

1. **Connect Instagram accounts.** Link Instagram Business or Creator accounts inside PostSyncer or send clients a 7-day OAuth URL from POST /accounts/connect-links.

2. **Send Reels, Stories or carousels in one POST.** Choose post_type (POST, REELS or STORIES), attach up to 20 media URLs or library IDs, and pass collaborators, user_tags or a delayed first comment.

3. **Automate comments and track analytics.** Instagram pushes new comments to PostSyncer as they arrive. Reply, hide, unhide or delete via /comments and read reach, saves and profile_visits via /analytics.

## Instagram endpoints

- `POST /api/v1/posts` (`posts:create / schedule / publish`): Publish or schedule Instagram feed photos, mixed carousels (up to 20), Reels, Stories and timed first comments.

- `PUT /api/v1/posts/{id}` (`posts:update / schedule / publish`): Update a post: send workspace_id and the whole content, which replaces the old one, plus any collaborators, user_tags, post_type or publish time to change.

- `GET /api/v1/comments` (`comments:read`): Read live Instagram comments pushed by Meta webhooks without waiting for scheduled polling.

- `POST /api/v1/comments` (`comments:create`): Reply to an Instagram comment directly from the connected Business or Creator account.

- `PATCH /api/v1/comments/{id}/hide` (`comments:update`): Hide spam comments on Instagram or pass hidden: false to show them again.

- `GET /api/v1/analytics/posts/{id}` (`analytics:read`): Fetch impressions, likes, comments, shares, saves, reach and profile_visits.

## Instagram media and text specs

- **Carousel / files** (JPG, PNG, GIF, WebP, MP4, MOV, WebM, Up to 20 files): Carousels can mix photos and videos; every photo matches the first photo’s crop ratio.

- **Feed / Story photo** (JPG, PNG, GIF, WebP, Up to 8 MB): Converted to JPEG; feed photos auto-crop to 4:5, 1:1 or 1.91:1 at 1080px wide. Stories are not cropped.

- **Reel video** (MP4, MOV, WebM, 3s–15 min · 300 MB): Auto re-encoded to H.264/HEVC MP4 + AAC when outside 1920px, 23–60 fps or 25 Mbps.

- **Story video** (MP4, MOV, WebM, 1 file · 3s–60s · 100 MB): Stories accept exactly one photo or video; multiple files are refused.

- **Caption & first comment** (Plain text, 2,200 characters): First comments are text only; media on an Instagram first comment returns 422.

- **platform key:** instagram

- **Media required:** Yes — every Instagram post needs at least one photo or video.

- **First comment:** Supported as a text-only comment posted first_comment_delay minutes after publish (default 1).

- **Deleting posts:** Instagram’s API does not delete live posts; DELETE /posts/{id} removes PostSyncer’s copy only.

- **Comments API:** Live webhook push from Instagram; reply (text), hide, unhide (hidden: false) and delete supported.

- **Analytics metrics:** impressions, likes, comments, shares, saves, reach and profile_visits.

## Instagram capabilities and settings

Beyond basic image publishing, PostSyncer exposes Instagram’s native growth and collaboration controls without forcing you to manage Meta Graph container states.

- **Smart aspect-ratio cropping & tag preservation.** Feed and carousel photos automatically crop to 4:5, 1:1 or 1.91:1 at 1080px wide, and PostSyncer recalculates (x, y) people tag coordinates so tagged users stay inside the frame.

- **Mixed 20-item carousels.** Combine photos and 3–60 second videos in a single carousel with per-item user_tags pinned by media_id or 1-based item index so tags survive reordering.

- **Collaborators & non-follower Reel distribution.** Invite up to 3 Instagram collaborator usernames on feed posts, carousels and Reels, or enable reel_trial_enabled with graduation_strategy (MANUAL or SS_PERFORMANCE) to test Reels with non-followers first.

- **Custom Reel covers & audio naming.** Set a Reel cover image via cover_image.thumbnail or a frame via video_cover_timestamp_ms, toggle share_to_feed and name original audio with audio_name.

- **Delayed first comments.** Add a second content[] object with is_first_comment: true and first_comment_delay to keep hashtags, credits or calls to action cleanly out of the main caption.

- **Live comment webhooks & moderation.** New comments stream into PostSyncer in real time from Instagram so your app can reply, hide, unhide or delete comments through /comments endpoints.

- `post_type` ("POST" | "REELS" | "STORIES"): Selects feed/carousel (POST), Reels (REELS) or Stories (STORIES). Aliases like REEL and STORY are accepted.

- `caption` (string (cut at 2,200 chars)): Instagram-specific caption overriding the shared post text.

- `collaborators` (string[] (max 3)): Up to 3 Instagram usernames to invite as post or Reel collaborators (not available on Stories).

- `user_tags` (object[] (max 20/file)): Tag accounts with username plus optional photo coordinates (x, y from 0 to 1) and carousel item or media_id.

- `share_to_feed` (boolean): Reels only. Set false to publish only in the Reels tab; defaults to true.

- `audio_name` (string): Reels only. Custom name for the Reel’s original audio track.

- `reel_trial_enabled` (boolean): Publish a single video Reel to non-followers first before expanding to followers.

- `graduation_strategy` ("MANUAL" | "SS_PERFORMANCE"): Controls whether a non-follower Reel graduates manually or automatically on performance.

- `ai_generated` (boolean): Marks the post, Reel or carousel with Instagram’s Made with AI label.

- `media` (number[]): Use Instagram-specific media library IDs instead of the shared post media.

## Eliminating Meta Graph container loops and token headaches

Publishing a 10-slide mixed carousel or a Reel directly against the Instagram Graph API requires creating individual child containers, polling each container’s status_code until FINISHED, creating a parent carousel container, polling again, and finally calling media_publish — all while managing Facebook Page linkages and 60-day token refreshes.

PostSyncer collapses that entire choreography into one POST /api/v1/posts call. Your server sends the final creative URLs or library IDs and the desired schedule_for timestamp; PostSyncer creates containers, transcodes WebM or over-spec videos to compliant H.264 MP4 with AAC audio, and retries transient Meta API hiccups automatically.

## Coordinate-safe people tagging and carousel validation

Instagram rejects feed photos with unsupported aspect ratios and drops user tags whose coordinates fall outside the final frame. PostSyncer center-crops feed and carousel photos to the nearest supported ratio (4:5, 1:1 or 1.91:1) and shifts each user_tags (x, y) coordinate to match the crop, clamping edge tags cleanly so nobody disappears from the photo.

In carousels, pin tags by media_id instead of numeric item index whenever your app supports drag-and-drop slide reordering. If Instagram declines a specific username at publish time, the post still goes live and PostSyncer records a setting_not_applied note naming the skipped handle.

## Real-time Instagram comments and full funnel metrics

Unlike networks that require scheduled polling, Instagram pushes new comments directly to PostSyncer as they happen. Your application can subscribe to comment webhooks, list threads via GET /comments, post text replies via POST /comments, toggle visibility with PATCH /comments/{id}/hide (including hidden: false to unhide), or permanently remove comments via DELETE /comments/{id}.

For reporting dashboards, GET /analytics/posts/{id} returns impressions, likes, comments, shares, saves, reach and profile_visits in a consistent JSON envelope alongside your other connected networks.

## Run Instagram Reels, carousels and comments from an AI agent

Connect ChatGPT, Claude, Claude Code, Cursor or Codex to PostSyncer’s MCP server so your agent can schedule Reels, add collaborators, answer live Instagram comments and check saves and reach.

Related pages: [Instagram MCP](https://postsyncer.com/instagram-mcp), [Instagram scheduler](https://postsyncer.com/instagram-scheduler), [Unified social media API](https://postsyncer.com/unified-social-media-api).

## Limits and plans

| Plan | Social accounts | Posts | API posts a day, per network |
| --- | --- | --- | --- |
| Free | 2 | 20 a month | Within the 20 |
| Starter ($29 a month) | 10 | Unlimited | Unlimited |
| Pro ($49 a month) | 30 | Unlimited | Unlimited |
| Agency ($99 a month) | 100, then $1/mo each | Unlimited | Unlimited |

Every plan: 60 requests a minute for each PostSyncer user, across all their keys, the API and the MCP server together.

## FAQ

### Can the Instagram API publish Reels, Stories and mixed carousels?

Yes. Set settings.post_type to POST (feed photo or up to 20-item mixed carousel), REELS (single video or video carousel) or STORIES (single photo or 3–60s video).

### Does PostSyncer support Instagram collaborator invites and user tags?

Yes. Pass up to 3 usernames in settings.collaborators (feed, carousels and Reels) and up to 20 accounts per file in settings.user_tags with optional (x, y) photo coordinates.

### Can I schedule an Instagram first comment automatically?

Yes. Include a second item in content[] with is_first_comment: true and optional first_comment_delay in minutes (defaults to 1). Instagram first comments are text only.

### How quickly do Instagram comments appear in the API?

Instagram pushes new comments to PostSyncer as they are posted, so they appear without waiting for scheduled polling. You can reply, hide, unhide and delete comments via the /comments endpoints.

### Can I delete a live Instagram post via the API?

No. Meta’s Instagram Graph API does not allow third-party apps to delete published Instagram posts. DELETE /posts/{id} cancels scheduled posts and removes PostSyncer’s record.

### What happens if my video is WebM or above Instagram’s bitrate limit?

PostSyncer automatically re-encodes WebM files and videos over 1920px wide, outside 23–60 fps or above 25 Mbps into compliant MP4 before publishing. Video duration must already fit Instagram’s limits (3s–15m for Reels, 3s–60s for Stories and carousels).

---

Page: https://postsyncer.com/instagram-api · Updated 2026-11-27
