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

Grok · Social Media

How to Use Instagram V1 Convert media ID to shortcode in Grok

Returns conversion status, the original media ID, and the Instagram post shortcode. Use it to turn stored post IDs into Instagram links for reports or review queues.

Prompts to try with Instagram V1 Convert media ID to shortcode in Grok

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

Use Instagram post shortcode to convert NASA media ID 3996242083173720380 and give me the Instagram post link.

Instagram V1 Convert media ID to shortcodeGrok
Try asking
  • Use Instagram post shortcode for NASA media ID 3996242083173720380. Show the original ID, returned shortcode, and conversion status in a table.

  • Use Instagram post shortcode for NASA media ID 3996242083173720380 and format the resulting link as a source citation for my internal research brief.

  • Use Instagram post shortcode for NASA media ID 3996242083173720380 and compare the returned code with Dd1gQBsCWE8 from my notes.

  • Use Instagram post shortcode for NASA media ID 3996242083173720380 and prepare a short handoff containing the ID, shortcode, and link for an editor.

How to set up Instagram V1 Convert media ID to shortcode in Grok

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

Use the Grok connector

  1. Add a custom connector

    In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

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

    Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

  3. Check that it is connected

    Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

Use the Spiral skill

  1. Send Grok 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 V1 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-v1-media-id-to-shortcode",
        "input": {
          "media_id": "3774507992167247878"
        }
      }'

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

Instagram V1 Convert media ID to shortcode providers and prices

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

TikHubSocial Media
Instagram V1 · Convert media ID to shortcode
tikhub/instagram-v1-media-id-to-shortcode

What can you do with Instagram V1 Convert media ID to shortcode in Grok?

Turn an Instagram media ID into a clickable reference for an internal brief. A chat agent can return the shortcode and link, or compare the result with a shortcode already recorded in a report.

Add source links to campaign reports

Convert stored brand post IDs into shortcodes, then add Instagram links beside the corresponding campaign results.

Repair an internal content archive

Fill missing post links in an archive that retained Instagram media IDs but lost the original URLs.

Prepare an editorial review queue

Give editors clickable references for public business posts submitted as numeric media IDs.

Reconcile post references

Convert media IDs to shortcodes before matching an internal campaign export against a spreadsheet of Instagram post links.

Attach citations to research notes

Turn saved public organization post IDs into source links for an internal content research brief.

Check an identifier migration

Compare converted shortcodes with previously saved shortcodes to find discrepancies after moving a post archive between databases.

Questions about Instagram V1 Convert media ID to shortcode in Grok

Can Grok use Instagram V1 Convert media ID to shortcode?

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

How much does Instagram V1 Convert media ID to shortcode cost in Grok?

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

Do I need a TikHub account to use Instagram V1 Convert media ID to shortcode in Grok?

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

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

Does Grok wait while Instagram V1 Convert media ID to shortcode runs?

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

What does Instagram post shortcode return?

TikHub documents three output values: conversion status, the original media ID, and the converted shortcode. The documented payload covers identifier conversion.

How do I turn the shortcode into an Instagram link?

Insert the returned shortcode into https://www.instagram.com/p/{shortcode}/. TikHub explicitly documents this post URL format.

Does successful conversion mean the post is still available?

No. Deleted Instagram posts can still have convertible media IDs, so a shortcode alone does not confirm current availability.

Why can an Instagram media ID produce the wrong shortcode?

Check whether the ID passed through a JavaScript Number. Instagram's documented example IDs exceed JavaScript's safe integer ceiling of 9,007,199,254,740,991; preserve the original digits as a string.

Can an Instagram shortcode reveal private content?

TikHub's Instagram coverage excludes private accounts, direct messages, and non-public insights. Constructing a post link does not expand that coverage.

Get started

Start using Instagram V1 Convert media ID to shortcode in Grok

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

Paste this into Grok:

Set up Grok

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