[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [Instagram V3 Convert media ID to shortcode](https://spiral.ai/integrations/n8n/instagram-v3-convert-media-id-to-shortcode)

# How to Use Instagram V3 Convert media ID to shortcode in n8n

Returns an Instagram post's shortcode alongside its original numeric media ID. Use it to turn IDs in a content archive or campaign report into Instagram post links.

|  |  |
| --- | --- |
| Model | Instagram V3 Convert media ID to shortcode |
| Available through | TikHub |
| Category | Social Media |
| Price | $0.0026 per request. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with Instagram V3 Convert media ID to shortcode in n8n

- Every morning, use Instagram post shortcode for newly supplied @nasa post IDs and append their shortcodes and links to the daily reference list.
- Each Friday, use Instagram post shortcode for new @nike campaign post IDs and prepare a linked review table.
- Each evening, use Instagram post shortcode for incoming @natgeo archive records that lack shortcodes and add their post links.
- Every Monday, use Instagram post shortcode for newly supplied @adidas post IDs and match the results against our existing campaign references.
- At the end of each month, use Instagram post shortcode for unconverted @lego campaign post IDs and include their links in the handoff report.

## How to set up Instagram V3 Convert media ID to shortcode in n8n

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

### Use the Spiral skill

1. **Send n8n 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 Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run Instagram V3 Convert media ID to shortcode in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Instagram V3 Convert media ID to shortcode, prices it and runs it each time the step fires.

### 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 V3 Convert media ID to shortcode**: 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-media-id-to-shortcode",
    "input": {
      "media_id": "3850699893338385742"
    }
  }'
```

Then paste one of the prompts above: n8n finds Instagram V3 Convert media ID to shortcode on Spiral, shows the price and runs it.

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

## Instagram V3 Convert media ID to shortcode tools and prices

- [Instagram V3 · Convert media ID to shortcode](https://spiral.ai/tools/tikhub/tikhub/instagram-v3-media-id-to-shortcode) (TikHub): $0.0026 per request.

## What can you do with Instagram V3 Convert media ID to shortcode in n8n?

Keep incoming Instagram campaign records supplied with post links. A scheduled agent can convert newly received numeric IDs and append the returned shortcodes to a recurring report.

### Add links to campaign reports

Convert stored brand post IDs into shortcodes and build Instagram links beside each campaign result.

### Restore links in a content archive

Fill missing post links in an archive that retained numeric Instagram IDs.

### Reconcile content references

Convert numeric post IDs into shortcodes so a brand's ID-based records can be matched against its shortcode-based records.

### Prepare an editorial reference list

Turn saved IDs for public publisher posts into links editors can open during content planning.

### Make campaign handoffs readable

Replace bare post IDs in a campaign handoff with Instagram links while retaining the original IDs for reference.

### Migrate a social content database

Populate shortcode and post-link columns when moving existing Instagram media records into a new reporting system.

## Overview

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

## Instagram V3 Convert media ID to shortcode in other agents

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

## More n8n guides

- [Instagram V2 Search hashtags](https://spiral.ai/integrations/n8n/instagram-v2-search-hashtags)
- [Instagram V3 Get comment replies](https://spiral.ai/integrations/n8n/instagram-v3-get-comment-replies)
- [Instagram V2 Get user reels](https://spiral.ai/integrations/n8n/instagram-v2-get-user-reels)
- [Instagram V3 Get user info by user ID](https://spiral.ai/integrations/n8n/instagram-v3-get-user-info-by-user-id)
- [Instagram V2 Get user posts](https://spiral.ai/integrations/n8n/instagram-v2-get-user-posts)
- [Instagram account Reels](https://spiral.ai/integrations/n8n/instagram-account-reels)

## Questions about Instagram V3 Convert media ID to shortcode in n8n

**Can n8n use Instagram V3 Convert media ID to shortcode?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Instagram V3 Convert media ID to shortcode like any built-in tool.

**How much does Instagram V3 Convert media ID to shortcode cost in n8n?**

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

**Do I need a TikHub account to use Instagram V3 Convert media ID to shortcode in n8n?**

You need no TikHub account. n8n uses one Spiral API key for every tool, and Spiral runs Instagram V3 Convert media ID to shortcode on its own TikHub account.

**How long does it take to set up Instagram V3 Convert media ID to shortcode in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while Instagram V3 Convert media ID to shortcode runs?**

Instagram V3 Convert media ID to shortcode runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**What does the Instagram post shortcode result contain?**

The documented return contains two identifiers: the original numeric media ID and its converted shortcode.

**How does a shortcode become an Instagram post link?**

Place the returned shortcode after instagram.com/p/ and add a trailing slash. TikHub documents the URL pattern as instagram.com/p/{shortcode}/.

**Does conversion also return current likes, captions, or images?**

Those are not listed in this endpoint's documented return. Its two documented values are the original media ID and converted shortcode.

**Does TikHub provide private Instagram content?**

TikHub says private accounts, direct messages, and non-public insights are outside its Instagram data coverage.

**Is automated access unrestricted because Instagram content is public?**

No. TikHub explicitly notes that Instagram's Terms of Service restrict automated access.

