[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [Instagram post embed](https://spiral.ai/integrations/gemini-cli/instagram-post-embed)

# How to Use Instagram post embed in Gemini CLI

Returns HTML for embedding an Instagram post, plus embed metadata. Use it to prepare a post for a webpage or editorial draft when you need the display code.

|  |  |
| --- | --- |
| Model | Instagram post embed |
| 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 post embed in Gemini CLI

- Use Instagram post embed for https://www.instagram.com/p/BsOGulcndj-/ and add the returned HTML to an editorial preview in this project.
- Use Instagram post embed to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Instagram post embed and tell me what changed since last week.
- Check Instagram post embed and summarize what you find in three bullet points.
- Pull the newest data from Instagram post embed and give me the result as a table.

## How to set up Instagram post embed in Gemini CLI

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

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI 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 embed**: 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-post-oembed",
    "input": {
      "url": "https://www.instagram.com/reel/DUlObENDmJD"
    }
  }'
```

Then paste one of the prompts above: Gemini CLI finds Instagram post embed on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini-cli

## Instagram post embed tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| maxwidth |  | 540 | Max width in pixels |
| hidecaption |  | false | Whether to hide caption |

## What can you do with Instagram post embed in Gemini CLI?

Build an Instagram research view that puts retrieved posts or account records into your project's existing components. Turn captions, media, embeds, or public account context into reviewable examples for a brand research workflow.

### Prepare an editorial source check

Inspect a referenced post's caption, publisher, media, and publication time. Add the publisher's profile summary and account background, then prepare an embed for the editorial draft.

### Write a campaign performance brief

Compare selected campaign posts' captions and engagement counts, add embeds as examples, and summarize the publishing brand's profile. Check returned likers and followers only against a predefined list of public business accounts.

### Assemble a creative reference board

Collect recommended Reels and similar public creator accounts, inspect selected posts, and prepare embeds for an internal reference board. Group examples by caption approach and media format.

### Prepare a weekly competitor digest

Revisit selected competitor posts, compare their engagement counts with prior observations, and prepare embeds for the report. Add creative examples from recommended Reels and review connections among a fixed roster of public companies.

## Overview

- [TikHub](https://spiral.ai/providers/tikhub)
- [All Gemini CLI guides](https://spiral.ai/integrations/gemini-cli)

## Instagram post embed in other agents

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

## More Gemini CLI guides

- [Instagram post details by shortcode](https://spiral.ai/integrations/gemini-cli/instagram-post-details-by-shortcode)
- [Instagram post likers](https://spiral.ai/integrations/gemini-cli/instagram-post-likers)
- [Instagram post details by URL](https://spiral.ai/integrations/gemini-cli/instagram-post-details-by-url)
- [Instagram post likes](https://spiral.ai/integrations/gemini-cli/instagram-post-likes)
- [Instagram post details by ID](https://spiral.ai/integrations/gemini-cli/instagram-post-details-by-id)
- [Instagram post media ID](https://spiral.ai/integrations/gemini-cli/instagram-post-media-id)

## Questions about Instagram post embed in Gemini CLI

**Can Gemini CLI use Instagram post embed?**

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Instagram post embed like any built-in tool.

**How much does Instagram post embed cost in Gemini CLI?**

$0.0104 per request. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.

**Do I need a TikHub account to use Instagram post embed in Gemini CLI?**

No. Spiral runs Instagram post embed 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 post embed in Gemini CLI?**

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

**Does Gemini CLI wait while Instagram post embed runs?**

Instagram post embed runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.

**Does this cover private Instagram content?**

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

**How fresh is the Instagram data?**

TikHub describes the Instagram series used here as real-time and recommends it for up-to-the-minute counts. Its older visitor-view series can lag by a few days.

**Why might engagement counts be lower than in Instagram?**

TikHub says its results include Instagram engagement only. The app can show a combined Instagram and Facebook total.

**Does access include permission to republish the content?**

TikHub's terms state that retrieved content may carry third-party intellectual property rights. Retrieving a caption, photo, video, or embed does not establish ownership of that content.

**Are the results guaranteed to be accurate and complete?**

TikHub's terms explicitly disclaim a guarantee that returned data is accurate, complete, or current. Its description of this Instagram series as real-time is not a completeness warranty.

