[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Instagram V2 Search hashtags](https://spiral.ai/integrations/opencode/instagram-v2-search-hashtags)

# How to Use Instagram V2 Search hashtags in opencode

Returns matching Instagram hashtags with names and post counts. Use it to compare topic labels for campaign research; a hashtag result is not a list of posts using that tag.

|  |  |
| --- | --- |
| Model | Instagram V2 Search hashtags |
| Available through | TikHub |
| Category | Social Media |
| Price | $0.0026 per request. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Instagram V2 Search hashtags in opencode

- Use Instagram hashtag search for coffee and add a table of returned hashtag names and post counts to this project's editorial planning page.
- Use Instagram V2 Search hashtags to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Instagram V2 Search hashtags and tell me what changed since last week.
- Check Instagram V2 Search hashtags and summarize what you find in three bullet points.
- Pull the newest data from Instagram V2 Search hashtags and give me the result as a table.

## How to set up Instagram V2 Search hashtags 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 V2 Search hashtags**: 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": "tikhub",
    "model": "tikhub/instagram-v2-search-hashtags",
    "input": {
      "keyword": "cat"
    }
  }'
```

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

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

## Instagram V2 Search hashtags tools and prices

- [Instagram V2 · Search hashtags](https://spiral.ai/tools/tikhub/tikhub/instagram-v2-search-hashtags) (TikHub): $0.0026 per request.

## What can you do with Instagram V2 Search hashtags in opencode?

Build an Instagram research view for public brands, with account information, content inventories, and discovery results. Keep follower direction and Highlight collections explicit in the interface so reviewers can interpret each result correctly.

### Prepare a campaign research brief

Review a public brand's profile and content, identify business accounts in its visible connections, and collect relevant tagged coverage. Add hashtag candidates and Instagram locations around the campaign venue to guide editorial planning.

### Research a retail opening

Prepare an internal opening brief using the retailer's public profile, posts, Reels, Stories, and Highlight collections. Review business connections and tagged coverage, then find location and hashtag candidates for the opening.

### Prepare a tourism partnership brief

Review a destination organization's public account and content before a partnership discussion. Identify visible business connections, inspect publisher coverage that tags the organization, and collect location and hashtag candidates for the proposed itinerary.

### Find candidates for a local business directory

Use location results around a public commercial district and related hashtag results as research leads. Review only recognizable business accounts in local organizations' follower and following lists, with manual verification before inclusion.

### Research a local editorial feature

Find Instagram location candidates around the featured venue and compare relevant hashtag names and post counts. Review public publisher and business posts tagging the featured organization for additional research leads.

## Overview

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

## Instagram V2 Search hashtags in other agents

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

## More opencode guides

- [Instagram V2 Get user reels](https://spiral.ai/integrations/opencode/instagram-v2-get-user-reels)
- [Instagram V3 Convert media ID to shortcode](https://spiral.ai/integrations/opencode/instagram-v3-convert-media-id-to-shortcode)
- [Instagram V2 Get user posts](https://spiral.ai/integrations/opencode/instagram-v2-get-user-posts)
- [Instagram V3 Get comment replies](https://spiral.ai/integrations/opencode/instagram-v3-get-comment-replies)
- [Instagram V2 Get user info by user ID](https://spiral.ai/integrations/opencode/instagram-v2-get-user-info-by-user-id)
- [Instagram V3 Get user info by user ID](https://spiral.ai/integrations/opencode/instagram-v3-get-user-info-by-user-id)

## Questions about Instagram V2 Search hashtags in opencode

**Can opencode use Instagram V2 Search hashtags?**

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

**How much does Instagram V2 Search hashtags cost in opencode?**

$0.0026 per request. 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 TikHub account to use Instagram V2 Search hashtags in opencode?**

No. Spiral runs Instagram V2 Search hashtags on its own TikHub account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Instagram V2 Search hashtags in opencode?**

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

**Does opencode wait while Instagram V2 Search hashtags runs?**

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

**Can this data include private Instagram activity?**

TikHub documents public Instagram data only. Private accounts, direct messages, and non-public insights are outside its coverage.

**How current are the Instagram results?**

TikHub says its visitor-view Instagram data can lag by a few days, particularly counts and statistics. These results should not be described as live measurements.

**Does one page contain every available result?**

No. TikHub says paginated endpoints can return fewer items than requested, so a short page alone does not establish that collection is complete.

**What do Instagram follower and following lists represent?**

The follower list contains accounts following the requested account. The following list contains accounts it follows; both are paginated lists.

**Does a Highlight collection list include every Story inside it?**

The collection list supplies Highlight IDs, titles, and covers. TikHub documents a separate operation for retrieving the Stories inside a specific Highlight.

