[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Instagram account Stories](https://spiral.ai/integrations/codex/instagram-account-stories)

# How to Use Instagram account Stories in Codex

Returns currently available Stories with image or video URLs and publication times. Use it to review a public brand's temporary content within the 24-hour Story window.

|  |  |
| --- | --- |
| Model | Instagram account Stories |
| 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 account Stories in Codex

- Use Instagram account Stories to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Instagram account Stories and tell me what changed since last week.
- Check Instagram account Stories and summarize what you find in three bullet points.
- Pull the newest data from Instagram account Stories and give me the result as a table.
- Check Instagram account Stories every morning and tell me only when something changed.

## How to set up Instagram account Stories in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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 Stories**: 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-fetch-user-stories",
    "input": {
      "user_id": "18527"
    }
  }'
```

Then paste one of the prompts above: Codex finds Instagram account Stories on Spiral, shows the price and runs it.

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

## Instagram account Stories tools and prices

- [Instagram V2 · Get user stories](https://spiral.ai/tools/tikhub/tikhub/instagram-v2-fetch-user-stories) (TikHub): $0.0026 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| user_id |  | — | User ID |
| username |  | — | Username |

## What can you do with Instagram account Stories in Codex?

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.

### Review a brand's public Instagram presence

Build an internal brief from the brand's profile, published posts, Reels, active Stories, and saved Highlight collections. Review tagged posts from public businesses and publishers as a separate source of coverage.

### 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.

### Compare a brand's content formats

Create separate inventories of published posts, Reels, active Stories, and saved Highlight collections. Use the inventories to plan a content review without confusing a Highlight collection with its individual Stories.

## Overview

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

## Instagram account Stories in other agents

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

## More Codex guides

- [Instagram account Reels](https://spiral.ai/integrations/codex/instagram-account-reels)
- [Instagram account background](https://spiral.ai/integrations/codex/instagram-account-background)
- [Instagram V3 Get user info by user ID](https://spiral.ai/integrations/codex/instagram-v3-get-user-info-by-user-id)
- [Instagram account followers](https://spiral.ai/integrations/codex/instagram-account-followers)
- [Instagram V3 Get comment replies](https://spiral.ai/integrations/codex/instagram-v3-get-comment-replies)
- [Instagram account following](https://spiral.ai/integrations/codex/instagram-account-following)

## Questions about Instagram account Stories in Codex

**Can Codex use Instagram account Stories?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Instagram account Stories like any built-in tool.

**How much does Instagram account Stories cost in Codex?**

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

**Do I need a TikHub account to use Instagram account Stories in Codex?**

No. Spiral runs Instagram account Stories 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 Stories in Codex?**

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

**Does Codex wait while Instagram account Stories runs?**

Instagram account Stories runs in the background. Codex 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.

