Instagram

Usage Instructions

Integrate Instagram into workflows. Publish and download images, videos, Reels, stories, and carousels as canonical User Files; moderate comments; send DMs; and pull account or media insights.

Actions

Instagram Send Button Template

Send a button template private reply with up to 3 tappable buttons (URL or postback) to a commenter on Instagram.

Input

ParameterTypeRequiredDescription
recipientTypestringNoRecipient type: 'comment' to privately reply to a comment, or 'user' to DM an Instagram user directly. Defaults to 'comment'.
commentIdstringNoInstagram comment ID (required when recipient type is "comment")
recipientIdstringNoInstagram-scoped user ID / IGSID to message directly (required when recipient type is "user")
textstringYesText displayed above the buttons (up to 640 characters)
buttonsstringYesJSON array of 1–3 button objects. Each button: { "type": "web_url"|"postback", "title": "...", "url": "..." (for web_url) or "payload": "..." (for postback) }
pageIdstringYesFacebook Page ID linked to the Instagram Business account

Output

ParameterTypeDescription
messageIdstringID of the sent message

Instagram Send Quick Replies

Send a private reply with up to 13 quick reply buttons to a commenter on Instagram. Quick replies support plain text only.

Input

ParameterTypeRequiredDescription
recipientTypestringNoRecipient type: 'comment' to privately reply to a comment, or 'user' to DM an Instagram user directly. Defaults to 'comment'.
commentIdstringNoInstagram comment ID (required when recipient type is "comment")
recipientIdstringNoInstagram-scoped user ID / IGSID to message directly (required when recipient type is "user")
textstringYesMessage text displayed above the quick replies
quickRepliesstringYesJSON array of quick reply objects. Each: { "content_type": "text"|"user_phone_number", "title": "..." (max 20 chars), "payload": "..." }. Max 13 items.
pageIdstringYesFacebook Page ID linked to the Instagram Business account

Output

ParameterTypeDescription
messageIdstringID of the sent message

Instagram Send Generic Template

Send a generic template private reply (carousel) with images, titles, subtitles, and buttons to a commenter on Instagram. Supports up to 10 elements.

Input

ParameterTypeRequiredDescription
recipientTypestringNoRecipient type: 'comment' to privately reply to a comment, or 'user' to DM an Instagram user directly. Defaults to 'comment'.
commentIdstringNoInstagram comment ID (required when recipient type is "comment")
recipientIdstringNoInstagram-scoped user ID / IGSID to message directly (required when recipient type is "user")
elementsstringYesJSON array of up to 10 element objects. Each: { "title": "..." (max 80 chars), "subtitle": "...", "image_url": "...", "default_action": { "type": "web_url", "url": "..." }, "buttons": [...] }
pageIdstringYesFacebook Page ID linked to the Instagram Business account

Output

ParameterTypeDescription
messageIdstringID of the sent message

Instagram Send Media

Send a media attachment (image, video, audio, or file) as a private reply to a commenter on Instagram.

Input

ParameterTypeRequiredDescription
recipientTypestringNoRecipient type: 'comment' to privately reply to a comment, or 'user' to DM an Instagram user directly. Defaults to 'comment'.
commentIdstringNoInstagram comment ID (required when recipient type is "comment")
recipientIdstringNoInstagram-scoped user ID / IGSID to message directly (required when recipient type is "user")
mediaTypestringYesType of media: image, video, audio, or file
mediaUrlstringYesPublic URL of the media to send
pageIdstringYesFacebook Page ID linked to the Instagram Business account

Output

ParameterTypeDescription
messageIdstringID of the sent message
attachmentIdstringID of the uploaded attachment (reusable)

Instagram Get Profile

Get the connected Instagram professional account profile

Input

ParameterTypeRequiredDescription

Output

ParameterTypeDescription
userIdstringInstagram professional account user_id
idstringGraph object id
usernamestringInstagram username
namestringDisplay name
accountTypestringBusiness or Media_Creator
profilePictureUrlstringProfile picture URL
followersCountnumberFollower count
followsCountnumberFollowing count
mediaCountnumberMedia count

Instagram List Media

List recent media on the Instagram professional account

Input

ParameterTypeRequiredDescription
igUserIdstringNoInstagram professional account user id (defaults to /me)
limitnumberNoMax number of media items to return (default 25, max 100)
afterstringNoPagination cursor from a previous list_media response

Output

ParameterTypeDescription
mediaarrayMedia objects from this page
nextCursorstringPagination cursor for the next page

Instagram Get Media

Get details for a specific Instagram media object

Input

ParameterTypeRequiredDescription
mediaIdstringYesInstagram media id

Output

ParameterTypeDescription
idstringMedia id
captionstringCaption text
mediaTypestringIMAGE, VIDEO, or CAROUSEL_ALBUM
mediaProductTypestringFeed, Reels, or Stories product type
mediaUrlstringInstagram media URL when available; use Download Media to persist it
permalinkstringPermalink to the post
timestampstringISO timestamp
likeCountnumberLike count
commentsCountnumberComments count
childrenarrayCarousel child media IDs

Instagram Download Media

Download Instagram media into canonical User Files for downstream file inputs (100 MB max per file)

Input

ParameterTypeRequiredDescription
mediaIdstringYesInstagram media ID to download
filenamestringNoOptional filename override; carousel items receive an ordered suffix

Output

ParameterTypeDescription
filesfile[]Downloaded media as canonical User Files, ready for attachment inputs (100 MB max each)
mediaIdstringInstagram media ID that was downloaded
mediaTypestringInstagram media type, such as IMAGE, VIDEO, or CAROUSEL_ALBUM
downloadedCountnumberNumber of files downloaded

Instagram List Stories

List active stories on the Instagram professional account

Input

ParameterTypeRequiredDescription
igUserIdstringNoInstagram professional account user id (defaults to /me)
limitnumberNoMax number of active stories to return (default 25, max 100)
afterstringNoPagination cursor from a previous List Stories response

Output

ParameterTypeDescription
storiesarrayActive stories from this page
nextCursorstringPagination cursor

Instagram Publish Image

Create and publish a single JPEG image post from a Studio file (polls until the container is ready)

Input

ParameterTypeRequiredDescription
igUserIdstringNoInstagram professional account user id (defaults to /me)
imagefileYesJPEG image uploaded to Studio or referenced from a previous block
captionstringNoPost caption (max 2200 characters)
altTextstringNoAccessibility alt text for the image
isAiGeneratedbooleanNoMark the post as AI-generated

Output

ParameterTypeDescription
containerIdstringMedia container ID
mediaIdstringPublished media ID
statusCodestringFinal container status

Instagram Publish Video

Create and publish a feed video from a Studio file (published as a Reel shared to the feed; polls until ready)

Input

ParameterTypeRequiredDescription
igUserIdstringNoInstagram professional account user id (defaults to /me)
videofileYesVideo uploaded to Studio or referenced from a previous block
captionstringNoPost caption
coverfileNoOptional JPEG cover uploaded to Studio or referenced from a previous block

Output

ParameterTypeDescription
containerIdstringMedia container ID
mediaIdstringPublished media ID
statusCodestringFinal container status

Instagram Publish Reel

Create and publish a Reel from a Studio video file (polls until ready)

Input

ParameterTypeRequiredDescription
igUserIdstringNoInstagram professional account user id (defaults to /me)
videofileYesReel video uploaded to Studio or referenced from a previous block
captionstringNoReel caption
coverfileNoOptional JPEG cover uploaded to Studio or referenced from a previous block
shareToFeedbooleanNoAlso share the Reel to the main feed
thumbOffsetnumberNoFrame offset in milliseconds for the cover thumbnail

Output

ParameterTypeDescription
containerIdstringMedia container ID
mediaIdstringPublished media ID
statusCodestringFinal container status

Instagram Publish Story

Publish an image or video story for an Instagram professional account from a Studio file

Input

ParameterTypeRequiredDescription
igUserIdstringNoInstagram professional account user id (defaults to /me)
mediafileYesJPEG image or MP4/MOV video uploaded to Studio or referenced from a previous block

Output

ParameterTypeDescription
containerIdstringMedia container ID
mediaIdstringPublished media ID
statusCodestringFinal container status

Publish a carousel of 2-10 images or videos from Studio files

Input

ParameterTypeRequiredDescription
igUserIdstringNoInstagram professional account user id (defaults to /me)
mediafile[]Yes2-10 media files uploaded to Studio or referenced from previous blocks
captionstringNoCarousel caption

Output

ParameterTypeDescription
containerIdstringMedia container ID
mediaIdstringPublished media ID
statusCodestringFinal container status

Instagram Get Container Status

Check the publishing status of a media container

Input

ParameterTypeRequiredDescription
containerIdstringYesMedia container id returned from a create/publish step

Output

ParameterTypeDescription
containerIdstringContainer id
statusCodestringEXPIRED, ERROR, FINISHED, IN_PROGRESS, or PUBLISHED
statusstringDetailed status message when available

Instagram Get Publishing Limit

Check the content publishing rate limit usage for the account

Input

ParameterTypeRequiredDescription
igUserIdstringNoInstagram professional account user id (defaults to /me)

Output

ParameterTypeDescription
quotaUsagenumberNumber of publishes used in the current window
configjsonQuota config (quotaTotal, quotaDuration)
↳ quotaTotalnumberTotal publishes allowed in the quota window
↳ quotaDurationnumberQuota window duration reported by Instagram

Instagram List Comments

List comments on an Instagram media object

Input

ParameterTypeRequiredDescription
mediaIdstringYesInstagram media id
limitnumberNoMax number of comments to return (default 25, max 100)
afterstringNoPagination cursor

Output

ParameterTypeDescription
commentsarrayComments on the media object
nextCursorstringPagination cursor

Instagram Reply to Comment

Reply to a comment on Instagram media

Input

ParameterTypeRequiredDescription
commentIdstringYesComment id to reply to
messagestringYesReply text

Output

ParameterTypeDescription
idstringCreated reply comment id

Instagram Hide Comment

Hide or unhide a comment on Instagram media

Input

ParameterTypeRequiredDescription
commentIdstringYesComment id
hidebooleanYesTrue to hide, false to unhide

Output

ParameterTypeDescription
successbooleanWhether the hide/unhide succeeded

Instagram Delete Comment

Delete a comment on Instagram media

Input

ParameterTypeRequiredDescription
commentIdstringYesComment id to delete

Output

ParameterTypeDescription
successbooleanWhether the delete succeeded

Instagram Set Comments Enabled

Enable or disable comments on an Instagram media object

Input

ParameterTypeRequiredDescription
mediaIdstringYesInstagram media id
commentEnabledbooleanYesTrue to enable comments, false to disable

Output

ParameterTypeDescription
successbooleanWhether the update succeeded

Instagram Private Reply

Send the one allowed initial private reply within 7 days of a comment; follow-ups require a recipient response

Input

ParameterTypeRequiredDescription
igUserIdstringNoInstagram professional account user id (defaults to /me)
commentIdstringYesComment id to privately reply to
messagestringYesPrivate reply text

Output

ParameterTypeDescription
messageIdstringSent message id
recipientIdstringInstagram-scoped recipient id

Instagram List Conversations

List Instagram Direct conversations for the professional account

Input

ParameterTypeRequiredDescription
igUserIdstringNoInstagram professional account user id (defaults to /me)
limitnumberNoMax number of conversations to return (default 25, max 100)
afterstringNoPagination cursor

Output

ParameterTypeDescription
conversationsarrayInstagram Direct conversations from this page
nextCursorstringPagination cursor

Instagram Get Conversation Messages

List cursor-paginated message references; full details are available only for the 20 most recent messages

Input

ParameterTypeRequiredDescription
conversationIdstringYesConversation id from list_conversations
limitnumberNoMax number of message references to return (default 25, max 100)
afterstringNoNested messages pagination cursor

Output

ParameterTypeDescription
conversationIdstringConversation id
messagesarrayMessage references (id, createdTime). Use Get Message for sender, recipient, and text.
nextCursorstringNested messages pagination cursor

Instagram Get Message

Get a single Instagram Direct message by id (only recent messages are available)

Input

ParameterTypeRequiredDescription
messageIdstringYesMessage id

Output

ParameterTypeDescription
idstringMessage id
createdTimestringCreated timestamp
fromIdstringSender Instagram-scoped id
fromUsernamestringSender username
toIdstringRecipient id
messagestringMessage text

Instagram Send Text Message

Send a text Direct message. The recipient must have messaged the account first (24h window).

Input

ParameterTypeRequiredDescription
igUserIdstringNoInstagram professional account user id (defaults to /me)
recipientIdstringYesInstagram-scoped user id (IGSID) of the recipient
messagestringYesMessage text (max 1000 bytes UTF-8)

Output

ParameterTypeDescription
messageIdstringSent message id
recipientIdstringRecipient id

Instagram Get Account Insights

Get insights metrics for the Instagram professional account

Input

ParameterTypeRequiredDescription
igUserIdstringNoInstagram professional account user id (defaults to /me)
metricsstringYesComma-separated current metrics (e.g. reach,views,accounts_engaged,likes,comments,saves,shares,total_interactions)
periodstringYesUse day for interaction metrics or lifetime for demographic metrics
sincestringNoUnix timestamp or date for range start
untilstringNoUnix timestamp or date for range end
metricTypestringNoOptional metric_type (e.g. time_series, total_value)
breakdownstringNoOptional breakdown dimension
timeframestringNoRequired for demographic metrics: this_week or this_month

Output

ParameterTypeDescription
insightsarrayAccount insight metrics

Instagram Get Media Insights

Get insights metrics for a specific Instagram media object

Input

ParameterTypeRequiredDescription
mediaIdstringYesInstagram media id
metricsstringYesComma-separated metrics (e.g. views,reach,likes,comments,saved,shares,total_interactions)

Output

ParameterTypeDescription
insightsarrayMedia insight metrics

Instagram Hide Comment (Facebook Page)

Hide or unhide a comment on an Instagram post using the Facebook Page access token, and sync the hidden state to the responding database.

Input

ParameterTypeRequiredDescription
commentIdstringYesID of the Instagram comment to hide or unhide
isHiddenbooleanNoWhether to hide (true) or unhide (false) the comment
pageIdstringYesFacebook Page ID that owns the post

Output

ParameterTypeDescription
hiddenbooleanWhether the comment is now hidden

Instagram Reply to Comment (Facebook Page)

Reply publicly to a comment on an Instagram post using the Facebook Page access token.

Input

ParameterTypeRequiredDescription
commentIdstringYesID of the Instagram comment to reply to
messagestringYesReply message text
pageIdstringYesFacebook Page ID that owns the post

Output

ParameterTypeDescription
commentIdstringID of the newly created reply comment

Instagram Send DM (Facebook Page)

Send a direct message using the Facebook Page access token — either as a private reply to a commenter or straight to an Instagram user by their user ID (IGSID).

Input

ParameterTypeRequiredDescription
recipientTypestringNoRecipient type: 'comment' to privately reply to a comment, or 'user' to DM an Instagram user directly. Defaults to 'comment'.
commentIdstringNoInstagram comment ID (required when recipient type is "comment")
recipientIdstringNoInstagram-scoped user ID / IGSID to message directly (required when recipient type is "user")
messagestringYesMessage text to send
pageIdstringYesFacebook Page ID linked to the Instagram Business account

Output

ParameterTypeDescription
messageIdstringID of the sent message

Instagram Get Post (Facebook Page)

Fetch a single Instagram post/media by ID using the Facebook Page access token. Returns media URL, caption, type, timestamps, engagement metrics, and carousel children when applicable.

Input

ParameterTypeRequiredDescription
postIdstringYesID of the Instagram media/post to fetch
pageIdstringYesFacebook Page ID linked to the Instagram account

Output

ParameterTypeDescription
mediaUrlstringURL of the post image or video
captionstringPost caption text
mediaProductTypestringMedia product type (FEED, REELS, STORY)
mediaTypestringMedia type (IMAGE, VIDEO, CAROUSEL_ALBUM)
timestampstringISO 8601 timestamp when the post was published
permalinkstringPermanent URL of the post
likeCountnumberNumber of likes on the post
commentsCountnumberNumber of comments on the post
childrenjsonArray of carousel child media items (only present for CAROUSEL_ALBUM posts)
↳ idstringChild media ID
↳ mediaUrlstringChild media URL
↳ mediaTypestringChild media type (IMAGE or VIDEO)