[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [Instagram user posts](https://spiral.ai/integrations/vscode/instagram-user-posts)

# How to Use Instagram user posts in VS Code

Fetch a public Instagram account's posts and reels with captions, publication dates, media URLs, and available engagement counts. Use it to review an account's publishing history across pages.

|  |  |
| --- | --- |
| Model | Instagram user posts |
| Available through | ScrapeCreators |
| Category | Social Media |
| Price | Up to $0.0013 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Instagram user posts in VS Code

- Use Instagram user posts for nike and add a report to this project showing weekly post counts for the last 30 days. Follow pagination as needed and state the dates covered.
- Use Instagram user posts for natgeo to build a CSV export with post links, captions, publication dates, likes, and comment counts for the latest 24 available posts.
- Use Instagram user posts for adidas and add a chart comparing median likes by returned media type across the latest 36 available posts.
- Use Instagram user posts for lego and build a caption-search report for the phrase Star Wars across posts published in the last 60 days.
- Use Instagram user posts for redbull and add a completeness report showing which retrieved videos have play counts, grouped by publication week.

## How to set up Instagram user posts in VS Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **Sign in**: VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

### Use the Spiral skill

1. **Send VS Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Instagram user posts**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "scrapecreators",
    "model": "scrapecreators/instagram-user-posts",
    "input": {
      "handle": "<handle>"
    }
  }'
```

Then paste one of the prompts above: VS Code finds Instagram user posts on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/vscode

## Instagram user posts tools and prices

- [Instagram · Posts](https://spiral.ai/tools/scrapecreators/scrapecreators/instagram-user-posts) (ScrapeCreators): Up to $0.0013 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| trim |  | — | Set to true to get a trimmed response |
| next_max_id |  | — | Cursor to get next page of results. |
| require_play_counts |  | false | Only the literal query value 'true' enables this check. It requires play_count on each returned video post; a real 0 is valid. It does not require ig_play_count or view counts, or counts on photos. If a required play_count is missing or null, the request returns an error without charging credits instead of a paid partial success. With the default false, counts remain best-effort: usable posts are still billable even with missing play counts. Retrying does not guarantee that Instagram will return the missing counts. [Why counts can be missing](https://scrapecreators.com/blog/instagram-play-counts-missing). |

## What can you do with Instagram user posts in VS Code?

Build a brand-content report from Instagram captions, publication dates, and available engagement counts. A coding agent can add cursor pagination and summarize the retrieved posts in your project's reporting code.

### Compare brand publishing schedules

Collect publication dates for Nike and Adidas, then compare weekly posting frequency within the period actually retrieved.

### Build a campaign timeline

Find product and campaign mentions in a brand's captions. Arrange matching posts by publication date for a launch recap.

### Review content formats

Group a publisher's posts by returned media type and compare median likes and comment counts for each format.

### Find posts worth studying

Rank a brand's retrieved posts by likes or comment counts, then inspect the captions and media of the strongest examples.

### Track public engagement changes

Compare repeated snapshots of the same brand posts to calculate changes in available likes, comment counts, and Instagram play counts.

### Prepare an editorial research brief

Summarize recurring caption topics from a public publisher such as National Geographic, with publication dates and representative post links.

### Check video metric completeness

Count retrieved videos with and without play counts before building a performance comparison. Show how many posts the comparison includes.

## Overview

- [ScrapeCreators](https://spiral.ai/providers/scrapecreators)
- [All VS Code guides](https://spiral.ai/integrations/vscode)

## Instagram user posts in other agents

- [Amp](https://spiral.ai/integrations/amp/instagram-user-posts)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/instagram-user-posts)
- [Claude](https://spiral.ai/integrations/claude-desktop/instagram-user-posts)
- [Claude Code](https://spiral.ai/integrations/claude-code/instagram-user-posts)
- [Cline](https://spiral.ai/integrations/cline/instagram-user-posts)
- [Codex](https://spiral.ai/integrations/codex/instagram-user-posts)
- [Cursor](https://spiral.ai/integrations/cursor/instagram-user-posts)
- [Devin](https://spiral.ai/integrations/devin/instagram-user-posts)
- [dots](https://spiral.ai/integrations/dots/instagram-user-posts)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/instagram-user-posts)
- [Gemini](https://spiral.ai/integrations/gemini/instagram-user-posts)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/instagram-user-posts)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/instagram-user-posts)
- [goose](https://spiral.ai/integrations/goose/instagram-user-posts)
- [Grok](https://spiral.ai/integrations/grok/instagram-user-posts)
- [Grok Build](https://spiral.ai/integrations/grok-build/instagram-user-posts)
- [Hermes](https://spiral.ai/integrations/hermes/instagram-user-posts)
- [Instinct](https://spiral.ai/integrations/instinct/instagram-user-posts)
- [Manus](https://spiral.ai/integrations/manus/instagram-user-posts)
- [Muse](https://spiral.ai/integrations/muse/instagram-user-posts)
- [Muse Code](https://spiral.ai/integrations/muse-code/instagram-user-posts)
- [n8n](https://spiral.ai/integrations/n8n/instagram-user-posts)
- [Notion](https://spiral.ai/integrations/notion/instagram-user-posts)
- [OpenClaw](https://spiral.ai/integrations/openclaw/instagram-user-posts)
- [opencode](https://spiral.ai/integrations/opencode/instagram-user-posts)
- [Perplexity](https://spiral.ai/integrations/perplexity/instagram-user-posts)
- [Raycast](https://spiral.ai/integrations/raycast/instagram-user-posts)
- [Windsurf](https://spiral.ai/integrations/windsurf/instagram-user-posts)
- [Zapier](https://spiral.ai/integrations/zapier/instagram-user-posts)

## More VS Code guides

- [Instagram user ID lookup](https://spiral.ai/integrations/vscode/instagram-user-id-lookup)
- [Instagram user search](https://spiral.ai/integrations/vscode/instagram-user-search)
- [Instagram tagged posts](https://spiral.ai/integrations/vscode/instagram-tagged-posts)
- [Instagram user, hashtag, and place search](https://spiral.ai/integrations/vscode/instagram-user-hashtag-and-place-search)
- [Instagram similar accounts](https://spiral.ai/integrations/vscode/instagram-similar-accounts)
- [Instagram username change count](https://spiral.ai/integrations/vscode/instagram-username-change-count)

## Questions about Instagram user posts in VS Code

**Can VS Code use Instagram user posts?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Instagram user posts like any built-in tool.

**How much does Instagram user posts cost in VS Code?**

Up to $0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.

**Do I need a ScrapeCreators account to use Instagram user posts in VS Code?**

No. Spiral runs Instagram user posts on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Instagram user posts in VS Code?**

About two minutes: add the hosted server, then sign in.

**Does VS Code wait while Instagram user posts runs?**

Instagram user posts runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.

**How many posts does one request return?**

ScrapeCreators' documented natgeo test returned 12 posts and a continuation cursor. That is an observed page size, not a guaranteed maximum; use the returned cursor to request older posts.

**How fresh are the play counts?**

ScrapeCreators describes them as real-time public Instagram counts. A fresh response can still show fewer views than Instagram's app because the public count excludes Facebook views.

**Why can a post arrive without its play count?**

Instagram post data and play counts can be retrieved separately. ScrapeCreators documents responses containing captions, publication dates, media URLs, likes, and comments while the play count remains unavailable.

**Do the play counts include Facebook views?**

No. They cover public Instagram plays, while Instagram's logged-in app can show a combined Instagram and Facebook total for a cross-posted reel.

**Can the returned data be used in a commercial report or AI application?**

ScrapeCreators permits commercial use, redistribution, resale, and processing with third-party AI providers. Its terms still make users responsible for complying with applicable website terms, policies, and laws.

