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:
A carousel can mix photos and videos. A
REELS post of photos alone is refused, as a draft too: Instagram would show it as a feed photo. Send a video, or POST to share the photos.
Settings
Every key is optional. Create a post has the full list.Text
The caption takes 2,200 characters. PostSyncer cuts a longer caption to 2,200 when it’s sent.Media
- 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 Story photo isn’t cropped. People tags move with the crop: see People tags.
- 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_imageon the first item: athumbnailpicture, which applies to a Reel only (on a Story it’s left out, with athumbnail_errornote), orvideo_cover_timestamp_msto use a frame of the video. A video in a carousel keeps Instagram’s own cover. See Video covers.
People tags
user_tags tags people in the post. Instagram tells them, and the post shows in the Tagged tab of their profile.
- Each tag has a
username(without@; an instagram.com profile link works too). A list of usernames, or one text with commas between them, also works. - On a photo,
xandysay where the person is: from0to1, from the top left of the file as you uploaded it. Give both or neither. - Feed and carousel photos are cropped to Instagram’s shape (see Media). The spot moves with the crop. A spot in the part cut off goes to the nearest edge, so the person stays tagged.
- A feed or carousel photo tag without a spot goes in the middle of the photo. A Story photo tag without a spot is sent without one.
- Videos and Reels take the usernames only.
- In a carousel, each tag goes on one file:
item(1for the first, the default) ormedia_id, the file’s media library id.media_idwins, so a tag stays on its photo when the files are moved. - Up to 20 people on one file, counted on the file each tag lands on. More, a name that isn’t a username, a spot outside
0to1, orxwithoutyanswers422. - A tag on a file the post no longer has isn’t sent. A tag Instagram refuses is left off, and the post still goes out. Either way, the post’s result carries a
setting_not_appliednote that names the people.
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_delayminutes after it goes out (1 when you leave it out). It’s text only: a first comment with media answers422.
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": falseshows a comment again. - Delete works: the comment is deleted on Instagram.
Analytics
Instagram givesimpressions, likes, comments, shares, saves, reach and profile_visits. See Read analytics.
Example
A draft Reel, posted as a trial Reel with one collaborator:Related
Pages, Reels and Stories on Facebook.
Compare the 12 networks
How Instagram differs from the other networks.