# Instagram

> Pull public Instagram posts by profile, hashtag or post link, and get each post's caption, images, video, likes and comments as JSON for AI nodes.

Source: https://nodaro.ai/docs/nodes/automate/instagram

The **Instagram** node pulls public Instagram posts and returns them as a JSON list. It finds posts by profile, by hashtag or by post link, and it reads images, carousels and reels. Each post carries its caption, owner, date, like and comment counts, and its image and video links. Wire the list into a [Generate Text - Any LLM](https://nodaro.ai/docs/nodes/automate/prompt) node for content analysis, or into [Extract Field](https://nodaro.ai/docs/nodes/automate/extract-field) to run one generation per post.

- Found in: Automate › Get Content
- Output: data
- API type: `instagram-scrape`

## When to use it
- Follow the recent posts of a creator or a brand, by profile.
- Research what performs under a hashtag.
- Remake one post you liked. Paste its link, then use Extract Field on `images` to run one step per slide of the carousel.
- Start a creative workflow from real captions and visuals.
- Send yourself a recurring content digest, with a [Schedule Trigger](https://nodaro.ai/docs/nodes/automate/schedule-trigger).

## Quick start
### Add the node

Press Tab on the canvas and choose **Automate › Get Content › Instagram**.

### Choose what to pull

Open the settings panel and choose **Search by**: **Profile**, **Hashtag** or **Post link**. Type the usernames, the hashtags or the post links, one per line.

### Set the filters

Set **Posts per source**, **Period** and, if you need it, **Post format**. The **Run** button shows the price of the request.

### Run it and use the posts

Click **Run**. The node card shows one post at a time, and the **Results** tab lists them all. Connect the **JSON** output to a [Generate Text - Any LLM](https://nodaro.ai/docs/nodes/automate/prompt) node or to [Extract Field](https://nodaro.ai/docs/nodes/automate/extract-field).

Workflow: Every Monday the Schedule Trigger runs the workflow: Instagram pulls the new posts of three creators, a Generate Text - Any LLM node summarizes them, and Telegram Post sends the summary.

- Instagram → Generate Text - Any LLM (prompt)
- Generate Text - Any LLM → Telegram Post

## Search by

| Mode | What you give it | What it does |
| --- | --- | --- |
| **Profile** | Up to 5 **Profiles** | One username per line, such as `nike`. `@` is optional. The run pulls the recent posts of each profile. |
| **Hashtag** | Up to 5 **Hashtags** | One hashtag per line, such as `running`. `#` is optional. The run pulls recent posts under each hashtag. |
| **Post link** | Up to 5 **Post links** | One post link per line, such as `https://www.instagram.com/p/…`. Reel and TV links work too, and tracking parameters are ignored. Each link brings exactly that post, however old. Anything that is not an Instagram post link is ignored. |

Each field accepts `{}`. The text of a node connected to the **Profiles / Hashtags / Links** input replaces `{}`, so a [Text](https://nodaro.ai/docs/nodes/automate/text) or [List](https://nodaro.ai/docs/nodes/automate/list) node can drive the search.

## Settings
| Setting | Default | What it does |
| --- | --- | --- |
| **Posts per source** | 20 | How many posts to return for each profile or hashtag, from 1 to 100. Not used in **Post link** mode, where each link is one post. |
| **Period** | **Last 30 days** | **Last 24 hours**, **Last 7 days**, **Last 30 days** or **All time**, by the post's date. Not used in **Post link** mode. |
| **Post format** | No filter | Keep only the posts whose media is vertical (reels and portrait), square or horizontal, measured from the media's own pixels. Fewer posts than requested may come back. Not used in **Post link** mode. |
| **AI analysis** | Off | Reads every returned post as a content analyst: asset type, format, visual hooks, audiences, graphic identity, content angles, value, call to action and a summary. Choose the **Analysis model** and an optional **Focus (optional)** line. |
| **Copy all videos to your library** | Off | Copies the video of every returned post into your library, not only the featured post's video. |

## Inputs
| Input | Required | What to connect |
| --- | --- | --- |
| **Profiles / Hashtags / Links** | No | Text, one item per line: usernames in **Profile** mode, hashtags in **Hashtag** mode, or post links in **Post link** mode. |

## Outputs
| Output | What it carries |
| --- | --- |
| **JSON** | The whole list of posts. Run a node once per post with a [List](https://nodaro.ai/docs/nodes/automate/list) node or [Extract Field](https://nodaro.ai/docs/nodes/automate/extract-field). |
| **Caption** | The featured post's caption. |
| **Post image** | The featured post's first image, or its video cover. |
| **Post video** | The featured post's first video. |

The featured post is the one shown on the node card. Choose it with the thumbnail strip, the ‹ › arrows or a click on a row in the **Results** tab. A run, from the editor or the API, features the first returned post. **Run from here** keeps the post featured on the saved node and does not pull the posts again. In **Post link** mode with one link, the first returned post is that post, so a full workflow run always lands on it.

Each post in the **JSON** output has these fields:

```json
{
  "postId": "3712…",
  "shortCode": "DdMeNa0O_x_",
  "url": "https://www.instagram.com/p/DdMeNa0O_x_/",
  "type": "image",
  "caption": "New York, Paris, Melbourne…",
  "ownerUsername": "nike",
  "timestamp": "2026-09-12T17:01:28.000Z",
  "likesCount": 53999,
  "commentsCount": 169,
  "images": ["https://…/creative.jpg"],
  "videos": [],
  "videoPreviews": [],
  "hashtags": ["running"]
}
```

## Results

The node card features one post: its media, owner, caption, likes, comments and format. The **Results** tab of the settings panel lists every post and can filter them by format. A click on a row features that post.

## Creatives in your library

Instagram's image and video links expire. After every run, the node copies each returned post's images and video covers into your library. They count toward your storage, and they stay out of the media picker until you click **Save to library** on a post.

The featured post's video is copied only when the **Post video** output is connected, because videos are large. Turn on **Copy all videos to your library** to copy the video of every returned post. When your storage is full, the posts keep their original Instagram links, which expire, and the run still succeeds.

## Credits
The price depends on the number of posts you request: **Posts per source** times the number of profiles or hashtags, rounded up to the next tier. In **Post link** mode, each link is one post. The **Run** button on the node shows the exact price before you run it.

- **The requested batch is charged.** A short period or a quiet hashtag may return fewer posts than requested.
- **AI analysis adds one AI call for every analysed post.** The call reads the post's frame and caption, and your focus line. It is charged for the tokens it actually used, at the analysis model's rate. The analyses of a run are added up and charged once, on top of the scrape's own price. See [How LLM calls are charged](https://nodaro.ai/docs/concepts/credits#llm-calls).
- **The hold for AI analysis.** Before the run, Nodaro holds the scrape's price plus a typical analysis for every requested post. A balance below the hold is refused before anything runs. After the run, the node is charged the scrape's price plus what the analyses used.
- **Posts that are not analysed cost nothing.** This covers a batch that came back short and a long run that ran out of time. An analysis that the model's maker billed is charged even when it failed. A failed run refunds the scrape's price, but analyses that were already billed are still charged.

On a self-hosted install, the Instagram node needs the web-scraping key described in [Provider keys](https://nodaro.ai/docs/self-hosting/provider-keys), or a [connection to Nodaro Cloud](https://nodaro.ai/docs/self-hosting/cloud-connect). AI analysis on a self-hosted run also needs an LLM key.

## Tips
- **Remake a carousel slide by slide.** Paste the post's link, then connect Extract Field with the field `images` and **Output Type** set to `list`. Set its outgoing connection to **Each**, so the next step runs once per slide.
- **Fan out per post.** Use Extract Field on `images` or `caption` before a List node to run one generation per post.
- **Use the video covers.** The `videoPreviews` of a creator's reels make good reference frames for new concepts.

## Troubleshooting
| Problem | Cause and fix |
| --- | --- |
| "Add at least one profile or hashtag (or connect a Text / List node)." | **Profile** or **Hashtag** mode has nothing to search. Type at least one item, or connect a Text or List node. |
| "Paste at least one Instagram post link (or connect a Text / List node)." | **Post link** mode has no valid post link. Paste a link to a post, a reel or a TV video. |
| Fewer posts came back than requested. | The period or the **Post format** filter left fewer matching posts. Widen the period or remove the filter. |
| A media link stopped working. | It was an Instagram link that expired, because the media could not be copied into your library, for example when your storage was full. Run the node again. |

## From the API
A real profile scrape often runs longer than the limit of about 100 seconds on a single HTTP request. The request therefore answers at once with `{ "jobId": "…", "status": "pending" }`, and the scrape finishes on the server. Read the posts from the completed job's `output_data` with `GET /v1/jobs/:id`. It holds the posts, the featured `text`, `imageUrl` and `videoUrl`, and any `analysis`.

In the SDK, `client.nodes.runAndWait("instagram-scrape", { … })` waits for the job and returns the posts. See [Run a single node](https://nodaro.ai/docs/developers/api/nodes) and [Jobs](https://nodaro.ai/docs/developers/api/jobs).

## Frequently asked questions

### What does the Instagram node return?

A JSON list of public Instagram posts. Each post has its caption, owner, date, like and comment counts, hashtags, and the links of its images and videos. The slides of a carousel are listed in the same post.

### Can I pull one specific post?

Yes. Set Search by to Post link and paste up to 5 post links, one per line. Reel and TV links work too. Each link brings exactly that post, however old, with every image of a carousel.

### How much does the Instagram node cost?

The price depends on how many posts you request, Posts per source times the number of sources, rounded up to a tier. In Post link mode, every link is one post. AI analysis adds one AI call for every analysed post. The Run button shows the price of the scrape before you run.

### Why did I get fewer posts than I asked for?

A short period, a quiet hashtag or a Post format filter can find fewer posts than requested. The run is charged for the requested batch.

### Do the image and video links expire?

Instagram's own links expire. After each run, the node copies each post's images and video covers into your library, so the links in the result keep working. Videos are copied for the featured post when the Post video output is connected, or for every post when you turn that on.
