Instagram for Business

App · Social Media · 3 actions

Publish photo posts to your Instagram Business account, comment on posts, and look up a post by ID.

Actions

ActionWhat it does
Create a commentAdd a comment to one of your Instagram posts, identified by its media ID.
Create a postCreate an image post on your Instagram Business account from a publicly reachable image URL, with an optional caption.
Get a postFetch a single Instagram post by its media ID.

Create a comment

Add a comment to one of your Instagram posts, identified by its media ID.

Inputs

Media IDmedia_idtextRequired
The ID of the media (post) to comment on, as returned by Create a post.
CommentmessagetextRequired
The text of the comment.

Outputs

idtext
The created comment's ID.
Example output
{
  "id": "17900000000000000"
}

Create a post

Create an image post on your Instagram Business account from a publicly reachable image URL, with an optional caption.

Inputs

Image URLimage_urltextRequired
A publicly reachable URL of the image to publish, for example, https://example.com/photo.jpg.
Captioncaptiontext
Optional caption for the post. Hashtags and mentions are supported.

Outputs

creation_idtext
The media container ID it was published from.
idtext
The published media's ID.
Example output
{
  "creation_id": "17987654321000000",
  "id": "17895695668004550"
}

Get a post

Fetch a single Instagram post by its media ID.

Inputs

Media IDmedia_idtextRequired
The ID of the media (post) to fetch.

Outputs

captiontext
comments_countnumber
idtext
like_countnumber
media_typetext
media_urltext
permalinktext
timestamptext
usernametext
Example output
{
  "caption": "Sunset over the bay",
  "comments_count": 3,
  "id": "17895695668004550",
  "like_count": 42,
  "media_type": "IMAGE",
  "media_url": "https://scontent.cdninstagram.com/v/photo.jpg",
  "permalink": "https://www.instagram.com/p/ABC123/",
  "timestamp": "2024-01-15T10:00:00+0000",
  "username": "lodol_demo"
}

On this page