[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Instagram Comments](https://spiral.ai/integrations/opencode/instagram-comments)

# How to Use Instagram Comments in opencode

Fetch public Instagram post or Reel comments, including text, timestamps, available reply counts, and optional replies. Use it to find recurring questions or analyze discussion around a specific post.

|  |  |
| --- | --- |
| Model | Instagram Comments |
| Available through | ScrapeCreators |
| Category | Social Media |
| Price | $0.0013 per page of comments ($0.0195 with replies). |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Instagram Comments in opencode

- Use Instagram post comments for https://www.instagram.com/p/DcymgItMFao/ and add a CSV exporter to this project containing comment text and creation timestamps.
- Use Instagram post comments for https://www.instagram.com/reel/DOq6eV6iIgD/ and build a review screen in this project that groups retrieved comments into questions, praise, and complaints.
- Use Instagram post comments for https://www.instagram.com/p/DcymgItMFao/ and implement resumable pagination in this project's collector, deduplicating by comment ID.
- Use Instagram post comments for https://www.instagram.com/reel/DOq6eV6iIgD/ and add a report that filters retrieved timestamps to September 2025 before counting recurring discussion topics.
- Use Instagram post comments for https://www.instagram.com/p/DcymgItMFao/ with replies included, and update this project's thread viewer to distinguish fetched replies from potentially incomplete threads.

## How to set up Instagram Comments in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 Comments**: 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-post-comments",
    "input": {
      "url": "https://www.instagram.com/reel/DOq6eV6iIgD"
    }
  }'
```

Then paste one of the prompts above: opencode finds Instagram Comments on Spiral, shows the price and runs it.

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

## Instagram Comments tools and prices

- [Instagram · Comments](https://spiral.ai/tools/scrapecreators/scrapecreators/instagram-post-comments) (ScrapeCreators): $0.0013 per page of comments ($0.0195 with replies).

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| cursor |  | — | The cursor to get more comments. Get 'cursor' from previous response. |
| include_replies |  | — | Set to true to include replies for every returned comment. Costs 15 credits when comments are returned, even if no replies are found; successful pages with no comments cost 0 credits. This is much slower and may time out at 29 seconds. |

## What can you do with Instagram Comments in opencode?

Build a searchable comment review tool that turns Instagram discussion into recurring questions and theme counts. Store retrieved text and timestamps in your project's data model, with pagination progress and reply coverage visible.

### Build a product FAQ

Collect comments under a public product announcement, count recurring questions, and draft answers for the product team to review.

### Review campaign reactions

Group retrieved comments into praise, objections, questions, and unrelated discussion. Report theme counts alongside the number of comments analyzed.

### Compare creative approaches

Analyze comments from selected public brand posts to compare which messages generate product questions, confusion, or enthusiasm.

### Prepare a community response brief

Summarize recurring requests and complaints under a brand's public post, then draft suggested responses for human review.

### Find tutorial topics

Read comments beneath a public creator tutorial and turn repeated requests for clarification into a prioritized follow-up content list.

### Measure launch discussion over time

Revisit selected public launch posts and compare newly observed comment themes across reporting periods without tracking individual commenters.

## Overview

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

## Instagram Comments in other agents

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

## More opencode guides

- [Instagram Basic Profile](https://spiral.ai/integrations/opencode/instagram-basic-profile)
- [Instagram Explore posts](https://spiral.ai/integrations/opencode/instagram-explore-posts)
- [Influencers.club similar creator search](https://spiral.ai/integrations/opencode/influencers-club-similar-creator-search)
- [Instagram Explore section posts](https://spiral.ai/integrations/opencode/instagram-explore-section-posts)
- [Influencers.club raw creator data](https://spiral.ai/integrations/opencode/influencers-club-raw-creator-data)
- [Instagram Explore sections](https://spiral.ai/integrations/opencode/instagram-explore-sections)

## Questions about Instagram Comments in opencode

**Can opencode use Instagram Comments?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Instagram Comments like any built-in tool.

**How much does Instagram Comments cost in opencode?**

$0.0013 per page of comments ($0.0195 with replies). You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need a ScrapeCreators account to use Instagram Comments in opencode?**

No. Spiral runs Instagram Comments 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 Comments in opencode?**

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

**Does opencode wait while Instagram Comments runs?**

Instagram Comments runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Which Instagram content can return comments?**

The endpoint covers public posts and Reels. Private, deleted, age-gated, region-gated, or login-gated media may not return comments.

**Does one request return the whole discussion?**

Comments use cursor pagination. Retrieve additional pages using the cursor returned by the previous response.

**Are all replies included?**

Reply expansion fetches the first page of replies for each returned comment. That does not guarantee the complete reply thread.

**Can I retrieve comments from a particular date range?**

There is no documented date-range input. Retrieve comment pages, then filter the returned creation timestamps to your reporting window.

**Will every public post request succeed?**

ScrapeCreators documents about 90% expected success for this endpoint. Treat that as an expectation, not a guarantee for a particular post.

