Instagram API for developers

Instagram’s API,
without the Meta work

Publish posts, carousels, Stories and Reels. Answer comments and DMs, turn comments into DMs and read insights. One API key, on OmniSocials’ approved Meta app.
Webhooksyour-app.com/hooks
post.scheduledpost 1024just now200
post.publishedpost 10192 h ago200
post.approvedpost 10193 h ago200
POST/v1/posts/createapplication/json
01{
02 "type": "reel",
03 "content": "Post from your own code: SDKs in 8 languages.",
04 "accounts": ["instagram"],
05 "media_urls": ["https://cdn.example.com/sdks.mp4"],
06 "schedule_at": "2026-10-22T18:00:00Z",
07 "instagram": {
08 "share_to_feed": true,
09 "thumb_offset": 3000,
10 "first_comment": "#instagramapi"
11 }
12}
Sending201 Created412 ms
Send
13{
14 "data": {
15 "id": "1024",
16 "status": "scheduled",
17 "app_url": "https://app.omnisocials.com/create-post/1024"
18 }
19}
A request creates an Instagram Reel for Thu at 18:00; it appears in the OmniSocials calendar and the webhook post.scheduled fires.
Your coding agent runs the same calls through the CLI

Skip the Meta app review

Instagram's own API needs a Meta app, five approved permissions and a publish flow. OmniSocials already did that work.

Every format, one request

Posts, carousels of up to 10, Stories and Reels share one request shape. Set the type, add media URLs and a time. OmniSocials checks the media against Instagram’s rules before it uploads.
Posts and carousels
One image, or up to 10 photos and videos in one carousel, with alt text per item and a first comment.
media_urlsinstagram.first_comment
Stories
Each media item goes out as its own Story, in order. Up to 10 slides and 60 seconds per video.
type: "story"
Reels
Pick the cover frame, add licensed audio, share it to the grid or post it as a trial Reel.
type: "reel"thumb_offsetshare_to_feed

Connect once, post from code

Sign in with Instagram once inside OmniSocials and create an API key. From then on, your code posts, replies and reports for that account.
Instagram Login
Business and Creator accounts sign in with Instagram. Publishing needs no Facebook Page.
A key per workspace
A key only reaches its own workspace. Inbox and automation access are switched on per key.
What each account can post
The accounts call lists every connected account with the formats it takes.
GET /v1/accountscontent_types
OmniSocials ConnectPrivate beta

Your customers' Instagram, inside your product

Soon your customers connect their own Instagram on one page with your logo, and you post, reply and report for each of them.
See OmniSocials Connect

Answer comments and DMs

List Instagram comments, DMs and mentions, then reply, hide or delete from your own code. The API checks Meta’s 24-hour DM window before it sends.
Comments
Reply under the comment, hide it or delete it. Each comment comes with the post it sits on.
/inbox/messages/:id/hide
DMs
Answer within Meta’s 24-hour window. Outside it the API says so with outside_messaging_window, before anything is sent.
/conversations/:id/reply
Mentions
Posts and comments that tag your account show up in the same list, ready for a reply.
type=mention

“The MCP is the real game changer for me. It makes the whole workflow feel much faster and less messy.”

Ansub Khan
Founder of Supafast

Turn comments into DMs

Put an automation on a post. Everyone who comments a keyword gets your DM, once, with an optional public reply under the comment. Instagram’s limits are built in.
Keyword triggers
Match a word in a comment, a DM or a Story reply, on one post or on the next post you publish.
trigger.keywordstrigger.kinds
A public reply too
Post one of your reply variations under the comment, so the thread shows that a DM went out.
actions.public_reply
Instagram’s rules built in
One private reply per comment, within 7 days. At most 700 DMs an hour per account, and each person gets the DM once.

Read what Instagram reports

Views, reach, likes, comments, saves and shares per post, and the account’s numbers per day. The API returns the same numbers the app charts.
Per post and per Reel
Views, reach, likes, comments, saves, shares, profile visits and follows, as Instagram reports them.
/analytics/posts/:id
Per account and workspace
A daily snapshot per connected account, and a workspace overview for 7, 30 or 90 days or your own dates.
/analytics/accounts/analytics/overview
Best times to post
Days and hours worked out from your own Instagram history, once 15 of your posts are analyzed.
/analytics/best-times
Under the hood

Built for production

Signed webhooks, automatic retries, SDKs in 8 languages and a key per workspace. Create a key and send your first request in minutes.
Webhooks
Signed events for every post
Retries
Failed posts retry on their own
SDKs
One request shape in 8 languages
API keys
One key per workspace
Agents
Your coding agent posts too

Instagram’s rules, in one place

OmniSocials checks every post against them before it reaches Meta, so a bad file fails in your request, not at publish time.
Caption2,200 characters, 5 hashtags
First comment2,200 characters, not on Stories
CarouselUp to 10 photos and videos
StoryUp to 10 slides, 60 seconds per video
VideoMP4 or MOV, up to 15 minutes and 300 MB
ImageJPEG, PNG or WebP, up to 8 MB
DM reply1,000 characters, within 24 hours
Replies1,000 a day per workspace
Rate limit100 requests a minute per API key
AccountsBusiness or Creator, Instagram Login

Your first Reel in three steps

About five minutes from sign-up to a scheduled Reel. Then hand the key to your coding agent.
Create an API key
Start your trial, open Settings, API and create a key. It is shown once.
Settings › API
Step 1
Connect Instagram
Sign in with Instagram in OmniSocials, once. Then list it from your code.
GET /v1/accounts
Step 2
Send your first Reel
Post now with create-and-publish, or add schedule_at to plan it.
POST /v1/posts/create
Step 3

Frequently
Asked Questions

Robert Ligthart
Robert LigthartFounder of OmniSocials
Ask me a question

Robert Ligthart
Still have a question?Ask Robert, the founder
Ask

Ship your Instagram
integration this week.

From $10 per seat a month, API included. 14-day free trial.
https://docs.omnisocials.com/platforms/instagram