---
title: "Instagram API"
description: "Use Ayrshare's Instagram API to publish photos, reels, and stories, schedule them, and get analytics for your users, without waiting on Meta's app review."
canonical: https://www.ayrshare.com/instagram-api/
lastModified: 2026-10-29
pageType: landing
---

# Instagram API

> Use Ayrshare's Instagram API to publish photos, reels, and stories, schedule them, and get analytics for your users, without waiting on Meta's app review.

## Instagram API for Posting, Scheduling, and Analytics

Ayrshare's Instagram API lets developers publish photos, carousels, reels, and stories to Instagram Business and Creator accounts via a single REST endpoint. It supports scheduled posts, collaborators, comments, direct messages, boosted ads, and analytics across 14+ social networks through one integration.

Your users link their own Instagram Business or Creator accounts through an OAuth flow inside your product, on Ayrshare's approved Meta app. You don't need your own App Review or permission requests.

[Read the Instagram Docs](/docs/apis/post/social-networks/instagram)
[Get Your API Key](/pricing/)

- **>99.99%** — API uptime
- **30M+** — API calls per day
- **14+** — Social media networks
- **AI-Native** — Native MCP server for any AI agent

## What Do You Need to Use the Instagram API?

Meta's Instagram API is free to call, but it only publishes to professional accounts, and your app has to clear Meta's review first. You choose between two login flows with different permissions: Instagram Login (instagram_business_basic and instagram_business_content_publish) or Facebook Login (instagram_basic, instagram_content_publish, and pages_read_engagement, plus a linked Facebook Page). Each flow gives you different features.

With Ayrshare, you skip App Review and both login flows: your users link their accounts and you post on the same day.

- **Access**: A Meta developer app, App Review for the publishing permissions, and Business Verification when Meta asks for it. Your app then switches to Live mode to serve real users.
- **Cost**: Meta charges no usage fee. The cost is the review, token refresh logic, and keeping up with Meta's API versions.
- **Account types**: Instagram Business and Creator accounts. Personal accounts can't publish through Meta's API.
- **Key limits**: Meta caps API-published posts per account in a rolling 24 hours, and its crawler must be able to fetch every media URL you send.

## Post and Schedule to Instagram in Your Language

Each sample publishes a photo with hashtags now, then schedules a reel for later. Same endpoint, same JSON, in Node.js, Python, PHP, Java, Go, Ruby, C#, or plain cURL. Add a Profile-Key header to post for one of your users.

[Full Post API Reference](/docs/apis/post/overview)

- **cURL**
- **Node.js**
- **Python**
- **PHP**
- **Java**
- **Go**
- **Ruby**
- **C#**

## Instagram API Limits: Post Types, Media, and Characters

Meta's rules in one place. The full list lives in the [Instagram media guidelines](/docs/media-guidelines/instagram) and the [Instagram publishing options](/docs/apis/post/social-networks/instagram).

- **4 post types: photo, carousel, reel, story (Post types)**: Single photos, carousels of up to 10 images and videos, reels, and stories. Hashtags are clickable in the caption, links are not. Media can go out with an empty caption.
- **2 login flows: Instagram or Facebook (Accounts)**: Instagram Business and Creator accounts, linked directly with Instagram Login or through a connected Facebook Page. Stories publish from Business accounts only.
- **8 MB per image (Images)**: JPG, PNG, or GIF, 320 to 1440 px wide, with an aspect ratio between 4:5 and 1.91:1 or a 9:16 portrait. WebP, HEIC, HEIF, and AVIF are converted to JPEG before posting.
- **15 min max reel length (Video)**: Every video post publishes as a reel. MP4 or MOV, 3 seconds to 15 minutes, up to 1 GB, 23 to 60 FPS. 9:16 at 1080 x 1920 px is recommended.
- **2,200 caption characters (Characters)**: Up to 5 hashtags and 3 @mentions per post. Alt text runs to 1,000 characters per image, not on reels or stories.
- **60 sec max video story (Stories)**: One JPEG or one video of 3 to 60 seconds, up to 100 MB. Stories ignore caption text and expire after 24 hours.
- **2 to 10 images or videos per carousel (Carousels)**: Add the image or video URLs to mediaUrls and Ayrshare builds the carousel. Location and user tags don't apply inside carousels.
- **50 posts per account per 24 hours (Scheduling and limits)**: Pass a scheduleDate to publish later. The 50-post cap is a rolling 24 hours, and each response reports usedQuota. Instagram doesn't allow deleting posts through the API.

- **Publish reels with a cover frame**: A video post to Instagram is a reel. Pick a cover frame by offset (thumbNailOffset, in milliseconds) or supply your own cover image, let it also show in the Feed, and add Instagram's AI info label when the media is generated. Attaching a licensed track needs the account linked through Facebook Login.
- **Post photo and video stories**: Send one photo or one video with the stories flag. Caption text and @mentions are ignored, stickers aren't available through Meta's API, and the story expires after 24 hours. Stories publish from Business accounts only, and video runs 3 to 60 seconds, up to 100 MB.
- **Post a carousel of up to 10 items**: Up to 10 images and videos in one post. Alt text lines up with mediaUrls in order. The first comment lands right after the post publishes, which keeps hashtags out of the caption.
- **Tag users, add a location, and invite collaborators**: User tags on a single image take x and y coordinates from 0.0 to 1.0, with the username written without the @. A location is a Facebook Page ID or @name with a physical address. Up to three public accounts can be invited as collaborators, and the post appears on their profile once they accept. Only invite accounts you expect to accept; repeated declines put the account at risk.
- **Boost a published post into an ad**: Boost a published post with a goal, budget, audience, and dates through the Ads API. Ayrshare creates the campaign, ad set, and ad in Meta Ads Manager and reports spend and results back. Boosting needs an account linked through Facebook with the ads_management permission. Goals are engagement, interactions, awareness_views, and awareness_audience, ads run at least 30 hours, and Instagram reviews boosts within about 24 hours.

## Why Use Ayrshare Instead of the Instagram API Directly?

Ayrshare runs the Meta app and both login flows, so your product sends one request and gets back the Instagram post ID, URL, and the account's remaining quota. Ayrshare converts WebP and HEIC images to JPEG, retries a blocked media fetch and re-hosts the file on its own CDN, and surfaces Meta's raw error text in the details field. When Meta changes the API, the fix ships on our side, not in your sprint.

For a step-by-step walkthrough, read [Instagram Reels API: How to Post Videos to Reels Using a Social Media API](/blog/instagram-reels-api-how-to-post-videos-to-reels-using-a-social-media-api/).

[See the Instagram Publishing Options](/docs/apis/post/social-networks/instagram)

- **One simple endpoint**: Just send a single POST request with your caption, media URL, and user Profile-Key. We keep the integration incredibly lean so your team can launch faster.
- **We deal with Meta**: Login flows, image conversion, blocked media fetches, reel processing, token refresh. None of it reaches your code.
- **Build for scale**: Instantly receive the live post URL, daily quotas, and the post ID you need to drive analytics and engagement.

## Beyond Posting: The Rest of the Instagram Lifecycle

The same Instagram connection that publishes also reads analytics, handles comments and DMs, boosts posts, and pulls history, including posts made in the Instagram app.

Not available on Instagram: deleting posts, story comments, and story stickers, which Meta's API doesn't expose. See every network you can reach with the same integration on the [supported networks page](/supported-networks/).

- **Analytics**: Reach, saves, shares, and views per post, plus reel plays and watch time. Account analytics can take up to 48 hours and need at least 100 followers. Story insights last 24 hours.
  - [Analytics API](/social-media-analytics-api/)
- **Comments**: Read up to the 1,000 most recent comments on a post, reply, and delete, including on posts made in the Instagram app. Turn comments off with disableComments.
  - [Engagement API](/social-media-engagement-api/)
- **Messages and automations**: Read and send DMs with text, images, video, and voice. The other person starts the conversation, and replies must land within 7 days. Automations (in beta) send a DM, call a webhook, or email when someone comments a keyword or replies to a story.
  - [Messaging API](/social-media-messenger-apis/)
- **Boosted ads**: Boost a post into an ad, then read spend and results from the insights endpoint.
  - [Ads API docs](/docs/apis/ads/instagram/boost-post)
- **History**: Pull an account's past posts and active stories with metrics, including posts published outside Ayrshare.
  - [History API](/history-api/)

## FAQs About the Instagram API

### Can I post to Instagram through an API?

Yes, you can post to Instagram through an API. Ayrshare's Instagram API lets developers publish photos, carousels, reels, and stories to Instagram Business and Creator accounts via a single REST endpoint. It supports scheduled posts, collaborators, comments, direct messages, boosted ads, and analytics across 14+ social networks through one integration. Start with the [Instagram publishing options](/docs/apis/post/social-networks/instagram).
### Is the Instagram API free?

The Instagram API is free to call: Meta charges no usage fee. Going direct costs you time instead, between App Review, two login flows, token refresh, and Meta's API version changes. Ayrshare's plans include Instagram publishing on Ayrshare's approved Meta app, so you can start posting without waiting on review. [Compare Ayrshare plans](/pricing/).
### How do I get access to the Instagram API?

To get access to the Instagram API, create a Meta developer app, pick Instagram Login or Facebook Login, request the publishing permissions, and pass App Review before switching to Live mode. Your users also need professional accounts. With Ayrshare, they link their accounts through Ayrshare's approved app, and the [Post API reference](/docs/apis/post/overview) shows the one request you need.
### Which Instagram accounts can use the API?

Instagram Business and Creator accounts can use the API; personal accounts can't publish through it. Switching a personal account takes a minute in the Instagram app. One difference to plan for: stories publish from Business accounts only. The guide to [Instagram Business, Creator, and Personal profiles](/blog/understanding-the-difference-between-the-instagram-business-creator-and-personal-profiles/) covers the rest.
### Can I post Instagram Reels through an API?

Yes, you can post Instagram reels through an API: every video post to Instagram publishes as a reel. Send an MP4 or MOV of 3 seconds to 15 minutes, up to 1 GB, 9:16 recommended, then set a cover frame and invite up to three collaborators. The tutorial [Instagram Reels API: How to Post Videos to Reels](/blog/instagram-reels-api-how-to-post-videos-to-reels-using-a-social-media-api/) walks through it.
### What are the Instagram API posting limits?

The Instagram API posting limits through Ayrshare are 50 posts per account in a rolling 24 hours, and every response includes usedQuota so you can track it. Captions take up to 2,200 characters with up to 5 hashtags and 3 @mentions, and a carousel holds up to 10 items. Ayrshare's own limit is 300 API calls per 5 minutes per profile. See the [Instagram media guidelines](/docs/media-guidelines/instagram).

## Your Users Are on Instagram. Your Product Can Be Too.

Get an API key, publish your first reel or carousel, and turn on the other networks with the same call when you need them.

[Get Your API Key](/pricing/)
[Read the Instagram Docs](/docs/apis/post/social-networks/instagram)
