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
| Action | What it does |
|---|---|
| Create a comment | Add a comment to one of your Instagram posts, identified by its media ID. |
| Create a post | Create an image post on your Instagram Business account from a publicly reachable image URL, with an optional caption. |
| Get a post | Fetch 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 ID
media_idtextRequired - The ID of the media (post) to comment on, as returned by Create a post.
- Comment
messagetextRequired - 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 URL
image_urltextRequired - A publicly reachable URL of the image to publish, for example, https://example.com/photo.jpg.
- Caption
captiontext - 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 ID
media_idtextRequired - The ID of the media (post) to fetch.
Outputs
captiontextcomments_countnumberidtextlike_countnumbermedia_typetextmedia_urltextpermalinktexttimestamptextusernametext
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"
}