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

OpenClaw · Social Media

How to Use Instagram shortcode to media ID in OpenClaw

Converts an Instagram post shortcode into its media ID, returning the original shortcode and conversion status. Use it to match post links with records stored by media ID or prepare identifiers for later lookups.

Prompts to try with Instagram shortcode to media ID in OpenClaw

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

Every morning, use Instagram shortcode to media ID for newly added public brand post links in my campaign register, starting with https://www.instagram.com/p/DRhvwVLAHAG/, and add the returned mappings.

Instagram shortcode to media IDOpenClaw
Try asking
  • Each weekday, use Instagram shortcode to media ID for unresolved entries in my editorial reference list, starting with DRhvwVLAHAG, and report the returned identifiers and conversion statuses.

  • Every Friday, use Instagram shortcode to media ID for new public organization post references, starting with https://www.instagram.com/p/DRhvwVLAHAG/, and prepare a table of links and returned identifiers.

  • Each evening, use Instagram shortcode to media ID for campaign entries missing a media ID, beginning with DRhvwVLAHAG, and add successful mappings to the campaign register.

  • Every Monday, use Instagram shortcode to media ID for newly submitted public business post references, starting with DRhvwVLAHAG, and compare the returned IDs with existing campaign records.

How to set up Instagram shortcode to media ID in OpenClaw

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

Use the Spiral skill

  1. Send OpenClaw 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. Add the server

    On the machine that runs OpenClaw's Gateway:

    openclaw mcp add spiral \
      --url https://api.spiral.ai/mcp \
      --transport streamable-http \
      --auth oauth
  2. Sign in

    In Settings › MCP, select Sign in on the Spiral server, sign in to Spiral and click Authorize. No API key.

    openclaw mcp login spiral
  3. Reload and check

    A running Gateway may keep its old tool list: restart it, or Save & Publish in the Control UI.

    openclaw mcp reload
    openclaw mcp doctor spiral --probe

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 shortcode to media ID

    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-v2-shortcode-to-media-id",
        "input": {
          "shortcode": "DRhvwVLAHAG"
        }
      }'

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

Instagram shortcode to media ID providers and prices

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

TikHubSocial Media
Instagram V2 · Convert shortcode to media ID
tikhub/instagram-v2-shortcode-to-media-id

What can you do with Instagram shortcode to media ID in OpenClaw?

Keep a public brand post register supplied with media IDs as new links arrive. A scheduled agent can convert newly added shortcodes and place each returned mapping alongside its campaign reference.

Match campaign links to reporting records

Convert public brand post shortcodes into media IDs, then join the results to campaign records already keyed by media ID.

Reconcile duplicate post references

Convert the shortcodes extracted from campaign links and compare their returned media IDs when consolidating repeated references.

Migrate a public content archive

Add media IDs to an existing archive of public business post links while preserving each link and its original shortcode.

Prepare identifiers for later lookups

Resolve public post shortcodes before passing the returned media IDs into a separate workflow that requires those identifiers.

Organize editorial references

Attach media IDs to public organization posts cited in an editorial research list so editors can match links against existing content records.

Investigate mismatched campaign records

Convert a campaign post's shortcode and compare the returned media ID with the identifier saved in the campaign log.

Questions about Instagram shortcode to media ID in OpenClaw

Can OpenClaw use Instagram shortcode to media ID?

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

How much does Instagram shortcode to media ID cost in OpenClaw?

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

Do I need a TikHub account to use Instagram shortcode to media ID in OpenClaw?

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

About two minutes: add the server, then sign in, then reload and check.

Does OpenClaw wait while Instagram shortcode to media ID runs?

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

What does Instagram shortcode conversion return?

TikHub documents three outputs: conversion status, the original shortcode, and the converted media ID. The conversion identifies a post for workflows that store media IDs.

Where is the shortcode in an Instagram post link?

In instagram.com/p/DRhvwVLAHAG/, the shortcode is DRhvwVLAHAG. TikHub uses that exact example in its conversion documentation.

Does conversion also return the caption or engagement counts?

The converter's documented outputs are status, shortcode, and media ID. TikHub documents media, captions, likes, and comments under its separate post details lookup, which accepts a shortcode or full URL.

Does having a media ID provide access to private Instagram content?

TikHub says private accounts, direct messages, and non-public insights are outside its Instagram data coverage. Shortcode conversion does not expand that coverage.

Is TikHub's Instagram data always current?

TikHub warns that Instagram visitor-view data may be cached and lag live values by a few days. The converter's documented result contains identifiers and conversion status, so it should not be treated as a fresh engagement report.

Get started

Start using Instagram shortcode to media ID in OpenClaw

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

Paste this into OpenClaw:

Set up OpenClaw

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