# Instagram for Business

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

App · Social Media · 3 actions. Web page: https://docs.lodol.com/docs/integrations/instagram-for-business

## Actions

### Create a comment

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

**Inputs**

- Media ID (`media_id`, text, required): The ID of the media (post) to comment on, as returned by Create a post.
- Comment (`message`, text, required): The text of the comment.

**Outputs**

- `id` (text): The created comment's ID.

**Example output**

```json
{
  "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_url`, text, required): A publicly reachable URL of the image to publish, for example, https://example.com/photo.jpg.
- Caption (`caption`, text): Optional caption for the post. Hashtags and mentions are supported.

**Outputs**

- `creation_id` (text): The media container ID it was published from.
- `id` (text): The published media's ID.

**Example output**

```json
{
  "creation_id": "17987654321000000",
  "id": "17895695668004550"
}
```

### Get a post

Fetch a single Instagram post by its media ID.

**Inputs**

- Media ID (`media_id`, text, required): The ID of the media (post) to fetch.

**Outputs**

- `caption` (text)
- `comments_count` (number)
- `id` (text)
- `like_count` (number)
- `media_type` (text)
- `media_url` (text)
- `permalink` (text)
- `timestamp` (text)
- `username` (text)

**Example output**

```json
{
  "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"
}
```
