# PubNio publishing API for Instagram

Human page: https://pubnio.com/platforms/instagram
MCP guide: https://pubnio.com/instagram-mcp.md

## Summary

PubNio's Instagram Publishing API handles Feed posts, Carousels, Reels, and Stories with durable container polling, preflight media validation, weekly queues, and normalized Instagram post analytics. Connect unlimited Instagram Professional accounts at $0 per account and pay only when a post is confirmed live.

PubNio is a third-party service. Availability depends on platform approval and account permissions.

## Capabilities & limits

| Capability | Details |
| --- | --- |
| Supported placements | Feed, Carousel, Reel, Story |
| Account prerequisite | Instagram Business or Creator account linked via Meta OAuth |
| Media handling | Imported by HTTPS or uploaded for delivery; container polling handled automatically |
| Post analytics | Live lifetime totals & daily observations |
| Pricing | $0/account; 100 free confirmed publishes/mo, then $5/1k (or Pro $29 / Platform $149) |

## OAuth & prerequisites

- Instagram publishing requires a Business or Creator account linked to an authorized Facebook Page or Instagram Login flow.
- PubNio tracks container readiness and reports typed errors if media dimensions or codecs fail provider checks.

## Preflight validation

- Enforces media presence on all Instagram placements (Instagram does not accept text-only posts).
- Validates caption length, carousel item counts, and media readiness before submission.
- Verifies account token readiness before consuming provider rate limits.

## TypeScript SDK example

```ts
const media = await workspace.media.importUrl({
  url: "https://cdn.example.com/launch-reel.mp4",
});
const draft = await workspace.posts.create({
  isDraft: true,
  text: "Shipping weekly queues in one API call.",
  targets: [
    { accountId: instagramAccountId, placement: "reel", media: [{ mediaId: media.mediaId }] },
  ],
});
const job = await workspace.posts.publish(draft.postId, {
  idempotencyKey: "ig-reel-launch",
});
```

## CLI example

```sh
pnio posts create --draft --workspace $WORKSPACE_ID \
  --account $INSTAGRAM_ACCOUNT_ID --placement reel \
  --media $MEDIA_ID --text "Shipping weekly queues." --publish
```

## FAQs

### Does PubNio handle Instagram's two-step media container polling?

Yes. PubNio stages your media, creates the Instagram container, polls until ready, publishes, and emits a signed webhook with the confirmed post ID.

### Are Instagram Carousels, Reels, and Stories all supported?

Yes. Feed images/videos, multi-item Carousels, Reels, and Stories are supported placements in PubNio.
