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

# How to Use Instagram location posts in opencode

Returns posts associated with an Instagram place, including captions, publishers, and engagement counts. Use it to examine content tied to one location rather than nearby places.

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

## Prompts to try with Instagram location posts in opencode

- Use Instagram location posts for the Sydney Opera House. Build a research table from returned post shortcodes, captions, and engagement counts.
- Use Instagram location posts to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Instagram location posts and tell me what changed since last week.
- Check Instagram location posts and summarize what you find in three bullet points.
- Pull the newest data from Instagram location posts and give me the result as a table.

## How to set up Instagram location posts 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 location 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": "tikhub",
    "model": "tikhub/instagram-v3-get-location-posts",
    "input": {
      "location_id": "1016248898"
    }
  }'
```

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

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

## Instagram location posts tools and prices

- [Instagram V3 · Get location posts](https://spiral.ai/tools/tikhub/tikhub/instagram-v3-get-location-posts) (TikHub): $0.0104 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| tab | ranked, recent | ranked | latest). Example: ranked |
| after |  | — | Pagination cursor from previous response end_cursor |
| first | 1 to 50 | 12 | Posts per page |
| page_size_override |  | 12 | Page size |

## What can you do with Instagram location posts in opencode?

Build an Instagram campaign research view with traceable content references. A coding agent can turn returned shortcodes, posts, discussions, media, or place details into records your project can use.

### Prepare a campaign research brief

Turn campaign links into post references, examine comments and replies, and collect examples from hashtags, Explore, Highlights, and shared audio. For a campaign tied to a venue, add place details, location posts, and nearby content.

### Research a destination feature

Confirm a landmark's Instagram place details, review its location posts, and discover nearby places. Add destination hashtag examples, tourism brand Highlights, and relevant Explore recommendations to an editorial shortlist.

### Review a venue's event coverage

Check the venue's place identity, gather posts attached to that location and the event hashtag, and inspect nearby content for related venues. Use comments, replies, and the organizer's Highlights to assemble questions and content examples for the event team.

### Audit a business's place references

Compare the name, address, and coordinates of Instagram location records with the business's own venue list. Review attached posts and nearby content to identify place records that deserve a manual check.

### Maintain an internal campaign evidence index

Organize post shortcodes, hashtag and Explore examples, Highlight references, audio-linked Reels, and discussion summaries by campaign. Add place details, location posts, and nearby content when the campaign includes a physical venue.

## Overview

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

## Instagram location posts in other agents

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

## More opencode guides

- [Instagram location details](https://spiral.ai/integrations/opencode/instagram-location-details)
- [Instagram location search](https://spiral.ai/integrations/opencode/instagram-location-search)
- [Instagram keyword search](https://spiral.ai/integrations/opencode/instagram-keyword-search)
- [Instagram locations by coordinates](https://spiral.ai/integrations/opencode/instagram-locations-by-coordinates)
- [Instagram highlight stories](https://spiral.ai/integrations/opencode/instagram-highlight-stories)
- [Instagram media ID to shortcode](https://spiral.ai/integrations/opencode/instagram-media-id-to-shortcode)

## Questions about Instagram location posts in opencode

**Can opencode use Instagram location posts?**

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

**How much does Instagram location posts cost in opencode?**

$0.0104 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 location posts in opencode?**

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

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

**Does opencode wait while Instagram location posts runs?**

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

**What Instagram content is outside the data coverage?**

TikHub limits its Instagram data offering to public content. Private accounts, direct messages, and non-public insights are outside that coverage.

**How fresh is the Instagram data?**

TikHub describes the Instagram endpoints used here as real-time and recommends them for up-to-the-minute counts. That is the provider's description of freshness.

**Does Instagram Explore represent everything trending on Instagram?**

TikHub describes Explore results as personalized recommendations. Treating those results as an Instagram-wide trend ranking would go beyond the documented coverage.

**Does TikHub guarantee accurate and complete Instagram data?**

TikHub's terms explicitly disclaim guarantees that retrieved data is accurate, complete, or current. A returned result therefore does not establish complete Instagram coverage.

**Does retrieving Instagram content give me permission to republish it?**

TikHub's terms say retrieved content may remain subject to third-party intellectual property rights. Retrieval alone does not establish permission to republish it.

