[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Instagram post details](https://spiral.ai/integrations/codex/instagram-post-details)

# How to Use Instagram post details in Codex

Returns a post's caption, publisher, images or video, engagement counts, and publication timestamp. Use it to inspect a known post when you have its URL or media ID.

|  |  |
| --- | --- |
| Model | Instagram post details |
| 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 details in Codex

- Use Instagram post details for https://www.instagram.com/p/BsOGulcndj-/ and add a read-only example to this project's research view showing its caption, publication time, and like and comment counts.
- Use Instagram post details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Instagram post details and tell me what changed since last week.
- Check Instagram post details and summarize what you find in three bullet points.
- Pull the newest data from Instagram post details and give me the result as a table.

## How to set up Instagram post details 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 post details**: 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-info",
    "input": {
      "url": "https://www.instagram.com/p/DUajw4YkorV/"
    }
  }'
```

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

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

## Instagram post details tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — |  |
| media_id |  | — |  |

## What can you do with Instagram post details in Codex?

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.

### Review your brand's public presence

Check your brand's profile summary, account background, and selected posts. Review returned follower, following, and liker lists against your public partner roster to prepare an internal account review.

## Overview

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

## Instagram post details in other agents

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

## More Codex guides

- [Instagram post comments with reply previews](https://spiral.ai/integrations/codex/instagram-post-comments-with-reply-previews)
- [Instagram post details by ID](https://spiral.ai/integrations/codex/instagram-post-details-by-id)
- [Instagram post comments](https://spiral.ai/integrations/codex/instagram-post-comments)
- [Instagram post details by URL](https://spiral.ai/integrations/codex/instagram-post-details-by-url)
- [Instagram post and reel search](https://spiral.ai/integrations/codex/instagram-post-and-reel-search)
- [Instagram post details by shortcode](https://spiral.ai/integrations/codex/instagram-post-details-by-shortcode)

## Questions about Instagram post details in Codex

**Can Codex use Instagram post details?**

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

**How much does Instagram post details cost in Codex?**

$0.0104 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 post details in Codex?**

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

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

**Does Codex wait while Instagram post details runs?**

Instagram post details runs in the background. Codex 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.

