Spiral gives your agent every tool with one account. Browse the tools →

Gemini · Social Media

How to Use Instagram V3 Convert media ID to shortcode in Gemini

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.

Prompts to try with Instagram V3 Convert media ID to shortcode in Gemini

Copy an example into Gemini, or ask in your own words.

Use Instagram post shortcode to convert the @nasa post IDs I supplied into a table of IDs, shortcodes, and Instagram links.

Instagram V3 Convert media ID to shortcodeGemini
Try asking
  • Use Instagram post shortcode for the @nike post IDs in our conversation and make a linked campaign review list.

  • Use Instagram post shortcode to turn the supplied @natgeo post IDs into links for an editorial planning discussion.

  • Use Instagram post shortcode for the @adidas post IDs I shared and match the returned shortcodes against my existing reference list.

  • Use Instagram post shortcode to convert the supplied @lego campaign post IDs into a handoff table, keeping each original ID beside its link.

How to set up Instagram V3 Convert media ID to shortcode in Gemini

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

Use the Gemini connector

  1. Open Connected Apps

    On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.

  2. Add Spiral as a custom app

    Under Custom apps, click Add a custom app and paste this MCP server URL:

    https://api.spiral.ai/mcp
  3. Sign in to Spiral and approve

    Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.

Use the Spiral skill

  1. Send Gemini 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.

    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.

    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: Gemini finds Instagram V3 Convert media ID to shortcode on Spiral, shows the price and runs it.

Instagram V3 Convert media ID to shortcode providers and prices

Spiral runs Instagram V3 Convert media ID to shortcode through TikHub. Open a card for today's price, with every fee included.

TikHubSocial Media
Instagram V3 · Convert media ID to shortcode
tikhub/instagram-v3-media-id-to-shortcode

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

Turn numeric Instagram post references into links for a campaign review. A chat assistant can present the original IDs, returned shortcodes, and constructed links in a compact table.

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.

Questions about Instagram V3 Convert media ID to shortcode in Gemini

Can Gemini use Instagram V3 Convert media ID to shortcode?

Yes. Add Spiral to Gemini as an MCP server, and Gemini 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 Gemini?

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

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

No. Spiral runs Instagram V3 Convert media ID to shortcode 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 V3 Convert media ID to shortcode in Gemini?

About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.

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

Instagram V3 Convert media ID to shortcode runs in the background. Gemini 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.

Get started

Start using Instagram V3 Convert media ID to shortcode in Gemini

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Gemini:

Set up Gemini

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options