apublished

Instagram's posting API, explained for developers

Meta's Instagram Content Publishing API lets your app publish photos, carousels, Reels and Stories to Instagram professional accounts. You need a Meta app that passes App Review, and you work in two steps: create a media container, then publish it. Personal accounts cannot be published to at all.

Meta's API, piece by piece

Two products, one name

Meta runs two Instagram APIs, and their tokens differ. "Instagram API with Instagram Login" issues a 60-day token that you refresh. The other path goes through Facebook Login and publishes with the token of the linked Facebook Page, which does not expire on a timer. apublished uses the second, because it shares one app and one App Review with Facebook Pages. If you also post to Facebook, that is the path to look at first.

On the Facebook Login path, the Instagram account must be a professional account linked to a Facebook Page. Writes use the Page token and reads use the user token, so you hold both.

Permissions and review

The scopes apublished requests for publishing are instagram_basic, instagram_content_publish and pages_manage_posts, plus pages_show_list, business_management and instagram_manage_insights for reading. Every one goes through Meta App Review. Business verification and a screen recording of your user flow are part of it.

A lesson from our own submission: request only what you use. Over-requesting is one of Meta's named reasons for rejection, and adding a scope later means another review. That is why apublished does not request the comment permission, and so cannot post a first comment.

Containers

Publishing is asynchronous. You create a container that points at the image or video by URL; Instagram fetches the file itself, so it must be publicly reachable. You poll the container's status until it is ready, then publish. Containers expire after 24 hours. Plan a few minutes for a Reel to be processed.

What the API accepts

As of November 2026, from Meta's developer pages:

ContentRules
PhotoJPEG only, 8 MB, aspect ratio 4:5 to 1.91:1
CarouselUp to 10 items, photos and videos can be mixed; counts as one post
ReelMOV or MP4, H.264 or HEVC, 3 s to 15 min, 300 MB, moov atom at the front
StoryOne image or one video; video 3 to 60 s, 100 MB
Caption2,200 characters
Volume100 API-published posts per account in a moving 24 hours

Gaps between app and API catch people: carousels take 20 items in both the app and, since recently, the API (apublished still caps them at 10); the app records 20-minute Reels, the API stops at 15. Shopping tags and filters are not supported through the API, and links in captions are not clickable. Instagram's help center now limits posts to 5 hashtags. More on Instagram Reel size and Instagram video size.

Rules on automation

Instagram's Terms of Use forbid accessing or collecting information "in an automated way without our express permission". The Content Publishing API is that permission. Scripts that log in with a password and drive the app are not.

Instagram Reels API: anything special?

A single feed video goes out as a Reels container. There is no separate Reels product. The decisions are the same as above, plus the Reels limits in the table. A Story is a different placement, and the API allows one item per story: there is no story carousel.

Building it yourself vs a publishing API

Meta's API directlyPublishing API
App ReviewYours, with recordingsDone by the provider
Media hostingYou serve a public URLThe provider stores and serves it
Container pollingYour codeHandled
CostFreeSubscription
TikTok, YouTubeSeparate integrationsSame request, more targets

Go direct if Instagram is the core of your product. Use a provider if it is one channel among several, or if a review queue would hold up your launch.

The same post through apublished

One validation call checks the post against Instagram's rules for that account:

curl -X POST https://apublished.com/v1/posts:validate \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{
    "body": { "items": [{ "text": "Hello" }] },
    "targets": [{ "channelId": "…", "settings": { } }]
  }'

For Instagram, settings takes placement: FEED or STORY. The response lists exact violations with actual and allowed values, for example a PNG where JPEG is required or a story with two images. Then POST /v1/posts with the same body and an Idempotency-Key creates it, now or at a time you set. Videos are uploaded through POST /v1/media or fetched with POST /v1/media:from-url, then referenced by id. Meta's API has no scheduling for Instagram; apublished holds the post until its time.

After publishing, the caption can be edited and the post deleted. Views, reach, likes, comments, saves and shares are collected per post and shown in the web app.

apublished is a Swiss product billed in Swiss francs: CHF 19 a month for one account, API on every plan, 7-day free trial, no free plan. Other APIs covering Instagram include Ayrshare, Upload-Post and Zernio (their docs read on 11 November 2026; Ayrshare and Upload-Post state a cap of 50 Instagram posts a day, Zernio 100); compare them on social media API. For assistant-driven posting instead of code, see Instagram MCP.

FAQ

Can I post to a personal Instagram account through the API? No. Only professional accounts, and on the Facebook Login path, one linked to a Page.

Why does my image fail? Most often it is not JPEG. Extended formats such as MPO are refused too.

Is there an Instagram scheduling API? Not for Instagram posts. You, or your provider, send at the right time.

How many posts per day? 100 per account in any 24 hours. A carousel counts as one.

Sources

Published November 21, 2026

Read next