> ## Documentation Index
> Fetch the complete documentation index at: https://docs.postsyncer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Post to Instagram

> What an Instagram account takes through the API: feed posts, carousels, Reels, trial Reels, Stories and collaborators, media limits, first comments, deletes, comments and analytics.

An Instagram account has `platform` `instagram`. It posts feed photos, carousels, Reels and Stories. Every Instagram post needs a photo or a video.

## What you can post

`settings.post_type` picks the kind of post:

| `post_type` | One photo | One video | Several files |
| - | - | - | - |
| `POST` (the default) | A feed photo | A Reel | A carousel |
| `REELS` | A feed photo | A Reel | A carousel |
| `STORIES` | A Story | A Story | Refused: a Story takes one file |

A carousel can mix photos and videos.

## Settings

Every key is optional. [Create a post](https://docs.postsyncer.com/api-reference/posts/create.md#platform-specific-settings) has the full list.

| Key | What it does |
| - | - |
| `post_type` | `POST`, `REELS` or `STORIES`, as above. |
| `caption` | Instagram's own caption, instead of the post's text. |
| `reel_trial_enabled` | Publish a single video as a trial Reel, shown to non-followers first. Ignored for photos, carousels and Stories. |
| `graduation_strategy` | After the trial: `MANUAL` (the default, you decide in Instagram) or `SS_PERFORMANCE` (Instagram shares it with your followers if it does well). |
| `collaborators` | Up to 3 Instagram usernames to invite. Each one accepts in Instagram, then the post shows on their profile too. Not on Stories. A fourth name answers `422`. |
| `media` | This account's own media library ids, instead of the post's media. |

## Text

The caption takes 2,200 characters. PostSyncer cuts a longer caption to 2,200 when it's sent.

## Media

| | Limit |
| - | - |
| Files in one post | Up to 20 photos and videos |
| Photo | Up to 8 MB |
| Reel | 3 seconds to 15 minutes, up to 300 MB |
| Story video | 3 to 60 seconds, up to 100 MB |
| Video in a carousel | 3 to 60 seconds |
| Video types | MP4, MOV, WebM |

* Photos of any type are converted to JPEG when Instagram needs it.
* A feed photo is cropped from the center to the nearest of 4:5, 1:1 or 1.91:1, and sized to 1080 pixels wide. In a carousel, every photo takes the first photo's shape.
* A WebM video, or one outside Instagram's limits (wider than 1920 pixels, outside 23 to 60 frames a second, not H.264 or HEVC with AAC sound, or over 25 Mbps), is re-encoded to MP4 before it's sent. Its length can't be changed: a video of the wrong length is refused.
* Set a video's cover with `cover_image` on the first item: a `thumbnail` picture, which applies to a Reel only (on a Story it's left out, with a `thumbnail_error` note), or `video_cover_timestamp_ms` to use a frame of the video. A video in a carousel keeps Instagram's own cover. See [Video covers](https://docs.postsyncer.com/guides/media.md#video-covers).

## More than one item and first comments

* Instagram has no threads. The items are joined into one caption, with blank lines between them.
* A first comment (`is_first_comment: true`) is a comment under the post, `first_comment_delay` minutes after it goes out (1 when you leave it out). It's text only: a first comment with media answers `422`.

## Delete a post

Instagram can't delete posts through its API. Deleting the post in PostSyncer removes PostSyncer's copy only: delete it in Instagram too.

## Comments

* Instagram sends new comments to PostSyncer as they're written. There's no scheduled read.
* Replies go out from the account, as text. Media on a reply isn't sent to Instagram.
* Hide works, and `"hidden": false` shows a comment again.
* Delete works: the comment is deleted on Instagram.

## Analytics

Instagram gives `impressions`, `likes`, `comments`, `shares`, `saves`, `reach` and `profile_visits`. See [Read analytics](https://docs.postsyncer.com/guides/analytics.md).

## Example

A draft Reel, posted as a trial Reel with one collaborator:

```json theme={null}
{
  "workspace_id": 4815,
  "schedule_type": "draft",
  "content": [
    {
      "text": "How we pour a rosetta.",
      "media": ["https://cdn.postsyncer.com/examples/rosetta-pour.mp4"]
    }
  ],
  "accounts": [
    {
      "id": 16235,
      "settings": {
        "post_type": "REELS",
        "reel_trial_enabled": true,
        "collaborators": ["millstreetbakery"]
      }
    }
  ]
}
```

## Related

> [card] [Facebook](https://docs.postsyncer.com/platforms/facebook.md)
>
> Pages, Reels and Stories on Facebook.

> [card] [Compare the 12 networks](https://docs.postsyncer.com/platforms/overview.md)
>
> How Instagram differs from the other networks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.