Skip to main content
Every instagram.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

post

carousel.post create a carousel container for publishing on instagram. Risk: write
Input
NameTypeRequiredDescription
ig_idstringYesThe Instagram User ID (IG User ID) of the Instagram professional account that will publish the carousel post.
childrenstring[]YesAn array of media container IDs that will be included in the carousel. A carousel must contain at least two media items.
media_typestringYesThe type of media container to create. For carousel posts, this is typically set to CAROUSEL.
captionstringNoOptional caption text that will be displayed with the carousel post.
share_to_feedbooleanNoWhether the carousel post should be shared to the Instagram profile feed.
collaboratorsstring[]NoOptional list of Instagram User IDs to invite as collaborators on the carousel post.
location_idstringNoOptional Facebook Location ID to associate a location with the carousel post.
product_tagsobject[]NoOptional list of Instagram Shopping products to tag in the carousel.
Output
NameTypeRequiredDescription
idstringYesThe media container ID that can be used to check processing status or publish the media.

Comments

get

comments.get get details about a specific comment on an instagram media object. Risk: read
Input
NameTypeRequiredDescription
comment_idstringYesThe Instagram Comment ID of the comment whose details should be retrieved.
qstringNoOptional search query or filter used when retrieving comment details.
Output
NameTypeRequiredDescription
idstringYesThe unique Instagram Comment ID.
textstringNoThe text content of the comment.
hiddenbooleanNoIndicates whether the comment is hidden from public view.
like_countnumberNoThe total number of likes received by the comment.
legacy_instagram_comment_idstringNoThe legacy Instagram comment identifier, if available.
timestampstringNoThe ISO 8601 timestamp indicating when the comment was created.
parent_idstringNoThe ID of the parent comment if this comment is a reply.
fromobjectNoInformation about the user who created the comment.
mediaobjectNoInformation about the media on which the comment was posted.
userstringNoThe ID of the Instagram user associated with the comment.
usernamestringNoThe Instagram username of the comment author.
repliesobject[]NoThe list of replies associated with this comment.

list

comments.list list comments on an instagram media object. Risk: read
Input
NameTypeRequiredDescription
media_idstringYesThe Instagram Media ID of the post, Reel, video, or carousel whose comments should be retrieved.
qstringNoOptional search query used to filter comments by text, username, or other supported criteria.
Output
NameTypeRequiredDescription
dataobject[]NoThe list of comments associated with the requested Instagram media.

remove

comments.remove delete a comment on an instagram media object. Risk: write
Input
NameTypeRequiredDescription
comment_idstringYesThe Instagram Comment ID of the comment that should be permanently deleted.
Output
NameTypeRequiredDescription
successbooleanYesIndicates whether the comment update operation completed successfully.

reply

comments.reply reply to a comment on an instagram media object. Risk: write
Input
NameTypeRequiredDescription
comment_idstringYesThe Instagram Comment ID of the comment that should receive a reply.
messagestringYesThe text content of the reply to post in response to the specified comment.
Output
NameTypeRequiredDescription
idstringYesThe unique ID of the newly created reply comment.

send

comments.send send a comment on an instagram media object. Risk: write
Input
NameTypeRequiredDescription
media_idstringYesThe Instagram Media ID of the post, Reel, video, Story, or carousel on which the comment will be created.
messagestringYesThe text content of the comment to post on the specified Instagram media.
Output
NameTypeRequiredDescription
idstringYesThe unique ID of the newly created Instagram comment.

update

comments.update update a comment on an instagram media object. Risk: write
Input
NameTypeRequiredDescription
comment_idstringYesThe Instagram Comment ID of the comment to update.
hidebooleanYesWhether the comment should be hidden. Set to true to hide the comment or false to unhide it.
Output
NameTypeRequiredDescription
successbooleanYesIndicates whether the comment update operation completed successfully.

Conversations

get

conversations.get get messages in a conversation on instagram messaging. Risk: read
Input
NameTypeRequiredDescription
conversation_idstringYesThe Instagram conversation or message thread ID whose messages should be retrieved.
page_idstringYesThe Facebook Page ID connected to the Instagram professional account that owns the conversation.
qstringNoOptional search query used to filter messages within the conversation.
Output
NameTypeRequiredDescription
dataobject[]YesThe list of messages contained within the specified conversation.

list

conversations.list list conversations on instagram messaging. Risk: read
Input
NameTypeRequiredDescription
page_idstringYesThe Facebook Page ID connected to the Instagram professional account whose conversations should be retrieved.
qstringNoOptional search query used to filter conversations by participant, message content, or other supported criteria.
Output
NameTypeRequiredDescription
dataobject[]YesThe list of Instagram conversations associated with the connected account.

Image

post

image.post create an image container for publishing on instagram. Risk: write
Input
NameTypeRequiredDescription
ig_idstringYesThe Instagram User ID (IG User ID) of the Instagram professional account that will publish the image.
image_urlstringYesA publicly accessible URL of the image to be uploaded to Instagram.
captionstringNoOptional caption text that will be displayed with the Instagram post.
alt_textstringNoOptional accessibility description of the image for screen readers.
is_carousel_itembooleanNoSet to true if this image will be added as an item in a carousel post rather than published as a standalone post.
location_idstringNoOptional Facebook Location ID to associate a location with the Instagram post.
user_tagsobject[]NoOptional list of Instagram users to tag in the image along with their positions.
product_tagsobject[]NoOptional list of products to tag in the image for Instagram Shopping.
Output
NameTypeRequiredDescription
idstringYesThe media container ID that can be used to check processing status or publish the media.

story

image.story create an image story container for publishing on instagram. Risk: write
Input
NameTypeRequiredDescription
ig_idstringYesThe Instagram User ID (IG User ID) of the Instagram professional account that will publish the Story.
image_urlstringYesA publicly accessible URL of the image to be uploaded as an Instagram Story.
user_tagsstring[]NoOptional list of Instagram usernames or user IDs to mention or tag in the Story.
Output
NameTypeRequiredDescription
idstringYesThe media container ID that can be used to check processing status or publish the media.

Media

get

media.get get details about a specific media object. Risk: read
Input
NameTypeRequiredDescription
media_idstringYesThe Instagram Media ID of the post, reel, story, carousel, or video to retrieve.
qstringNoOptional search query or filter used when retrieving media-related information.
Output
NameTypeRequiredDescription
idstringYesThe unique Instagram Media ID.
captionstringNoThe caption text associated with the media.
media_typeIMAGE | VIDEO | CAROUSEL_ALBUMYesThe type of Instagram media, such as IMAGE, VIDEO, REELS, STORY, or CAROUSEL_ALBUM.
media_urlstringNoThe URL of the media asset. May be null or unavailable for certain media types.
thumbnail_urlstringNoThe URL of the media thumbnail image, typically available for videos and reels.
permalinkstringYesThe permanent public URL to view the media on Instagram.
timestampstringYesThe ISO 8601 timestamp indicating when the media was created.
usernamestringYesThe Instagram username that published the media.
like_countnumberYesThe total number of likes received by the media.
comments_countnumberYesThe total number of comments on the media.
is_comment_enabledbooleanYesIndicates whether commenting is enabled for the media.
childrenobjectNoCarousel child media items. Present only for carousel posts.
createdAtDateNoThe date and time when this record was created in the local system.
updatedAtDateNoThe date and time when this record was last updated in the local system.

insights

media.insights get insights for a specific media object. Risk: read
Input
NameTypeRequiredDescription
media_idstringYesThe Instagram Media ID of the post, Reel, Story, video, or carousel whose insights should be retrieved.
typeIMAGE | VIDEO | REELS | STORY | CAROUSEL_ALBUMYesThe type of Instagram media for which insights are being requested.
metricstringNoOptional insight metric to retrieve, such as impressions, reach, engagement, saved, likes, comments, shares, plays, or other supported Instagram insight metrics.
Output
NameTypeRequiredDescription
dataobject[]YesA collection of insight metrics and values returned for the requested Instagram media.

list

media.list list media objects on the instagram account. Risk: read
Input
NameTypeRequiredDescription
ig_idstringYesThe Instagram User ID (IG User ID) of the Instagram professional account or createro account whose media should be retrieved.
qstringNoOptional search keyword or filter to narrow the media results.
Output
NameTypeRequiredDescription
dataobject[]YesThe list of Instagram media objects returned by the request.
pagingobjectNoPagination information used to navigate through additional pages of media results.

status

media.status get the status of a media container. Risk: read
Input
NameTypeRequiredDescription
container_idstringYesThe Instagram media container ID whose processing status should be retrieved.
Output
NameTypeRequiredDescription
idstringYesThe Instagram media container ID whose status was requested.
status_codeIN_PROGRESS | FINISHED | ERROR | EXPIREDYesThe current processing status of the media container. IN_PROGRESS indicates processing is ongoing, FINISHED indicates the media is ready to publish, ERROR indicates processing failed, and EXPIRED indicates the container is no longer valid.

Messages

get

messages.get get details about a specific message on instagram messaging. Risk: read
Input
NameTypeRequiredDescription
page_idstringYesThe Facebook Page ID connected to the Instagram professional account that owns the message.
message_idstringYesThe unique ID of the Instagram Direct Message to retrieve.
qstringYesA search query or filter string used when retrieving message details.
Output
NameTypeRequiredDescription
idstringYesThe unique identifier of the message.
messagestringNoThe text content of the message.
created_timestringNoThe timestamp indicating when the message was created.
fromobjectNoInformation about the user who sent the message.
attachmentsobjectNoAttachment data associated with the message, such as images, videos, files, or other media.

send

messages.send send a message in instagram messaging. Risk: write
Input
NameTypeRequiredDescription
page_idstringYesThe Facebook Page ID connected to the Instagram professional account that will send the message.
recipientstringYesThe recipient Instagram-scoped user ID (IGSID) or Messenger user ID that will receive the message.
messageobjectYesThe message content, including text, attachments, and optional quick replies.
messaging_typeRESPONSE | UPDATE | MESSAGE_TAGNoThe type of message being sent. Determines how Meta categorizes and delivers the message.
tagstringNoRequired for certain MESSAGE_TAG messages. Specifies the approved message tag used for the message.
Output
NameTypeRequiredDescription
recipient_idstringYesThe ID of the user who received the message.
message_idstringYesThe unique identifier of the message that was sent.
timestampnumberNoThe Unix timestamp indicating when the message was sent.

Profile

get

profile.get read the user instagram profile. Risk: read
Input
NameTypeRequiredDescription
ig_idstringYesThe Instagram User ID (IG User ID) of the Instagram account.
qstringNoOptional search query or keyword used to filter related Instagram user data.
Output
NameTypeRequiredDescription
idstringYes
ig_idnumberNo
usernamestringNo
namestringNo
biographystringNo
profile_picture_urlstringNo
followers_countnumberYes
follows_countnumberYes
media_countnumberYes
websitestringNo
createdAtDateNo
updatedAtDateNo

insights

profile.insights get insights for the instagram business account. Risk: read
Input
NameTypeRequiredDescription
ig_idstringYesThe Instagram User ID (IG User ID) of the Instagram professional account whose insights should be retrieved.
metricstringYesOne or more Instagram insight metrics to retrieve, such as impressions, reach, profile_views, follower_count, accounts_engaged, or other supported account-level metrics.
periodstringYesThe aggregation period for the requested metrics, such as day, week, days_28, lifetime, or other supported periods.
timeframestringNoRequired for demographics-related metrics. Specifies how far back Instagram should look when calculating the requested data.
metric_typestringNoOptional metric category or calculation type used when requesting specific insight metrics.
breakdownstringNoOptional dimension by which to break down the results, such as age, gender, country, city, or other supported demographic categories.
sincestringNoOptional start date or timestamp for the insights query. Results will include data from this point onward.
untilstringNoOptional end date or timestamp for the insights query. Results will include data up to this point.
Output
NameTypeRequiredDescription
dataobject[]YesA collection of insight metrics and values returned for the requested Instagram media.

Publish

publish_media

publish.publish_media publish media on instagram. Risk: write
Input
NameTypeRequiredDescription
ig_idstringYesThe Instagram User ID (IG User ID) of the Instagram professional account that will publish the media.
creation_idstringYesThe media container ID returned by a previous media container creation request. This container will be published to Instagram.
Output
NameTypeRequiredDescription
idstringYesThe media container ID that can be used to check processing status or publish the media.

Reel

post

reel.post create a reel container for publishing on instagram. Risk: write
Input
NameTypeRequiredDescription
ig_idstringYesThe Instagram User ID (IG User ID) of the Instagram professional account that will publish the Reel.
video_urlstringYesA publicly accessible URL of the video file to be uploaded as an Instagram Reel.
media_typestringYesThe type of media container to create. For Reels, this is typically set to REELS.
captionstringNoOptional caption text that will accompany the Reel when published.
share_to_feedbooleanNoWhether the Reel should also be shared to the Instagram profile feed in addition to the Reels tab.
collaboratorsstring[]NoOptional list of Instagram User IDs to invite as collaborators on the Reel.
cover_urlstringNoOptional publicly accessible URL of a custom cover image to use as the Reel thumbnail.
audio_namestringNoOptional name of the audio track associated with the Reel.
thumb_offsetnumberNoOptional timestamp offset in milliseconds used to generate the Reel thumbnail from the video.
location_idstringNoOptional Facebook Location ID to associate a location with the Reel.
user_tagsobject[]NoOptional list of Instagram users to tag in the Reel.
trial_paramsanyNoOptional experimental or trial parameters supported by the Instagram API.
Output
NameTypeRequiredDescription
idstringYesThe media container ID that can be used to check processing status or publish the media.

Video

container

video.container create a video carousel container for publishing on instagram. Risk: write
Input
NameTypeRequiredDescription
ig_idstringYesThe Instagram User ID (IG User ID) of the Instagram professional account that will publish the video.
video_urlstringYesA publicly accessible URL of the video to be uploaded to Instagram.
captionstringNoOptional caption text that will be displayed with the video post.
alt_textstringNoOptional accessibility description of the video for screen readers.
location_idstringNoOptional Facebook Location ID to associate a location with the video post.
user_tagsobject[]NoOptional list of Instagram users to tag in the video along with their positions.
product_tagsobject[]NoOptional list of Instagram Shopping products to tag in the video.
Output
NameTypeRequiredDescription
idstringYesThe media container ID that can be used to check processing status or publish the media.

story

video.story create a video story container for publishing on instagram. Risk: write
Input
NameTypeRequiredDescription
ig_idstringYesThe Instagram User ID (IG User ID) of the Instagram professional account that will publish the Story.
video_urlstringYesA publicly accessible URL of the video to be uploaded as an Instagram Story.
user_tagsstring[]NoOptional list of Instagram usernames or user IDs to mention or tag in the Story.
Output
NameTypeRequiredDescription
idstringYesThe media container ID that can be used to check processing status or publish the media.