# Ayrshare Post To Instagram

Blocks for posting content to Instagram using the Ayrshare social media management API.

## Post To Instagram

### What it is

Post to Instagram using Ayrshare. Requires a Business or Creator Instagram Account connected with a Facebook Page

### How it works

This block uses Ayrshare's API to publish content to Instagram Business or Creator accounts. It supports feed posts, Stories (24-hour expiration), Reels, and carousels (up to 10 images/videos), with features like collaborator invitations, location tagging, and user tags with coordinates.

The block requires an Instagram account connected to a Facebook Page and authenticates through Meta's Graph API via Ayrshare. Instagram-specific features include auto-resize for optimal dimensions, audio naming for Reels, and thumbnail customization with frame offset control.

### Inputs

| Input              | Description                                                                                                                                             | Type                   | Required |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | -------- |
| post               | The post text (max 2,200 chars, up to 30 hashtags, 3 @mentions)                                                                                         | str                    | No       |
| media\_urls        | Optional list of media URLs. Instagram supports up to 10 images/videos in a carousel.                                                                   | List\[str]             | No       |
| is\_video          | Whether the media is a video                                                                                                                            | bool                   | No       |
| schedule\_date     | UTC datetime for scheduling (YYYY-MM-DDThh:mm:ssZ)                                                                                                      | str (date-time)        | No       |
| disable\_comments  | Whether to disable comments                                                                                                                             | bool                   | No       |
| shorten\_links     | Whether to shorten links                                                                                                                                | bool                   | No       |
| unsplash           | Unsplash image configuration                                                                                                                            | str                    | No       |
| requires\_approval | Whether to enable approval workflow                                                                                                                     | bool                   | No       |
| random\_post       | Whether to generate random post text                                                                                                                    | bool                   | No       |
| random\_media\_url | Whether to generate random media                                                                                                                        | bool                   | No       |
| notes              | Additional notes for the post                                                                                                                           | str                    | No       |
| is\_story          | Whether to post as Instagram Story (24-hour expiration)                                                                                                 | bool                   | No       |
| share\_reels\_feed | Whether Reel should appear in both Feed and Reels tabs                                                                                                  | bool                   | No       |
| audio\_name        | Audio name for Reels (e.g., 'The Weeknd - Blinding Lights')                                                                                             | str                    | No       |
| thumbnail          | Thumbnail URL for Reel video                                                                                                                            | str                    | No       |
| thumbnail\_offset  | Thumbnail frame offset in milliseconds (default: 0)                                                                                                     | int                    | No       |
| alt\_text          | Alt text for each media item (up to 1,000 chars each, accessibility feature), each item in the list corresponds to a media item in the media\_urls list | List\[str]             | No       |
| location\_id       | Facebook Page ID or name for location tagging (e.g., '7640348500' or '@guggenheimmuseum')                                                               | str                    | No       |
| user\_tags         | List of users to tag with coordinates for images                                                                                                        | List\[Dict\[str, Any]] | No       |
| collaborators      | Instagram usernames to invite as collaborators (max 3, public accounts only)                                                                            | List\[str]             | No       |
| auto\_resize       | Auto-resize images to 1080x1080px for Instagram                                                                                                         | bool                   | No       |

### Outputs

| Output       | Description                           | Type         |
| ------------ | ------------------------------------- | ------------ |
| error        | Error message if the operation failed | str          |
| post\_result | The result of the post                | PostResponse |
| post         | The result of the post                | PostIds      |

### Possible use case

**Influencer Collaborations**: Create posts with collaborator tags to feature brand partnerships across multiple accounts.

**E-commerce Product Showcases**: Share carousel posts of product images with location tags for local discovery.

**Reels Automation**: Automatically publish short-form video content with custom thumbnails and trending audio.

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://agpt.co/docs/integrations/block-integrations/post_to_instagram.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
