[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Instagram account posts in GraphQL format](https://spiral.ai/integrations/opencode/instagram-account-posts-in-graphql-format)

# How to Use Instagram account posts in GraphQL format in opencode

Returns an Instagram account's posts in a GraphQL-style timeline container. Use it when your analysis or application expects that structure rather than an items list.

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

## Prompts to try with Instagram account posts in GraphQL format in opencode

- Use Instagram account posts in GraphQL format for @nike and adapt our importer to read the returned timeline container while preserving the original records.
- Use Instagram account posts in GraphQL format to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Instagram account posts in GraphQL format and tell me what changed since last week.
- Check Instagram account posts in GraphQL format and summarize what you find in three bullet points.
- Pull the newest data from Instagram account posts in GraphQL format and give me the result as a table.

## How to set up Instagram account posts in GraphQL format 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 account posts in GraphQL format**: 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-v1-fetch-user-posts-v2",
    "input": {
      "user_id": "25025320"
    }
  }'
```

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

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

## Instagram account posts in GraphQL format tools and prices

- [Instagram V1 · Get user posts list V2](https://spiral.ai/tools/tikhub/tikhub/instagram-v1-fetch-user-posts-v2) (TikHub): $0.0013 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| count | 1 to 50 | 12 | Count per page |
| end_cursor |  | — | Pagination cursor for next page |

## What can you do with Instagram account posts in GraphQL format in opencode?

Build an internal Instagram content report from a public brand's returned records. Your coding agent can adapt the list and GraphQL response structures to your project's reporting format.

### Prepare a campaign content brief

Collect a brand's published posts, Reels, reposts, and tagged posts for an internal campaign review. Label how each record relates to the brand so a repost or tag is not mistaken for original publishing.

### Compare public brand content

Build an internal comparison of Nike and Adidas using the same content category and number of pages for each. Review published posts, short videos, amplification, or tagged content as separate comparisons.

### Assemble a product launch review

Review returned content for a public brand's product launch. Distinguish material the brand published, material it reposted, and posts where others tagged it when selecting examples for the review.

### Build an editorial reference list

Give an editorial team a reviewable selection of a public publisher's posts, Reels, reposts, or tagged content. Keep each selection tied to its content category before choosing examples for an internal planning session.

### Create a recurring content digest

Compare successive collections for a public business and report newly observed records. Describe the report as a collection digest because visitor-view data can lag and completeness is not guaranteed.

## Overview

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

## Instagram account posts in GraphQL format in other agents

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

## More opencode guides

- [Instagram account posts](https://spiral.ai/integrations/opencode/instagram-account-posts)
- [Instagram account profile](https://spiral.ai/integrations/opencode/instagram-account-profile)
- [Instagram account highlights](https://spiral.ai/integrations/opencode/instagram-account-highlights)
- [Instagram account reposts](https://spiral.ai/integrations/opencode/instagram-account-reposts)
- [Instagram account following](https://spiral.ai/integrations/opencode/instagram-account-following)
- [Instagram account search](https://spiral.ai/integrations/opencode/instagram-account-search)

## Questions about Instagram account posts in GraphQL format in opencode

**Can opencode use Instagram account posts in GraphQL format?**

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

**How much does Instagram account posts in GraphQL format cost in opencode?**

$0.0013 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 account posts in GraphQL format in opencode?**

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

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

**Does opencode wait while Instagram account posts in GraphQL format runs?**

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

**Does TikHub cover private Instagram content?**

TikHub describes its Instagram coverage as publicly available content from public accounts. Private account content falls outside that stated coverage.

**How fresh is the Instagram data?**

TikHub says visitor-view statistics can lag live Instagram values by a few days. These responses should not be treated as a guaranteed live measurement.

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

TikHub's terms explicitly decline to guarantee accuracy, completeness, or currency. A returned collection therefore does not establish that every relevant Instagram record was captured.

**What use does TikHub's service license permit?**

TikHub licenses its service for lawful use inside your business. That stated permission does not establish unrestricted rights to republish Instagram content.

