[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Instagram post and reel search](https://spiral.ai/integrations/opencode/instagram-post-and-reel-search)

# How to Use Instagram post and reel search in opencode

Find indexed Instagram posts and reels with captions, publication dates, and engagement counts. Use it to research a topic or compare an account's content before selecting individual posts.

|  |  |
| --- | --- |
| Model | Instagram post and reel search |
| Available through | Alexandria |
| Category | Social Media |
| Price | `projection`: basic $0.0611065, otherwise $0.087295, full $0.1134835 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Instagram post and reel search in opencode

- Use Instagram post and reel search to retrieve 20 indexed posts from @nike. Build a table in this project showing publication dates, captions, likes, views, and comments.
- Use Instagram post and reel search to find indexed captions mentioning Patagonia. Create a research report in this project comparing the returned captions, likes, and comments.
- Use Instagram post and reel search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Instagram post and reel search and tell me what changed since last week.
- Check Instagram post and reel search and summarize what you find in three bullet points.

## How to set up Instagram post and reel search 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 post and reel search**: 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": "alexandria",
    "model": "oriane/instagram/posts-search",
    "input": {
      "handle": "<handle>"
    }
  }'
```

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

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

## Instagram post and reel search tools and prices

- [Oriane · Search Instagram posts and reels](https://spiral.ai/tools/alexandria/oriane/instagram/posts-search) (Alexandria): `projection`: basic $0.0611065, otherwise $0.087295, full $0.1134835 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| sort |  | — | Comma-separated sort fields with optional :asc or :desc. Profiles: followersCount, createdAt, updatedAt. Posts: viewsCount, likesCount, sharesCount, commentsCount, interactionsCount, engagementRatePerViews, engagementRatePerFollowers, profileFollowersCount, publishedAt, visualSimilarity, transcriptRelevance. |
| limit | 1 to 100 | — | Maximum results, default 20. |
| handle |  | — | Account username to match exactly, for example mrbeast. A leading @ is optional; usernames are matched without regard to case. Provide this or another search field; multiple fields must all match. |
| offset | 0 to … | — | Result offset, default 0. |
| caption |  | — | Text to match in the caption. Provide this or another search field; multiple fields must all match. |
| projection | basic, default, full | default | Response detail and fixed price per nonempty call: basic 35 credits, default 50 credits, full 65 credits. Empty results cost zero. Result limit does not change the tier price. |

## What can you do with Instagram post and reel search in opencode?

Build an Instagram research view that pairs public account bios and follower counts with caption and engagement evidence. A coding agent can turn Oriane's returned records into project data tables and account summaries.

### Creator partnership shortlist

Discover public creators in a niche, compare their bios and follower counts, then examine indexed posts and selected content URLs. Build a shortlist with concrete caption and engagement evidence for each candidate.

### Competitor content review

Locate competing brands, collect their account summaries, and compare indexed captions and engagement counts. Inspect selected posts to produce a brief on the topics each brand publishes.

### Campaign evidence report

Find participating public creators and campaign captions, add account follower counts, and inspect known campaign post URLs. Assemble an evidence report limited to what Oriane has indexed.

### Product launch research

Find brands and public creators discussing a product category, compare account descriptions, and review relevant indexed posts. Use individual post records to ground a launch brief in actual captions and engagement.

### Agency pitch preparation

Research a prospective client's Instagram account alongside comparable brands and category posts. Combine profile summaries with selected post records to show specific content opportunities in the pitch.

### Public creator portfolio review

Locate a creator's indexed account, read its bio and follower count, and review its indexed content alongside supplied post URLs. Prepare a partnership review that cites the captions and engagement counts behind each observation.

## Overview

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

## Instagram post and reel search in other agents

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

## More opencode guides

- [Instagram post and reel details](https://spiral.ai/integrations/opencode/instagram-post-and-reel-details)
- [Instagram post comments](https://spiral.ai/integrations/opencode/instagram-post-comments)
- [Instagram popular topic posts](https://spiral.ai/integrations/opencode/instagram-popular-topic-posts)
- [Instagram post comments with reply previews](https://spiral.ai/integrations/opencode/instagram-post-comments-with-reply-previews)
- [Instagram popular reels](https://spiral.ai/integrations/opencode/instagram-popular-reels)
- [Instagram post details](https://spiral.ai/integrations/opencode/instagram-post-details)

## Questions about Instagram post and reel search in opencode

**Can opencode use Instagram post and reel search?**

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

**How much does Instagram post and reel search cost in opencode?**

`projection`: basic $0.0611065, otherwise $0.087295, full $0.1134835 per run. 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 an Alexandria account to use Instagram post and reel search in opencode?**

No. Spiral runs Instagram post and reel search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Instagram post and reel search in opencode?**

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

**Does opencode wait while Instagram post and reel search runs?**

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

**Does Oriane cover small Instagram accounts?**

Oriane documents a minimum indexed account size of 5,000 followers. Searches should not be treated as a directory of every Instagram creator or business.

**How much Instagram video history is available?**

Oriane describes its video index as a rolling 90 days, with older videos leaving it. That window applies to indexed video history, rather than an account's lifetime activity.

**How quickly do new videos appear?**

New videos can take up to one week to enter Oriane's index. A search for content published today can therefore miss videos that already exist on Instagram.

**Is this public Instagram content?**

Oriane's terms describe its source material as publicly available content from third-party platforms. Its stated scope does not promise access to private Instagram content.

**Does access through Oriane transfer ownership of Instagram content?**

Oriane explicitly says it does not claim ownership of indexed third-party content. Do not interpret a returned caption or video record as a transfer of ownership.

